Results 1 to 2 of 2

Thread: Resizing a window

  1. #1
    Junior Member Newbie
    Join Date
    Dec 2002
    Location
    Sheffield Lake OH USA
    Posts
    1

    Resizing a window

    The standard model I have seen for viewing a scene is a camera where the camera is set and the elements are placed in front of it. The window is what is seen through the lens of a camera and when the the window is resized the the scene as viewed through the lens stays the same but the elements in the scene get bigger or smaller depending on how the window is resized.

    What I would like to do and need some guidance on is how to keep the elements the same size regardless of how the window is resized. Kind of like looking through a real window, when I make the window larger I see more of the scene. The elements I am viewing through the window do not change size I just see more of them.

    Does anyone understand what I mean and can you help? I feel I am missing some crucial concept and cannot grasp what it might be.

    Thanks.

  2. #2
    Senior Member OpenGL Pro
    Join Date
    May 2001
    Location
    Kristianstad,Skåne,Sweden
    Posts
    1,595

    Re: Resizing a window

    Hi !

    It should be possible to play around with the field of view, when the window grows you increase the field of view to compensate for it, not sure how to calculate the fov value though.

    Mikael

Similar Threads

  1. Very Basic: about resizing a window
    By zedrummer in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 11-09-2014, 12:30 PM
  2. Window Resizing
    By sidenelen in forum OpenGL: Basic Coding
    Replies: 14
    Last Post: 08-17-2011, 02:01 AM
  3. Window Resizing
    By Brennan in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 06-02-2005, 01:52 PM
  4. window resizing
    By paneb in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 03-27-2003, 04:21 PM
  5. Strange bug while resizing window
    By airatsa in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 05-06-2002, 12:47 PM

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