www.jpct.net

jPCT - a 3d engine for Java => Support => Topic started by: volpesfuggente on June 22, 2010, 06:14:52 pm

Title: Object disappearing... too many objects??
Post by: volpesfuggente on June 22, 2010, 06:14:52 pm
I must to create many objects in my simulation.
I have tryed to create over than 50 spheres adjacent on the 3 axis (x,y,z).
Many Objects disappear on camera's movement and most of them is not visualized at all. Moving the camera, some appear and other disappear. Are there any limits on the visualizable objects?
Title: Re: Object disappearing... too many objects??
Post by: volpesfuggente on June 22, 2010, 06:23:10 pm
I'm sorry, I have search in the forum for my problem, but I haven't found anything before writing this post.

Continuing my search I've found the solution!!!

The answer for my question is here:
http://www.jpct.net/forum2/index.php/topic,375.0.html

This post can be closed I suppose...  ::)
Title: Re: Object disappearing... too many objects??
Post by: EgonOlsen on June 22, 2010, 09:00:48 pm
No problem. If you are using this many objects, you may want to consider to compile them ( http://www.jpct.net/doc/com/threed/jpct/Object3D.html#compile() (http://www.jpct.net/doc/com/threed/jpct/Object3D.html#compile()) ) to improve performance (if you are using a hardware renderer). A side effect is, that a compiled object need much less entries in the visibility list than uncompiled ones do.