dreamer
12-06-2009 09:44:46
I created a xhf file, use it as a hightfield in Nxogre:
I shoot some cubes, But it seems nothing happened, I can't see the hight field, nor can i see the collisions.
If I use the NxOgredebuger, the error is: OGRE EXCEPTION(7:InternalErrorException):Vertex Buffer:Out of memory in GLHardwareVertexBuffer::lock at f:\codingextra\ogre\shoggoth_vc9\ogre\rendersystems\gl\src\ogreglhardwarevertexbuffer.cpp(line 127).
Who can help me?
NxOgre::ResourceSystem::getSingleton()->openArchive("pmodels", "file:C:/OgreSDK/media/physxmodels");
NxOgre::HeightField* hf = NxOgre::HeightFieldManager::getSingleton()->load("pmodels:heightfield.xhf");
NxOgre::HeightFieldGeometry* hfg = new NxOgre::HeightFieldGeometry(hf, NxOgre::Real3(0, 1, 0));
hfg->setTerrainCentering(NxOgre::Enums::TerrainCentering_CenterAbove);
mScene->createSceneGeometry(hfg);
I shoot some cubes, But it seems nothing happened, I can't see the hight field, nor can i see the collisions.
If I use the NxOgredebuger, the error is: OGRE EXCEPTION(7:InternalErrorException):Vertex Buffer:Out of memory in GLHardwareVertexBuffer::lock at f:\codingextra\ogre\shoggoth_vc9\ogre\rendersystems\gl\src\ogreglhardwarevertexbuffer.cpp(line 127).
Who can help me?