PDA

View Full Version : scale problem



wizzo
11-10-2003, 07:01 AM
hi all !

i'm rendering sphere for a physic project, but after the first time i execute the test (a ball colliding with another), i 'reload' it with a key, so i re-initialise values. the thing is that every time i reload it, the sphere appears smaller than it was the first time. plus, the 'new' radius isnt the same everytime
as i'm using vertexArray, there is no prank on the radius value, so i thought about the scale... but thought that it shouldn't be it because i almost don't use glScalef();

i tried to put a glScalef(1, 1, 1); just before the rendering function, it didn't change anything

so my question is : is there a way opengl change the scale without telling me ?

wizzo

virtualchetan
11-10-2003, 08:56 AM
i tried to put a glScalef(1, 1, 1); just before the rendering function, it didn't change anything

Thats good! when you scale with a factor of 1, nothing should change.

About your problem, I guess, U might be having unbalanced glPushMatrix() and glPopMatrix()

- Chetan