z_near - z_far
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 ?
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
-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".
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
Popular Topics
Advertisement