Camera clips through cubes when too close

Started by
3 comments, last by TomKQT 12 years, 6 months ago
Hey guys, here's a screen shot of what happens:
clipping.png

How would I go about having the camera not do that?
Advertisement
Begin by checking what your near clipping plane distance is set to, and if you can, make it smaller.
In C++, friends have access to your privates.
In ObjAsm, your members are exposed!

Begin by checking what your near clipping plane distance is set to, and if you can, make it smaller.


Oh wow, thank you. That solved the problem haha!
I set it from 1.0 to 0.1.. Is there any problem with having it set that low?
Lower near planes increase the potential for Z-fighting. If you set it to 0.1 and see no visible artifacts, then you don’t need to worry about it.


L. Spiro

I restore Nintendo 64 video-game OST’s into HD! https://www.youtube.com/channel/UCCtX_wedtZ5BoyQBXEhnVZw/playlists?view=1&sort=lad&flow=grid


I set it from 1.0 to 0.1.. Is there any problem with having it set that low?


The value alone is not so important, as far as potential side-effects (problems) are concerned. It is however important in correlation with the far clipping plane - the planes should be as close to eachother as possible. It's a common mistake to set near to 0.001 and far to 10000 to be absolutely sure everything will be visible - but then you have incredibly bad depth resolution which sooner or later will cause depth-fighting.

So, you should also check your far plane value.

This topic is closed to new replies.

Advertisement