Results 1 to 4 of 4

Thread: camera options + ortho/prespective

  1. #1
    Junior Member Newbie
    Join Date
    Feb 2009
    Posts
    11

    camera options + ortho/prespective

    i have 3 questions

    how to zoom in and out using a keyboard input in a 3d shape,

    and how to toggle between wireframe & solid with a keyboard input too,

    and toggle between prespective & ortho

    if anyone got samples plz post

  2. #2
    Super Moderator OpenGL Lord
    Join Date
    Dec 2003
    Location
    Grenoble - France
    Posts
    5,574

    Re: camera options + ortho/prespective

    homework ?

  3. #3
    Junior Member Newbie
    Join Date
    Feb 2009
    Posts
    11

    Re: camera options + ortho/prespective

    yes,
    i am modeling and short on time and trying to add the keyboard inputs while modeling

  4. #4
    Senior Member Regular Contributor Rosario Leonardi's Avatar
    Join Date
    Aug 2008
    Location
    Italy
    Posts
    356

    Re: camera options + ortho/prespective

    The key input is dependens from your framework you can have to catch a windows message or your framework call a callback at the key pressure. We can't help you if you don't tell us your framework.. and by the way it's totally openGL unrelated. :P
    To zoom in and out you can change the FOV of your projection matrix or move the camera.
    To switch between wireframe and solid check the glPolygonMode functions.
    To toggle between perspective and ortho... change the projection matrix. :-\
    ~ ~ I tell you, realtime 3D is made of blood, sweat and screams! ~ ~

Similar Threads

  1. Replies: 2
    Last Post: 06-06-2015, 07:35 AM
  2. prespective projection
    By alneam in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 08-03-2012, 08:15 PM
  3. ortho + perspective + ortho
    By mithun_daa in forum OpenGL: Basic Coding
    Replies: 6
    Last Post: 06-09-2004, 07:54 AM
  4. Ortho/Camera Question
    By redknite in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 10-11-2000, 07:51 AM
  5. Compiler options?
    By Amp in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 09-14-2000, 07:38 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