z_near - z_far

Started by
1 comment, last by cruZ 23 years, 6 months ago
What are common values for z near and z far (front and back clipping planes) If I use 1.f for z near I get problems with the zbuffer. Is it ok to set it to 10 or even 100 ?
Advertisement
I use 10.0f for near-plane and I dont have any problems. This is what they have in the books I have read on D3D.


-BrianH
The smartest way is to use "dynamic" or "variable" front clip:
On every frame, find the closest object to camera and set front clip to "object''s camera z - object''s radius".

This topic is closed to new replies.

Advertisement