dt

02-24-2005, 02:21 AM

Hi

I am a newbie here. what I am doing is drawing a number of individual spheres which constitute an object. There are thousands of spheres and I have arrays of all the positional information relative to an origin. I am using the solid sphere routines and the glTranslate commands to move to the next position. However I want to simply forget about the last spheres psotion and awlays draw relative to the origin?

Can someone clear up the issue whether I should use PopMatrix here to ensure that my function that draws the sphere originates back at the origin?

Any help would be appreciated. Thanks

Brett

I am a newbie here. what I am doing is drawing a number of individual spheres which constitute an object. There are thousands of spheres and I have arrays of all the positional information relative to an origin. I am using the solid sphere routines and the glTranslate commands to move to the next position. However I want to simply forget about the last spheres psotion and awlays draw relative to the origin?

Can someone clear up the issue whether I should use PopMatrix here to ensure that my function that draws the sphere originates back at the origin?

Any help would be appreciated. Thanks

Brett