Original Post
Let''s say I had a quadric and a line I drew it like this:
Theoretically, the sphere should be drawn to the end of the line that isn''t at the origin, right? But when I actually try this code the sphere ends up in lala land flying around the screen. What am I doing wrong? Major thanks in advance
--
Peace,
Capt. Jean-Luc Pikachu
glColor3f(1.0, 1.0, 1.0); glBegin (GL_LINES); glVertex3f (x, y, z); glVertex3f (0.0, 0.0, 0.0); glEnd(); glColor3f (1.0, 0.0, 0.0); glTranslatef (x, y, z); gluSphere (sphere, 1.0, 12, 12); |