Skip to main content
gamedev.net
🔒 Locked

Depth function problem

Started by CTPAX 3 replies 750+ views
Original Post
CTPAX
CTPAX
I have a huge problem... Because of my Depth function is set to GL_LEQUAL (which I presume is the best) there comes a quad collison... Or it looks like that... But, it troubling my mind so much... The distance between them is 50 units... How could Depth finction work so wrong... Here is how it looks... http://alas.matf.bg.ac.yu/~mi06271/slika.gif Does anyone have a solution for this?
Kambiz
Kambiz
What values do use for near and far clipping planes?
The far/near ration shouldn't be too large if you want good precision.
CTPAX
CTPAX
It's 0.0001 for near and 500.0 for far... You think that's it?
Kambiz
Kambiz
Try a much larger near value, maybe 0.1 or even 1.
CTPAX
CTPAX
Tnx, it helped.. I've changed it two months ago on some projects, and from the same project I've started this one, so that's whn the problems begin... Tnx again...

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.