Dani,

There are a few possibilities:

1)  The object is being clipped by your near clipping plane.  In order to
see geometry, it must lie within your view frustrum on the
top/left/bottom/right and between your near (front) and far (back) clipping
planes.

2)  You've moved to a position where you are inside the object and have
backface culling enabled.

3)  You've moved to a position where the object just plain isn't within
your view frustrum.  You never really indicated where your object is in the
scene.

When zooming to an object, you need to pay attention to where the object is
and what it's extents are.  You can use a bounding volume from the object
to get the approximate extents.

--Mark

At 10:08 AM 5/30/2001 +0100, you wrote:
>I' m implementing an applet that is able to zoom an object (ex. pushing a
>pushbutton) moving the ViewPlatform towards it. This makes the object
>appear nearer the observer. I do this changing the transform vector of the
>ViewPlatform (the default one for the SimpleUniverse is 0.0, 0.0, 2.41
>aprox). I just change the Z of this vector.
>The problem I have is that for a Z of the vector less than 1.0, the object
>dissapears.
>
>Does anyone know why ? Is the bounds or the geometry of the object what
>causes it ?
>Or is there a better way to zoom an object ?
>
>Thanks in advanced !!


Mark Ferneau                    240-462-6262 (cell)
Director of Adv. Technology             801-437-4608 (efax)
Xtivia Technologies, Inc.               732-248-9399 x629 (NJ office)
[EMAIL PROTECTED]                      301-279-5703 (home office)
http://www.xtivia.com/          [EMAIL PROTECTED] (wireless email)

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