Results 1 to 2 of 2

Thread: Render Text in perspective Mode?

  1. #1
    Junior Member
    Join Date
    Sep 2010
    Posts
    7

    Render Text in perspective Mode?

    Hi,

    I want to render text for my app. Normaly one would use glOrtho for pixel accurate quad rendering BUT in my app the textbox should move in the background (z).

    Just imagine you have NPC´s (objects) in a video game and want to display their names above their heads. The names of the persons near to the camera should appear bigger and easier to read than the ones farther away.

    What should I do? Where do I get an appropriate Projection Matrix? I can´t find anything regarding the problem online or in books.

    Best regards, S.

  2. #2
    Junior Member
    Join Date
    Apr 2011
    Posts
    4

    Re: Render Text in perspective Mode?

    Hi,

    A good overview of setting up a projection view matrix can be found here:
    http://www.songho.ca/opengl/gl_projectionmatrix.html

    For a movable camera what you want to be doing is rendering the textured quad with a rotation inverse to any rotation in the in the camera view matrix, such that the quad plane is always perpendicular to the camera.

Similar Threads

  1. The support of out-of-order mode ?
    By zhaopeng in forum OpenCL
    Replies: 4
    Last Post: 09-26-2012, 11:27 AM
  2. Help in Image Multiply Mode
    By mkarthik293 in forum OpenVG and VGU
    Replies: 0
    Last Post: 07-16-2008, 11:39 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
  •