PDA

View Full Version : help with textures



jono_123
03-31-2002, 06:31 PM
i have looked at many tutorials and downloaded lots of examples but i still cant get textures right
could someone please write me an example for opengl in c++ that puts a bitmap image on the side of a cube?
if you can that would be great thanx
jono http://www.opengl.org/discussion_boards/ubb/smile.gif

Morglum
04-01-2002, 12:28 AM
I have already told you to go to nehe.gamedev.net.

And this has nothing to do on the advanced forum, especially since you've already posted it on the beginner forum.

NordFenris
04-01-2002, 12:52 AM
Yes, please do. If those tutorials can't help you out, then drop me an email, will you?

immy
04-01-2002, 02:15 AM
Originally posted by jono_123:
i have looked at many tutorials and downloaded lots of examples but i still cant get textures right
could someone please write me an example for opengl in c++ that puts a bitmap image on the side of a cube?
if you can that would be great thanx
jono http://www.opengl.org/discussion_boards/ubb/smile.gif

Hello
Texture Mapping is really an easy thing to do. Have you tried to texturize something ?? if so then there must be something wrong with your texture coordinates.
Just compare your code with texture mapping tutorial on
nehe.gamedev.net

thats it. If u need some more help we are here.Try our best to help you out.

Try using
Glenum glGetError()
then
const GLubyte *gluErrorString(GLenum)

to get the last occured error.

Good Luck buddy
bye take care http://www.opengl.org/discussion_boards/ubb/smile.gif

knackered
04-01-2002, 05:19 AM
Speak for yourself, immy.

NordFenris
04-02-2002, 11:19 AM
So should you, knackered. (Even though I agree this is a beginners question.)