setFarClipDistance dont work on my oFusion scene.

ahmadi

05-10-2006 05:49:14

setFarClipDistance dont work on my oFusion scene.
i have some small and large meshes on my scene and i need to clip all things that are far from my camera but "setFarClipDistance" dont work here.
i must mention that setNearClipDistance work correct here.

its my code, perhaps you need


camNode->setPosition(Vector3(0,0, 0));
mCamera->setPosition(Vector3(-10,5,-10));
mSceneMgr->setFog(FOG_LINEAR,ColourValue(0.9,0.9,1),0.1,500,10000);
mCamera->lookAt(0,0,0);
mCamera->setNearClipDistance(1);
mCamera->setFarClipDistance(50);

Lioric

05-10-2006 16:21:08

This has nothing to do with the exported scene, its an issue in your application

Are you updating the camera values after you load the scene?