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 2 of 2

Thread: Object rendering at constant size from camera view

  1. #1
    Junior Member Newbie
    Join Date
    Aug 2011
    Location
    France
    Posts
    1

    Object rendering at constant size from camera view

    Hi !
    I'm developing a 3D tool, and I want that my axis object (like in all 3D modelers) always have the same size from camera point of view. Is there an easy way to do this ?
    The object must keep his original transformations, so I think I need to draw it as his real position and just resize him (the 3 axes) depending on the distance between the camera and the axis.
    But I can't find the right way.
    Thanks in advance for your advice.
    sorry for my bad english

  2. #2
    Junior Member Regular Contributor tksuoran's Avatar
    Join Date
    Mar 2008
    Location
    United Kingdom
    Posts
    200

    Re: Object rendering at constant size from camera view

    Scale the object by distance to camera.

Posting Permissions

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