Author Topic: Newbie question.  (Read 1087 times)

Offline Arrka

  • byte
  • *
  • Posts: 1
    • View Profile
Newbie question.
« 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

Offline rschwemm

  • byte
  • *
  • Posts: 18
    • View Profile
Re: Newbie question.
« Reply #1 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.


Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11776
    • View Profile
    • http://www.jpct.net
Re: Newbie question.
« Reply #2 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.