No clipping. Ever.

Started by
4 comments, last by Goodlife 24 years, 3 months ago
Hi all-- Can I set d3d to not clip anything that''s too close to the camera? If an object got behind the camera, I would rather see it as a huge pixellated mess than have it vanish completely, exposing the innards of my graphics. In my interface, the user ''never'' gets behind an object, since they''re viewing it from above. But when I zoom the camera in, sometimes I get inside things, and I''d rather they just got bigger. Thanks in advance! --Goodlife
-- Goodlife-----------------------------Those whom the gods would destroy, they first drive mad.--DirectX design team official motto
Advertisement
Are you using the directx utility library?

If you are you may need to tweak the viewing frustrum. It seems to me the default front clipping plane is set to far from the screen.

Hope I helped.
Apparently you''re zooming by moving the camera forward.
Try keeping the camera still and reducing the field of view.
Well, I zoom by changing the scale factor on the view projection. I thought this would prevent things from getting behind the camera.

I don''t move the camera at all.
-- Goodlife-----------------------------Those whom the gods would destroy, they first drive mad.--DirectX design team official motto
Ah. Then you should change your near and far clipping planes along with the scale.
scaling the view matrix isn''t the best way to do it, this just basicaly inlarges everything, and that makes it come too close to the camera. I suggest looking into the details on setting up a projection matrix that has a variable viewing angle, then if you want to zoom, you just decrease the angle, and reset the matrix.

This topic is closed to new replies.

Advertisement