   3D texture mapping
  I'm trying to work out if I can map a texture to an object without specifying a texture coordinate for every single vertex. That is, I want to make one image and get it wrapped around my 3D model, and let OpenGL work out the texture coordinates for me.I've worked out I can do it in 2D with glTexGen, and that textures can be stored in 3D space using homogeneous coordinates, but I can't find anything on using glTexGen in three dimensions.Is it possible? Are there any good articles that explain 3D texture coordinates and how to use them?   
  What is the first parameter you send to glTexGen?It will be GL_S, GL_T, GL_R or GL_Q rightSo you setup for GL_S, GL_T, and GL_RDon't forget to enable all of themglEnable(GL_TEXTURE_GEN_S);glEnable(GL_TEXTURE_GEN_T);glEnable(GL_TEXTURE_GEN_R);;  Yeah I figured as much, but I have no idea how glEnable(GL_TEXTURE_GEN_R) works. How do 3D coordinates work with a 2D image?   ;  The 3rd component is not used for 2D textures.For 3D texture, it's used to select a slice.For cubemap, the str together form a vector so it's used to select a cubemap face, then a certain calculation is done to have a st coordinate, then it's used to sample the texel.   ;  That makes sense. Looks like it's not (easily) possible to do what I want. Thanks for the help.   