Alvaro,
None of us have "solved" the z-buffer problems. The best we can do is
make intelligent choices for front and back clipping distances to best
fit our scene. Dynamically adjusting the front and back clipping values
is an intriguing idea, but it would be pointless to adjust just one of
them.
- John Wright
Starfire Research
alvaro zabala wrote:
>
> Hi all!,
> I have a question about changing clipping planes dinamically for solve the
> z-buffer tearing problem.
>
> Desiree and Chris suggest me to changing front clip distance, but I don't
> understand very well.
>
> Don't I may change the back clipping plane instead?
>
> My idea is to calculate the distance from the Viewing Platform to the
> furtest object , and change the back clipping plane to that distance.
>
> May I have in a blunder??
>
> Please, see the atachment with the z-Buffer problem.
>
> (People who has solved it, like David Yazel would be appreciated)
>
> -----Mensaje original-----
> De: ChrisThorne <[EMAIL PROTECTED]>
> Para: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
> Fecha: miércoles 23 de mayo de 2001 1:18
> Asunto: Re: [JAVA3D] Test program (fwd) for Grafic card question
>
> >
> >
> >Desiree Hilbring wrote:
> >
> >> > Sounds like you need to set the back clipping distance further.
> >>
> >> I detected that dist sometimes calculates a negative distance, setting
> the
> >> front clipping plane at a minimum of 1 solves the clipping problem, but
> >> the original zbuffer issues still exists.
> >
> >Ok, there was a mistake - I should have used absolute values. You could
> using the sqrt distance
> >formula - as in the attached version of your test program.
> >
> >It works on my tests using your test program and dist will always be +ve.
> >
> >If that doesn't work in your main application then we can try keeping the
> forward/back clip ratio
> >to a constant. I see from your later mail you have used this solution.
> Are you keeping the
> >ratio to 3000 or a smaller number?
> >
> >cheers,
> >
> >Chris
> >
> >
> >--
> > ,--_|\
> > / Oz \
> >Chris Thorne :)_.--._/
> >[EMAIL PROTECTED] v
> >
> >
>
> ------------------------------------------------------------------------
> Name: Prueba1.gif
> Prueba1.gif Type: GIF Image (image/gif)
> Encoding: base64
===========================================================================
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".