how place partitial textures on quadric objects?
Hi,
does someone know how to place a texture on a SINGLE segment
of a quadric object e.g. gluDisk()? First I thought, I could
access vertexes of the quadric object to place a special texture
manually, but it seems I can't... =(
GLUquadricObj *quadric;
quadric=newGluQuadric();
// if I bind a texture here it's just valid for the hole object.
// So I need access to vertexes of quadric's segments ... or
// I have to calculate my own disk, but I hope it's not nescessary.
gluDisk(quadric, 1.0f, 2.0f, 20, 20); // my 20 segments!
Thanks in advance!
Sergio
forget glu, learn some additional math,and create your own objects. I always see people look to glu for spheres, balls en disks, but they are so easy to do yourself. this way they can be faster, and you'll be able to do whatever you want with the vertices and textures.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement