Jure Zabkar wrote:

> I have problems with objects escaping out of view. The bounds are set
> by:
>
> BoundingSphere bounds =
>            new BoundingSphere(new Point3d(), Double.MAX_VALUE);
>
> Then, I have a few lines of code that should place an object to the
> center of the screen. I guess that works OK but sometimes I can't see
> the object until I zoom in (or out). By that, it comes out of some
> invisible space. While zooming I can see more and more of it.
>
> How should I set the bounds (or maybe something else) to avoid this and
> be able to see the object everywhere, not only when it comes into some
> bounds?

You have to set the BackClipDistance of the view:

SimpleUniverse u = new SimpleUniverse(c3D);
viewer = u.getViewer();
view = viewer.getView();
view.setBackClipDistance(150.0);


Gerd
--
Trautner Gerd
Bahnhofstr. 39
A - 4230 Pregarten
Tel./Fax: ++43 7236 3348
----------------------------
http://www.yuri.at



=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/

Reply via email to