> > I am trying to load an object from VRML into my Java3D scene. The object > has a bounding sphere with: > > radius = r =112.05467415507485 > center = (x,y,z) = (100.0, 50.0, 0.0) > > Now what I am trying to do is finding a good vantage point for this > object. However, what I am getting is an empty screen. What is the > problem? >
<snip> > > //Translate view platform to the object's bounding sphere center than > move a little back > Transform3D vp_trans = new Transform3D(); > vp_trans.set( new Vector3d( x, y, z + 1.40 * radius / tan ( Math.PI / > 6.0 )); > TransformGroup view_tg = new TransformGroup(vp_trans); > <snip> I /think/ you are moving in the wrong direction in the z axis.... try "z - 1.40 * ....". Also, don't forget to move far enough out to put the object behind your near clipping plane. Simeon =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".