Window on a textured wall

I have a textured wall that consists of 2 GL_QUAD object (2x4=8 points) (so the wall has thickness) but I don’t know how to put a window on it so that you can see through the window what’s behind the wall. If someone knows the answer, please write down the order of rendering (first the elements of the wall, then the window or vica versa?) as well.

Well how about you make each piece of the wall 4 quads. So you would have 8 in total. That way you could have a quad on the left of the window, on the right of the window and on the top and bottom of the window.

  • Halcyon

If you use tga images and well designed
alpha channel you won’t have any problem with transparency

I agree the simplest way would be to use a apha mask to create a transparent areas for the windows.
Just draw your windows on your texture and make the glass transparent via a apha mask.

Any good paint program will support apha channel and saving to TGA file formation.

nehe.gamedev.net has a good tutor on it.

Originally posted by LordOfTheUniverse:
If you use tga images and well designed
alpha channel you won’t have any problem with transparency