Hi,
i made a scene with 100x100 models. The Polygon count is about 500k. I i change the view of my camera that i only see 9 of them i get a Polygon count of 150k. I thought that irrlicht clips all models away that aren't in my View. My Camerasettings are: fov = PI/2.5f, aspect = 4.0f/3.0f, farPlane = 1000.f und nearplane = 1.f.
Is there a flag to set that irrlicht clips all models that are not in the view of my camera ?
[solved]Camera Clipping
[solved]Camera Clipping
Last edited by hioctane on Sun Dec 21, 2008 9:15 pm, edited 1 time in total.
Re: Camera Clipping
maybe use setAutomaticCulling(...) on the nodes !?!?!hioctane wrote:Is there a flag to set that irrlicht clips all models that are not in the view of my camera ?
while(!asleep) sheep++;
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
IrrExtensions:

http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
Re: Camera Clipping
Acki how do I call setAutomaticCulling() on a node?Acki wrote:maybe use setAutomaticCulling(...) on the nodes !?!?!hioctane wrote:Is there a flag to set that irrlicht clips all models that are not in the view of my camera ?
in the API it said
Code: Select all
scene::ISceneNode::setAutomaticCulling( EAC_FRUSTUM_SPHERE );
You aren't actually using that code, are you? You should have something like
If that doesn't solve your problem, we'll need to have the code that is causing your error as well as what the error was.
Code: Select all
scene::ISceneNode * node ;
...
node->setAutomaticCulling( scene::EAC_FRUSTUM_SPHERE ) ;
It isn't a good idea to add 10,000 models to the scene, that many models will eat up lots of time drawing each one and traversing the scene graph.
If they're blocks that make up your world then a better idea is to batch them all up into a single mesh containing as few buffers as possible, then create an OctTree node out of this mesh.
You can find an example here-
http://bitplane.net/download.php?view.24
If they're blocks that make up your world then a better idea is to batch them all up into a single mesh containing as few buffers as possible, then create an OctTree node out of this mesh.
You can find an example here-
http://bitplane.net/download.php?view.24