|
-
Jul 31st, 2006, 05:12 AM
#1
Thread Starter
Lively Member
[RESOLVED] How to texture map a triangle using OpenGL?
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?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|