import-bot (20211) [Avatar] Offline
#1
[Originally posted by abergstr]

I am currently in chapter 17 of your book, and adapting your scripts so that
they display our VRML models. However, I am having a problem. I get the vrml
model loaded just fine, but the model is 70 vrml units long, 30 vrml units
wide, and 20 vrml units high. I have positioned at 80 +z in order to view the
entire model, but I can only see parts of the model that are within 80 units
of the viewpoint. At first I thought it was a lighting issue, so I added a
DirectionalLight(), but that just made the visible parts brighter. As the
model rotates, the surface area that rotates into the 80 units can be seen,
and the area that rotates outside of the 80 unit area cannot be sceen. Can you
tell me why this is happening and how I can correct it?
import-bot (20211) [Avatar] Offline
#2
Re: AppWorld/AppView
[Originally posted by author]

Sounds like the model is falling outside of the clipping planes -- anything
closer than the near plane or farther than the far plane will not appear in
the scene. You can set it with AppView.setViewClipDist(). Another
alternative is to load your model under a transform node (or AffineGroup if
you are using the book classes), and use a scaling factor to reduce the
absolute size of the model.

--jon


> I am currently in chapter 17 of your book, and adapting your scripts so that
> they display our VRML models. However, I am having a problem. I get the vrml
> model loaded just fine, but the model is 70 vrml units long, 30 vrml units
> wide, and 20 vrml units high. I have positioned at 80 +z in order to view the
> entire model, but I can only see parts of the model that are within 80 units
> of the viewpoint. At first I thought it was a lighting issue, so I added a
> DirectionalLight(), but that just made the visible parts brighter. As the
> model rotates, the surface area that rotates into the 80 units can be seen,
> and the area that rotates outside of the 80 unit area cannot be sceen. Can you
> tell me why this is happening and how I can correct it?