Texture + transparency

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Texture + transparency

ThomasR
Hello,

I have an Image with format BGRA loaded into a Texture a stretched over a square. Regardless of values in the alpha
channel of the Image, I don't see any transparency effect (opaque only). Does the parent graph need some specific RenderState(s) or the square (Spatial) itself? It's also not clear to me who wins between a default color and colors specified at each vertex?

Tom
Reply | Threaded
Open this post in threaded view
|

Re: Texture + transparency

ThomasR
I'm getting some hints/ideas from RenderQueueExample. I also find that colors specified at each vertex always win (I'm sure you knew that anyway!). There's some really slick stuff in here! I should be good on this topic for now, but hope I can
ask a few questions if I get stuck.
Reply | Threaded
Open this post in threaded view
|

Re: Texture + transparency

gouessej
Administrator
In reply to this post by ThomasR
Hi

You have to enable the alpha blending.
Julien Gouesse | Personal blog | Website