gedimaster
18-10-2005 06:28:07
i'm using a separate framelistener to do terrain height queries and other collision detection.
i'm using plsm2 but when i run the program, it crashes with exception at
i suspect that the terrain wasn't paged in when the code tried to do an intersection test. i've tried sleeping this framelistener for a while when the tiles are being paged in but it's useless since framelisteners are not threaded.
can anyone offer any advice?
i'm using plsm2 but when i run the program, it crashes with exception at
bool frameStarted(const FrameEvent& evt) //my framelistener
{ Ray pickRay(pSceneMgr->getSceneNode("mynode")->getPosition(), Vector3::UNIT_Y);
mRayQuery->setRay(pickRay); // crash here
//...
i suspect that the terrain wasn't paged in when the code tried to do an intersection test. i've tried sleeping this framelistener for a while when the tiles are being paged in but it's useless since framelisteners are not threaded.
can anyone offer any advice?