Skip to main content
gamedev.net
🔒 Locked

Beginner's problem, need help!

Started by fazekaim 2 replies 350+ views
Original Post
fazekaim
fazekaim
Hello! I would like to draw triangles (with the same Y - up direction - value), which ones may intersect each other. When I draw it with alpha value, I see darker blobs. How can I resolve it? screenshot:: http://delfin.unideb.hu/~fazekaim/problem.jpg I have a plane quad (in red colors), and above the quad a lot of randomly generated triangles with the same Y(up direction) value. Thanks.
fazekaim
fazekaim
I played with glEnable( GL_CULL_FACE) and the amount of darker blobs decreased.

stroma
stroma
i think sone triangles are seen together and makes darker area. i mean the color of them mixing. gray+gray = more gray(darker)
i am not sure; you may use depth buffer to eliminate triangles that makes this.
sorry for bad eng.
+-+-+-+-+-STR
fazekaim
fazekaim
I used the depth buffer:

glDepthFunc( GL_LESS );

I tried all glDepthFunc parameters. But the only result is, that all triangles diappeared.

This is the method, that you think of?



Topic Locked

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

Sign in to reply to this topic.