www.jpct.net

jPCT - a 3d engine for Java => Support => Topic started by: Arrka on February 20, 2011, 04:06:15 pm

Title: Newbie question.
Post by: Arrka on February 20, 2011, 04:06:15 pm
I took the Hello world example but put in a 3ds model. Why does half my model disappear while rotating? I mean is there a "visible" point in space that the model is hitting and nothing gets rendered beyond that point?
Here's a picture :
http://img254.imageshack.us/i/carqe.png
Title: Re: Newbie question.
Post by: rschwemm on February 20, 2011, 07:42:12 pm
Hi!

I had a short look at your picture, but without knowing how it should look, it's hard to understand what's going on.
Perhaps you could elaborate more on what is not shown.

Quote
I mean is there a "visible" point in space that the model is hitting and nothing gets rendered beyond that point?
Sure. It's called view frustum. The near & far plane might concern you.

Maybe your model has errors? You could try to invert it. As said, it's hard to tell, what's going on.

Have a look at the "Config" class for the clipping things.
Inverting the model is done on the object.

Hope it helps.

Title: Re: Newbie question.
Post by: EgonOlsen on February 20, 2011, 08:17:29 pm
Another potential problem is the polygon count. But that should be printed out in the log as a warning. If the scene has too many polygons, the configured polygon limit is exceeded. You can adjust it by setting Config.maxPolysVisible to a higher value. If you are using a hardware renderer, you can try to call compile() on the object, as this will increase performance for high polygon objects as well as decrease the needed value for maxPolysVisible.