mogu
05-02-2005, 09:40 PM
Is it possible to calcualte a good near clip using only field-of-view and far clip?
I have som simple calcuations that increase or decrease my near clip when I change my fov. This I do to prevent z buffer flickering when I look at 3D objects. The function is linear, so it will not work on all combinations of fov and far clip since z-buffer values are exponential, giving more z-buffer precision to objects close to near clip.
Is it possible to make a function that calculate a near clip that does not cause z buffer flicker using far clip and fov as input, or is this something that must be customized for every far clip and fov?
any ideas?
I have som simple calcuations that increase or decrease my near clip when I change my fov. This I do to prevent z buffer flickering when I look at 3D objects. The function is linear, so it will not work on all combinations of fov and far clip since z-buffer values are exponential, giving more z-buffer precision to objects close to near clip.
Is it possible to make a function that calculate a near clip that does not cause z buffer flicker using far clip and fov as input, or is this something that must be customized for every far clip and fov?
any ideas?