Archived

This topic is now archived and is closed to further replies.

Goodlife

No clipping. Ever.

Recommended Posts

Goodlife    122
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

Share this post


Link to post
Share on other sites
Guest Anonymous Poster   
Guest Anonymous Poster
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.

Share this post


Link to post
Share on other sites
Goodlife    122
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.

Share this post


Link to post
Share on other sites
Pseudo    100
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.

Share this post


Link to post
Share on other sites