• Advertisement

Archived

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

Textured triangles ?

This topic is 5748 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
Advertisement
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
ok ! :o)

then I need some source to look at...
I gonna search around gamedev.net

thx

Share this post


Link to post
Share on other sites

  • Advertisement