> From: Kovalan Muniandy <[EMAIL PROTECTED]>
>
> I have a satelite object that I am rotating and the dish gets clipped. I
> can't seem to fix it. Any hints are appreciated.
>
> Here are my front and back clipping distances:
>
>      view.setFrontClipDistance( view.getFrontClipDistance() - 0.01 );
>
>      double radius = sceneBounds.getRadius();
>      // The value of radius at this point is about 362
>      view.setBackClipDistance( 5*radius );
>

Try this:

        // Make sure that front and back clip planes are specified as a
        // virtual distance from the eye
        view.setFrontClipPolicy(View.VIRTUAL_EYE);
        view.setBackClipPolicy(View.VIRTUAL_EYE);

        double backClipDistance = 5 * radius;
        view.setBackClipDistance( backClipDistance );
        // (back / front) must be < 3000 to avoid loosing z-buffer resolution.
        // The larger the number, the more the z-buffer space will be used
        // for objects in the front of the scene.  If you loose z-buffer
        // resolution for objects at the back of your scene, decrease this
        // number.  If your objects are getting front clipped, adjust both
        // the front and back clip distances to keep this ratio.
        view.setFrontClipDistance( backClipDistance / 600.0 );

Doug Gehringer
Sun Microsystems

===========================================================================
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".

Reply via email to