Results 1 to 4 of 4

Thread: glScalef() not working with glCallList?

  1. #1
    Member Contributor
    Join Date
    Apr 2005
    Posts
    85

    glScalef() not working with glCallList?

    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 ????

  2. #2
    Senior Member Regular Contributor
    Join Date
    Jan 2004
    Posts
    314

    Re: glScalef() not working with glCallList?

    Are you sure you don't have any glLoadIdentity calls in your display list?

  3. #3
    Senior Member Regular Contributor
    Join Date
    Mar 2005
    Posts
    115

    Re: glScalef() not working with glCallList?

    Can you post your display list and the function that calls it?

  4. #4
    Senior Member Frequent Contributor ehsan2004's Avatar
    Join Date
    Jun 2004
    Location
    Iran
    Posts
    645

    Re: glScalef() not working with glCallList?

    Call glScalef before drawing your object. use from the following code:
    glPushMatrix();
    glLoadIdentity();
    ...
    glScalef();
    ...
    DrawObject();
    ...
    glPopMatrix();

    -Ehsan-

Similar Threads

  1. glCallList not working
    By NossC in forum OpenGL: Basic Coding
    Replies: 8
    Last Post: 10-27-2009, 07:43 PM
  2. glScalef()
    By mark-w in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 08-12-2005, 12:00 PM
  3. does glScalef...
    By grimoire in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 06-29-2004, 12:24 AM
  4. glcalllist
    By fobru in forum OpenGL: Advanced Coding
    Replies: 3
    Last Post: 10-13-2003, 06:49 PM
  5. regarding glScalef()
    By karteek in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 03-28-2003, 05:41 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean