Limited Rendering order with OpenGL objects with alpha channel?

Hello,

I have a little problem…

Im using a 2D textured Object with a Frame Texture and in the middle of the Texture there is a alpha area.

If I render the 2D textured Object at first, then the 2nd rendered OpenGL behind the frame is not visible behind the Alpha channel.
But if I render the 2D textured Object at last, then the 2nd rendered OpenGL behind the frame is visible.

Is there a way to eliminate this render order limit?

Thanks.

Ps.: I can not upload an Image with 620x280 14 Kb , why?

This is a common problem of order independent transparency. You should draw your objects in back to front order: more distant objects before closer objects. There are more advanced algorithms for this, but they all have their limitations.

Only objects with transparency should be drawn this way.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.