PDA

View Full Version : cube-sphere-new



pavlov123
01-07-2003, 09:53 AM
thanks a lot for your answers.
your solution to my fullscreen problem mode
worked but in my second question i think i didn't explained enough.Imagine that i want to make a very very simple head.The cube will be the head an i want the spheres to
be the two eyes.when i see the face from the one side i want to see a sphere and behind the sphere the cube but when i rotate my scheme i want the face to looks like
-------SIDE
|--------|
| /\ | <----eye(sphere)
---->eye(sphere) | \/ |
| |
| |
|________|<-----face(cube)


---------rotation 90 FACE

|--------|
/| |\ <----eye(sphere) | |
---->eye(sphere) \| |/
| |
| |
|________|<-----face(cube)

M/\dm/\n
01-08-2003, 12:54 AM
Your drawing are explanatory as h.ll http://www.opengl.org/discussion_boards/ubb/mad.gif
Problem: order of translations&rotations+loadidentity&push/popmatrix
Answer: use display lists, draw your face and then (even if you dont understand what you're doing with rotations) everything will work fine, because you'll be rotating "one" solid object. Like:
glrotatef(45,0,1,0);
callist(face);(or somthn like that, don't remeber for sure)