Jump to content

View more

Image of the Day

Boxes as reward for our ranking mode. ヾ(☆▽☆)
#indiedev #gamedev #gameart #screenshotsaturday https://t.co/ALF1InmM7K
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Texture Mapping Newie

4: Adsense

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
2 replies to this topic

#1 Tasselhof   Members   

122
Like
Likes
Like

Posted 19 November 2001 - 12:37 AM

Hi all, I''m new to OpenGL and try to learn OpenGL by reading NeHe Lessions. At lession 6 there is a sample of texture mapping, which runs perfectly. The tutorial shows how to map one texture to all the sides of the cube by using glBindTexture before glBegin(GL_QUADS). In the tutorial it is mentioned that you must use glBindTexture outside of glBegin. How do I map different textures to different sides of the cube?? A little bit of code would be nice. Thanks in advance, Tasselhof

#2 Null and Void   Members   

1087
Like
Likes
Like

Posted 19 November 2001 - 12:52 AM

You load 6 textures, then call glBindTexture with a different texture before you render each side. You''d have to put each side in its own glBegin/glEnd set, since you can''t call glBindTexture within one.

[Resist Windows XP''s Invasive Production Activation Technology!]

#3 Tasselhof   Members   

122
Like
Likes
Like

Posted 19 November 2001 - 11:41 PM

Thanks, that was the information I needed.

Cheers, Tasselhof




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.