Newbie question, need help
Hi
I am new to OpenGL and I''m fanscinated from it.I read all the tutorials, but I cannot find the answer to a certain porblem.
I want to creat a shere on a certain point on a room without changing the cameras view and the other objects in my room.
The aim is to have a function who would look like this:
void CreateMySphere (int radius,int slices,int staks, float xpos, float ypos,float zpos)
The function contains the
glutWireSphere(GLdouble radius, GLint slices, GLint stacks);
because the objects shall be shown as wired objects.
Can anyone give me a hint how to create the sphere on a certain point without changing the view ?
With best regards
Mikey
Your question is very ambigous. From what I understand (I might be wrong, tho), you want to see/rotate the sphere, but without moving the camera.
This can be done like this:
glPushMatrix();
//rotate, translate, whatever
glPopMatrix();
This can be done like this:
glPushMatrix();
//rotate, translate, whatever
glPopMatrix();
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement