Advertisement

Help needed with texture coordinates?

Started by March 25, 2002 06:20 AM
1 comment, last by kevina 22 years, 11 months ago
What I am trying to do is create texture coordinates from a given *.raw file. The RAW file is made up of 3 sided polygon triangles. I have heard of the glTexGen() , glGetTexGen() I know that glTexGen() will generate texture coordinates and glGetTexGen() is used to get texture coordinates. What I would like a simple way that I can generate texture coordinates. Then put these in to an OpenGL program. I was wondering if any one has used any of these functions before if so, how are they used. Can I please get an example program that uses them, because I do not understand how they are used? Since I am new to OpenGL. Thank you in advance Kevin
I think that glGenTex is used to automatically generate texture coords based on the normals of polygons, for sphere mapping, reflections, and pretty things like that. Are you sure you don''t mean glTexCoord2f?

Well, it''s either Lesson 6 - Texture Mapping or Lesson 24 - Sphere Mapping Quadratics.

If you are very new and didn''t get here through NeHe''s site, go here and see the rest of the stuff every OpenGL newbie needs to know.
Chess is played by three people. Two people play the game; the third provides moral support for the pawns. The object of the game is to kill your opponent by flinging captured pieces at his head. Since the only piece that can be killed is a pawn, the two armies agree to meet in a pawn-infested area (or even a pawn shop) and kill as many pawns as possible in the crossfire. If the game goes on for an hour, one player may legally attempt to gouge out the other player's eyes with his King.
Advertisement
Ok I found the lesson 24 on Nehe site thanks for that.

OK since it will generate texture coordinates can I get glGetTexGen() to pull the coordinates out and place these into a file that OpenGL can read?

Thanks in advance
kevin

This topic is closed to new replies.

Advertisement