Skip to main content
GameDev.net gamedev.net
🔒 Locked

semi-transparency problem

Started by Tosh777 Apr 1, 2011 at 6:42 PM 1 replies 700+ views
Original Post
Tosh777
Tosh777
Hello. I am still developing my GUI system and now i try to make semi-transparent control like here:


gothic3_gf7800_1.jpg

I want to acheive the effect at the 6 slot where you can see his leg and at the compass you can see the grass.
So far i can successfully handle full transparency, but not semi-transparency. Here is shot:

ffsjs.png

So the textboxes(under model name for instance) got full transparency over the edges and i got no problem with them and they look rounded.
But look at the semi-blue and semi-black rectangles at bottom. Through them can be seen the skybox behind, but the terrain is ignored.
Anyone got idea?
Evil Steve
Evil Steve
You need to render all opaque geometry first, and then translucent geometry.

As it is, I guess you're rendering skybox, those transparent lozenges, then the terrain - and the lozenges write to the Z-buffer, causing the terrain to be z-rejected.
Tosh777
Tosh777
zomgzomzogmozmzgo thank you man <3 you.
Looks fuckin epic now!

Topic Locked

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

Sign in to reply to this topic.