Help in BloodyMess Tutorial 2

masterthegames

01-08-2011 09:03:26

Hello all

I'm New In NxOgre
1st i successfully run the NxOgre With Release Mode and take the Dll And *.lib that was created in Release Sub Folder And Paste it in OgreSdk/bin/Release
and tack the phiscksloader.dll and past it in the same place

note:i add the path to NxOgre.lib
NxOgreOGRE3D.lib and added it to mt project

i follow the steps with BloodyMess Tutorial 2 but when i add this line to code
NxOgre::World* mWorld = NxOgre::World::createWorld();
i have error Unhandled Exption 0x00386ad0(NxOgre.dll) test.exe:0xc0000005:access Violation reading Loaction 0x00000000

and this is the code

***************************************************
#include "ExampleApplication.h"
#include <NxOgre.h>
#include <NxOgreOGRE3D.h>
class mioListener : public ExampleFrameListener
{
public:
mioListener(RenderWindow *win, Camera *cam)
: ExampleFrameListener(win, cam)
{
}

bool frameStarted(const FrameEvent& evt)
{
return ExampleFrameListener::frameStarted(evt);
}

protected:

NxOgre::Scene* mScene;
OGRE3DRenderSystem* mRenderSystem;
};

class mio : public ExampleApplication
{
protected:

void createScene()
{NxOgre::World* mWorld = NxOgre::World::createWorld();
// Set ambient light
mSceneMgr->setAmbientLight(ColourValue(0.5f, 0.5f, 0.5f));

// Create a light
Light* l = mSceneMgr->createLight("MainLight");
l->setPosition(20, 80, 50);

// Position the camera
mCamera->setPosition(0, 20, 80);
mCamera->lookAt(0, 20, 0);
}

// Create a new frame listener
void createFrameListener()
{
mFrameListener = new mioListener(mWindow, mCamera);
mRoot->addFrameListener(mFrameListener);
}
};

#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
#define WIN32_LEAN_AND_MEAN
#include "windows.h"
#endif

#ifdef __cplusplus
extern "C" {
#endif

#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
INT WINAPI WinMain(HINSTANCE hInst, HINSTANCE, LPSTR strCmdLine, INT)
#else
int main(int argc, char **argv)
#endif
{
// Create application object
mio app;

try {
app.go();
} catch(Exception& e) {
#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
MessageBoxA(NULL, e.getFullDescription().c_str(),
"An exception has occurred!", MB_OK | MB_ICONERROR | MB_TASKMODAL);
#else
std::cerr << "An exception has occurred: " << e.getFullDescription();
#endif
}

return 0;
}

#ifdef __cplusplus
}
#endif
*****************************************************************************************

Please Help :( :( :( :(

betajaen

01-08-2011 10:10:18

You need to copy all of the PhysX 2.8.4 dlls into your application directory.

masterthegames

03-08-2011 07:53:41

thanks for your help
Now I try to Download PhysX 2.8.4 From nVidia PhysX FAQ page But They Send to me
********************
This fully-automated email was generated as a result of an email sent to PhysX-Developer-Supp@nvidia.com. This address is used for PhysX SDK developer support for registered and licensed developers only.

We provide some basic information and driver support as a service to unlicensed game developers and consumers on our Consumer Support Site at http://developer.nvidia.com/object/physx.html.

Ticket support is only for certain registered users of our Developer Support Site at http://devsupport.nvidia.com/ics/suppor ... eptID=1949.

Most support is strictly through the Public Forums located at the following site: http://developer.nvidia.com/forums/inde ... owforum=16.

If you have already registered for access as a developer, please be patient, as it takes 2-3 days for the approval process. You will be notified by email once your account is activated.

Please do not respond to this email. We will request further information if needed.

Thank you,
NVIDIA Developer Relations
********************

because that i should wait from 2-3 days

note:i can't remembered from where i download PhysX but not from nVidia PhysX FAQ page

:( :( :(