Druha
22-09-2009 15:38:47
I am using this commit http://github.com/betajaen/nxogre/commi ... e27bf00d4d
I want to match NxOgre heightfield with Ogre TSM (I use 1.6). I've generated .xhf file from raw image using Flour 0.3.2.
When I try to create geometry from heightfield I get a crash:
"Unhandled exception at 0x00000000 in Esertia.exe: 0xC0000005: Access violation reading location 0x00000000."
Here is related code:
Here is callstack generated by MSVC
Same files (I mean .xhf and executables) worked fine with BloodyMess 1.5.5.
I want to match NxOgre heightfield with Ogre TSM (I use 1.6). I've generated .xhf file from raw image using Flour 0.3.2.
When I try to create geometry from heightfield I get a crash:
"Unhandled exception at 0x00000000 in Esertia.exe: 0xC0000005: Access violation reading location 0x00000000."
Here is related code:
NxOgre::ResourceSystem::getSingleton()->openArchive("media", "file:../../data");
NxOgre::HeightField* hf = NxOgre::HeightFieldManager::getSingleton()->load("media:test1.xhf");
NxOgre::HeightFieldGeometry* hfg = new NxOgre::HeightFieldGeometry(hf, Vector3(5000,350,5000));
mScene->createSceneGeometry(hfg); // <-- crash here
Here is callstack generated by MSVC
00000000()
NxOgre_Debug.dll!NxOgre::PhysXShapeBinder::BindShape(NxShape * shape=0x0b41cdb8) Line 95 + 0x25 bytes C++
NxOgre_Debug.dll!NxOgre::RigidBody::create(NxOgre::RigidBodyPrototype * prototype=0x0b41c760, NxOgre::Scene * scene=0x0b37ea88, NxOgre::Array<NxOgre::Shape *> * final_shapes=0x0b41c9ec) Line 197 + 0xc bytes C++
NxOgre_Debug.dll!NxOgre::SceneGeometry::SceneGeometry(NxOgre::RigidBodyPrototype * prototype=0x0b41c760, NxOgre::Scene * scene=0x0b37ea88) Line 53 C++
NxOgre_Debug.dll!NxOgre::Scene::createSceneGeometry(NxOgre::Shape * shape=0x002ea3ac, const NxOgre::Matrix44 & pose={...}, const NxOgre::RigidBodyDescription & description={...}) Line 216 + 0x33 bytes C++
Esertia.exe!GameRoot::setupPhysics() Line 180 + 0x171 bytes C++
Esertia.exe!GameRoot::GameRoot(Options * opts=0x002ea600) Line 99 C++
Esertia.exe!WinMain(HINSTANCE__ * hInst=0x00400000, HINSTANCE__ * __formal=0x00000000, char * strCmdLine=0x002f2c8c, HINSTANCE__ * __formal=0x00000000) Line 38 + 0x2f bytes C++
Esertia.exe!__tmainCRTStartup() Line 589 + 0x35 bytes C
Esertia.exe!WinMainCRTStartup() Line 414 C
kernel32.dll!768d3833()
[Frames below may be incorrect and/or missing, no symbols loaded for kernel32.dll]
ntdll.dll!77b9a9bd()
Same files (I mean .xhf and executables) worked fine with BloodyMess 1.5.5.