Spheres - MultiQuestion...
Ok, so I''ve created a sphere using gluSphere and I remembered to set the auto-texture co-ordinate generation on the ortho I used to create it.
1)How do I now map the texture to the sphere?
2)How do I make the sphere a light source? - I''m aiming for a ''sun'' effect here, is this some trick with using the projection matrix or is there a way to make an object into a lightsource?
A friend of mine sent me frankly scary code for texturing a sphere that involved creating the sphere using triangles and mapping the texture onto that, whilst this works I''d prefer to know if there is a way to map onto the gluSphere.
Maybe this would be a decent mini-tutorial?
All help greatly appreciated.
MrChris
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement