Results 1 to 3 of 3

Thread: Zooming

  1. #1
    Junior Member Newbie
    Join Date
    Nov 2002
    Location
    Ireland
    Posts
    21

    Zooming

    what is the difference in zooming using glPixelZoom and using
    glTranslatef(0.0, 0.0,zoom); where zoom can be increased and decreased?

  2. #2
    Senior Member OpenGL Guru Relic's Avatar
    Join Date
    Apr 2000
    Posts
    2,450

    Re: Zooming

    glPixelZoom works for glDrawPixels and glCopyPixels only and is screen coordinate based. It simple scales the bitmap size.
    glTranslate moves geometry in z direction. Depending on the current coordinate system's orientation this might not even result in a zoom effect.
    A real zoom effect for 3D graphics needs to be done by changing the field-of-view e.g. in the gluPerspective call.

  3. #3
    Junior Member Newbie
    Join Date
    Nov 2002
    Location
    Ireland
    Posts
    21

    Re: Zooming

    Would gluPerspective be the best for the resolution of the image?

    Originally posted by Relic:
    glPixelZoom works for glDrawPixels and glCopyPixels only and is screen coordinate based. It simple scales the bitmap size.
    glTranslate moves geometry in z direction. Depending on the current coordinate system's orientation this might not even result in a zoom effect.
    A real zoom effect for 3D graphics needs to be done by changing the field-of-view e.g. in the gluPerspective call.

Similar Threads

  1. Zooming out
    By Canadian0469 in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 05-19-2008, 01:01 PM
  2. zooming
    By in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 01-10-2005, 11:29 AM
  3. Zooming in and out
    By SurGL in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 05-14-2001, 10:57 PM
  4. Zooming
    By KurtCob in forum OpenGL: Advanced Coding
    Replies: 5
    Last Post: 09-18-2000, 05:26 AM
  5. zooming
    By Harry of DAIW in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 07-26-2000, 03:07 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