Results 1 to 2 of 2

Thread: How draw a constant size object in all zoom?

  1. #1

    How draw a constant size object in all zoom?

    I have a simple opengl game. User should find a box.
    User select some point and then user icon pass this point one by one.
    User need to a compass. I draw a scaled circle as compass that give the degree to user.
    User can zoom in and out for find the Destination point.

    I want that compass and user icon have constant width and height in all zoom. I
    change the (x,y) left and right in glortho for zooming. and because of this my compass and
    user icon become large and small in zoomin and zoomout.

    How can I have them with constant size in all zoom!?

  2. #2
    Super Moderator OpenGL Lord
    Join Date
    Dec 2003
    Grenoble - France

    Re: How draw a constant size object in all zoom?

    Switch your projection matrix to glOrtho and your modelview matrix to identity before rendering your HUD.

Similar Threads

  1. Constant manipulators size.
    By rom222 in forum OpenGL: Advanced Coding
    Replies: 0
    Last Post: 03-22-2013, 02:24 AM
  2. Replies: 9
    Last Post: 06-26-2012, 12:02 PM
  3. Object rendering at constant size from camera view
    By Norris in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 08-31-2011, 10:01 AM
  4. 3D Constant size quads
    By imported_Ffelagund in forum OpenGL: General
    Replies: 2
    Last Post: 09-01-2008, 04:58 AM
  5. Rendering at constant size.
    By Aeluned in forum OpenGL: Basic Coding
    Replies: 7
    Last Post: 09-28-2007, 04:18 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