Now i'm stuck :)

Started by
14 comments, last by Lord_Evil 14 years, 7 months ago
Yes you are right Lord_Evil.


Shot taken from the viewer.
Xynapse | http://szczerbiec.net/
Advertisement
So,

speaking about orders - how should the order look like in this scene?
Xynapse | http://szczerbiec.net/
Strange, I worked with alpha tested trees etc. and I never had that problem. I used
glAlphaFunc(GL_GREATER,0.5), turned blending OFF, and painted the background green. With 0.5, you wont get so rugged jaggies, if you don't like the result, you can use higher resolution textures.

EDIT: But if you want to let it blended at the edges, than you have to sort the leaves by depth.

(If I miss or misunderstood something, than sorry.) Now I see, but try disabling blend anyway.
/EDIT
szecs - this is true,
when i disable blend and go into Alpha > 0.5 it is not doing any order problems, but the textures then have to be really well prepared.

This is why i'll probably switch from blending to Alpha tests.

Anyways, no need to go with this thread further - lemme do the alpha tests and forget about the problem ;)
Xynapse | http://szczerbiec.net/
Last reply:
Use linear filtering in the textures.
As I said, to tackle the jaggie problem you could use alpha-to-coverage which should result in less jaggies than alpha-testing alone.

I also mentioned valve's method. I finally found the article: http://www.valvesoftware.com/publications/2007/SIGGRAPH2007_AlphaTestedMagnification.pdf
If I was helpful, feel free to rate me up ;)If I wasn't and you feel to rate me down, please let me know why!

This topic is closed to new replies.

Advertisement