Jump to content

  • Log In with Google      Sign In   
  • Create Account


Texture Mapping on a Triangle


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 Marvin   Members   -  Reputation: 127

Like
Likes
Like

Posted 23 July 2001 - 04:32 AM

this might seem kinda silly but how do i map a square texture onto a Triangle, a texture having 4 corners and the triangle only 3 :o/ cheers

Sponsor:

#2 Julio   Members   -  Reputation: 116

Like
Likes
Like

Posted 23 July 2001 - 05:37 AM

  
glBegin(GL_TRIANGLES);
glTexCoord2f(0.0f,0.0f); glVertex3f(-1.0f,0.0f,0.0f);
glTexCoord2f(1.0f,0.0f); glVertex3f(1.0f,0.0f,0.0f);
glTexCoord2f(0.5f,1.0f); glVertex3f(0.0f,1.0f,0.0f);
glEnd();

somethin'' like that.

HHSDrum@yahoo.com
Polarisoft Home Page




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS