View Full Version : Texturing non-primitive objects...

Anonymous Coward
08-14-2000, 09:25 AM
Maybe you can help me. I know how to texture a cube, a single rectangle, etc. but I dont have any idea on how to texture, an sphere or an irregular body (e.g. a face). I read the red book but didnt find any information about this. I think I hav to set texture coordinates but dont know how to do that with irregular objects...Thx!

08-16-2000, 12:05 AM
hi !! take a look for quadrics objects

07-06-2002, 12:04 AM
As far as quadrics are concerned (spheres, cylinders, disks, etc ...), you just have to enable automatic texture coordinates generation with :


before calling gluSphere(...), gluCylinder(...),...


07-08-2002, 05:00 AM
But quadrics are limited to simple shapes. Otherwise you have to calculate the texture/poly vertex coords yourself. Or model it in 3d max/softimage/maya or something similar which can export the polygin and teture coords for you