Object rendered after transparent image are not shown.

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

Object rendered after transparent image are not shown.

Yogesh Mevada
I am drawing an object whose texture contains some transparent part.

The faces which are drawn after this transparent plane are not visible through the transparent part of the texture.

You can see in the below image.



The back face which is not visible through front face is the part of the same object. So can anyone please guide me about the solution that how I will be able to achieve the transparency for the faces which are drawn first.
Reply | Threaded
Open this post in threaded view
|

Re: Object rendered after transparent image are not shown.

gouessej
Administrator
Hi

Personally, I prefer using more complicated geometry rather than some textures with fully transparent parts. You'll probably need several rendering passes.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: Object rendered after transparent image are not shown.

gouessej
Administrator
In reply to this post by Yogesh Mevada
Actually, you should draw the transparent parts at last, the rendering order matters. You can look at this tutorial:
http://www.opengl-tutorial.org/intermediate-tutorials/tutorial-10-transparency/

I wouldn't use those methods except with partially transparent triangles, for example a dirty window glass. Using them with fully transparent triangles is too much complicated.
Julien Gouesse | Personal blog | Website