Neuron
01-11-2012, 03:24 AM
Hi all, I have 3 questions.
1- I want to map a texture only to the inside of a cylinder? how do I?
2- And I want to move and fix my camera to center of the cylinder both horizontally and vertically!(I have already rotated the cylinder -90 degrees so now it is standing:D)? how should I?
// attributes of the cylinder
gluLookAt(0.0, 0.0, 10.0, 0.0, 2.0, 0.0, 0.0, 1.0, 0.0);
glRotatef(-90.0, 1.0, 0.0, 0.0);
gluCylinder(pObj, 5.0, 5.0, 4.0, 128, 64);
3- What about stacks and slices of the cylinder, are they sufficient(I want to use big textures(resolution>8xx*2xx)?
1- I want to map a texture only to the inside of a cylinder? how do I?
2- And I want to move and fix my camera to center of the cylinder both horizontally and vertically!(I have already rotated the cylinder -90 degrees so now it is standing:D)? how should I?
// attributes of the cylinder
gluLookAt(0.0, 0.0, 10.0, 0.0, 2.0, 0.0, 0.0, 1.0, 0.0);
glRotatef(-90.0, 1.0, 0.0, 0.0);
gluCylinder(pObj, 5.0, 5.0, 4.0, 128, 64);
3- What about stacks and slices of the cylinder, are they sufficient(I want to use big textures(resolution>8xx*2xx)?