PDA

View Full Version : Hiding gluSPhere()



Ravi
10-23-2003, 05:29 AM
i am creating a gluSphere, translating it and rotating it around y-axis(has a motion like a planet). i want the sphere to become invisible at certain point and have it reappear later.
how do i do that? i wud appreciate any suggestions

Coconut
10-23-2003, 05:42 AM
Someone has answered your question in the beginner forum. What was wrong with the answer?

Ravi
10-23-2003, 06:03 AM
>Just do not render it and keep track of where it is

how do i keep track of where it is?

GetglFloatv(PROJECTION_MATRIX,params)
how do i interpret the returned matrix to get the current position of the sphere?

any suggestions?