Post
by afecelis »
In the camera creation, add a "setFarValue". SetFarValue handles the clipping plane forthe rendering process
camera->setFarValue ( 50000.0f ) ; //sets the distance for the clipping plane, the bigger the farther
try it out with different values, compile and see the changess yourself
for the fog:
video::IVideoDriver* driver = device->getVideoDriver();
scene::ISceneManager* smgr = device->getSceneManager();
driver->setFog(SColor(0,200,50,0),true, 0,4000); //fog color-final values= amount of fog, distance
driver->setTextureCreationFlag(ETCF_OPTIMIZED_FOR_QUALITY,true );