I think you have to do something like this:

You set the limits:

        /** Limits for the scene */
        private BoundingSphere limits;

        public void setLimits(double dist)
        {
                limits = new BoundingSphere(new Point3d(),dist);
        }

When you initialise the scene you must try to modify views BackClip and
FrontClip distances:

Remember that you have to play with some minimal rules with this distances:

"
        There are several considerations that need to be taken into account
when choosing values for the front and back clip distances.


                The front clip distance must be greater than 0.0 in physical
eye coordinates.

                The front clipping plane must be in front of the back
clipping plane; that is, the front clip distance must be less than the back
clip distance in physical eye coordinates.

                The front and back clip distances, in physical eye
coordinates, must be less than the largest positive single-precision
floating-point value, Float.MAX_VALUE. In practice, since these physical eye
coordinate distances are in meters, the values should be much less than
that.

                The ratio of the back distance divided by the front
distance, in physical eye coordinates, affects z-buffer precision. This
ratio should be less than about 3000 to accommodate 16-bit z-buffers. Values
of 100 to less than 1000 will produce better results.

        Violating any of the above rules will result in undefined behavior.
In many cases, no picture will be drawn.
"

>From java3d_v1.2 guide Chapter 9.

You could set this distances with (getCanvas() returns your own Canvas3D):

        getCanvas().getView().setBackClipDistance(distBack);
        getCanvas().getView().setFrontClipDistance(distFront);

This is only a short indication, I supose that the use of different Clip
Policies will conclude in different results.

Regards.

-----Original Message-----
From: Tina Manoharan Valappil [mailto:[EMAIL PROTECTED]]
Sent: jueves 31 de mayo de 2001 16:31
To: [EMAIL PROTECTED]
Subject: [JAVA3D] Infinite limits !!


        Hi all,

        I would like to create a geometry that acts like a "Ground" for
        my scene. But when I set a limit say 1000, and when I navigate at
        some point I am out of the ground. But instead I would like the
        limits to be at infinity.

        Is that possible ?? Or should I just set a very large value?

        Thanks for your help

        Tina

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

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