Hi,

I have problems about texture mapping a triangle. I am drawing 4 houses with each houses's walls drawn as a cube and its roof drawn as 4 triangles.

Texture mapping the walls is ok. But when I texture map the triangles, strange results appear. When I texture map one triangle with a bitmap image, the texture not only appears on the triangle, it also appears on the 4 walls of all the houses.

The size of the texture is 64x64pix. I used the method used for texture mapping quads. For texture mapping the triangle, I used 3 glTexCoord2f() statements instead of 4.

How do I make sure that the texture is applied on the triangle only and not be applied onto the quads also?