visibility list

Started by drounal, May 28, 2006, 02:27:41 PM

Previous topic - Next topic

drounal

how come, when I move a 3DS imported cube on a map using the Paradroidz MouseMapper, I get this :

WARNING: You've exceeded the configured triangle limit for the visibility list. Consider adjusting Config.maxPolysVisible!

what I want to do is move a selected cube to a given point that I click on using the mouse.  As far as I know it shouldn't change the number of polygons ...

thx in advance.

EgonOlsen

Not the number of the polygons in the object but the number of the polygons on screen...hence the warning message. Adjust the value for Config.maxPolysVisible before instanciating a world and you are done.

BTW: What kind of cube is that, that is exceeds the triangle limit? A simple cube usually consists of 12 polygons (two on each side).

drounal

but why does the number of polygons on screen change that much ?

if I somehow turn the cube, I should see more or less the same number of polygons. why is it that this number keeps increasing with the number of clicks that I make (so the number of times I want the cube to move) ?

EgonOlsen

What do you mean with "keeps increasing"? Do you have some numbers for this? You can get the size of the current VisList by calling getSize() on it? What values does this give in your application?

Melssj5

if you add more object3Ds to your world, then you will have more polys to draw. the Config.maxPolysVisible just set the amount of plys that can be seen on the world. Each Object3D is draw with triangles that are poligons after all. so, how do you draw your cube? is imported from a 3ds file. then you should check, how many polys does your cube have. And dont forget that Config.maxPolysVisible have to be called before creating the world.
Nada por ahora