Newbie question.

Started by Arrka, February 20, 2011, 04:06:15 PM

Previous topic - Next topic

Arrka

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

rschwemm

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.

QuoteI 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.


EgonOlsen

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.