Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 7 of 7

Thread: Draw image out of viewport

  1. #1
    Intern Newbie
    Join Date
    Apr 2005
    Posts
    32

    Draw image out of viewport

    Hi,

    Can I set the viewport to one size and draw image with larger size than viewport tha I see only th part of image?

    Thank's
    Alexei

  2. #2
    Junior Member Newbie
    Join Date
    Nov 2005
    Posts
    20

    Re: Draw image out of viewport

    OpenGL will clip to the viewport whatever you throw at it.

    So for example if you're in a 640x480 window in ortho mode and you draw a 800x600 quad using glVertex2i then that quad will be clipped to the screen just fine.

  3. #3
    Intern Newbie
    Join Date
    Apr 2005
    Posts
    32

    Re: Draw image out of viewport

    Hi,

    I want to show only part of image ( of my drawing). I need it for zoom in.

  4. #4
    Intern Newbie
    Join Date
    Jul 2004
    Posts
    40

    Re: Draw image out of viewport

    If you need to zoom in, you should change camera settings, not the viewport. You can do it with gluLookAt, or whatever modelView transformation you are using.

  5. #5
    Intern Newbie
    Join Date
    Apr 2005
    Posts
    32

    Re: Draw image out of viewport

    Hi,

    I have tryed this but it doesn't help me...

    Thank's
    Alexei

  6. #6
    Senior Member OpenGL Pro
    Join Date
    Jul 2001
    Location
    France
    Posts
    1,749

    Re: Draw image out of viewport

    Can you precise as much as you can what you want ? I read your post several times but I still don't understand what your problem really is.

  7. #7
    Intern Newbie
    Join Date
    Apr 2005
    Posts
    32

    Re: Draw image out of viewport

    Hi,

    I have solved my problem.

    Thank's
    Alexei

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •