Archived

This topic is now archived and is closed to further replies.

Frealek

Textured triangles ?

Recommended Posts

Frealek    122
Hi, I''d like to know if it is possible to texture triangles with opengl : I know that the basics are textured quads, but how could I set up texures for triangles ? or how could I build "triangles" textures from a square, basic, texture ? thx

Share this post


Link to post
Share on other sites
mordred    122
Building textures for triangles works exactly as building for a quad. Imagine building a square built of 2 triangles. It has four vertices right? One for each corner. In the upper left corner you give the texcoords 0,0 and in the lower right 1,1.

Share this post


Link to post
Share on other sites