PDA

View Full Version : Texture Mapping



Slappy
04-03-2001, 07:34 AM
I'm new to OpenGL, and was wondering if anyone had time to help me texture map a small project of mine. It's just a little project that I'm doing for leisure and would like to show people. Shouldn't be too difficult. If you're interested in helping me out, please let me know! Thanks in advance!!

Slappy
04-05-2001, 07:22 PM
Can someone PLEASE help out a guy in need...i'm desperate!!!!

AndersO
04-06-2001, 02:39 AM
What you mean?

Actually paint a texturemap in some paintprogram or apply a texture on a triangle?

Applying a texture on a triangle isn't that difficult.

Enable 2d texture
Load the texture
Bind it
Specify texture coordinates when drawing the triangle

Though I usually forget some step, heh, check out some basic example..

checker.c from this site (or redbook) is easy to follow:
http://trant.sgi.com/opengl/examples/redbook/checker.c

They dont load a texture from disk, so you have to make a loader for your texture file.

Cheers.

Slappy
04-13-2001, 10:46 AM
Anders....if I send you some files, do you think you could do some texture mapping to them for me? Let me know if you are interested or not. THANKS!!!