PDA

View Full Version : glScalef() not working with glCallList?



bansheeogl
06-08-2005, 11:04 PM
I have a model in a list which i display susing glcalllist function but as its too big i wanted to scale it down so i tried glscalef function but i got no effect its not possible to touch a compiled list then ???? i should either resize when im reading the data and passing to opengl or do it on the modeller ????

T101
06-08-2005, 11:19 PM
Are you sure you don't have any glLoadIdentity calls in your display list?

t3jem
06-09-2005, 12:03 AM
Can you post your display list and the function that calls it?

Ehsan Kamrani
06-09-2005, 04:39 AM
Call glScalef before drawing your object. use from the following code:
glPushMatrix();
glLoadIdentity();
...
glScalef();
...
DrawObject();
...
glPopMatrix();

-Ehsan-