Jump to content

  • Log In with Google      Sign In   
  • Create Account

Interested in a FREE copy of HTML5 game maker Construct 2?

We'll be giving away three Personal Edition licences in next Tuesday's GDNet Direct email newsletter!

Sign up from the right-hand sidebar on our homepage and read Tuesday's newsletter for details!


We're also offering banner ads on our site from just $5! 1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


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