Jump to content
  • Advertisement

Archived

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

Frealek

Textured triangles ?

This topic is 5868 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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!