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

desireeTest.zip

Reply via email to