Sounds like you need to set the back clipping distance further.
Cheers,
Allistair Crossley
Web/New Media Consultant
Logica UK Ltd
Tel: 02074 463267
Mob: 07884 056274
-----Original Message-----
From: Desiree Hilbring [mailto:[EMAIL PROTECTED]]
Sent: 22 May 2001 11:15
To: [EMAIL PROTECTED]
Subject: Re: [JAVA3D] Test program (fwd) for Grafic card question
Hi Chris,
I included the below code into my big application, unfortunately then all
my objects get clipped from time to time during rotation and reappear
again.
>
> //get the viewpoint position, calc distance from model
> (e.g. 0,0,0) and set clip
> //Vector3d v3d = new Vector3d(0,0,0);
> trans.get(v3f);
so in v3d are the coordinates from the viewing platform transform, right?
> float[] t = {0,0,0};
> v3f.get(t);
so I do have an float array holding the x,y and z od v3f, but it is not
used anymore. For what purpose do I have t?
could you explain this row to me? Here you are adding the x,y and z
coordinates of the viewing platform and divide them by 30? Why?
> float dist = (float)(v3f.x + v3f.y + v3f.z)/30f;
Thanks Desiree
> transGroup.setTransform(trans);
> thisView.setFrontClipDistance(dist);
> // end new code
>
> in the ViewerNavigationBehavior.
>
> I attach the modified files as there are a few parameter changes and such.
>
> Chris
>
>
> Hilbring wrote:
>
> > Hi,
> >
> > I tried to reconstruct a similar scene as in my real application.
> > In the test program you can rotate and zoom. My problem is the
> > intersection between the two planes with a front clipping distance of 1,
> > as I need for the zooming the intesection line is somewhat triangled.
With
> > a front clipping distance of 100 it is fine.
> > So can I adjust the front clipping distance during zooming? Or is there
a
> > way setting the clipping distances without this effect?
> > Or how can I calculate the minimal front clipping distance I need?
> > In my real Application the user can adjust the view in zooming in to the
> > box, unfortunately with a clipping distance of 100 the box get clipped
> > then.
> >
> > Thanks for your help Desiree
> >
> > PS The Main Class is ZBufferTest.java
> >
> > oooooooooooooooooooooooooooooooooooooooooooooooo
> > Desiree Hilbring
> >
> > Institut fuer Photogrammetrie und Fernerkundung
> > Universitaet Karlsruhe, Germany
> > email: [EMAIL PROTECTED]
> > # 0721 6083676
> > oooooooooooooooooooooooooooooooooooooooooooooooo
> >
> >
----------------------------------------------------------------------------
----------------------------------------------------
> > Name: zbuffer.zip
> > zbuffer.zip Type: Zip Compressed Data
(application/x-zip-compressed)
> > Encoding: BASE64
>
> --
> ,--_|\
> / Oz \
> Chris Thorne :)_.--._/
> [EMAIL PROTECTED] v
>
>
===========================================================================
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".