Results 1 to 5 of 5

Thread: 2D text in 3D

  1. #1
    Junior Member Newbie
    Join Date
    Feb 2000
    Location
    Oklahoma
    Posts
    5

    2D text in 3D

    I am building a 3D plot utility that can be rotated with the keys or mouse. I am now working on putting numbers on (near) the x,y, and z axes (I'll also need to put axis labels there).

    These labels will need to rotate with the coordinate axes as the plot is rotated by the user. What is the best way to do (i.e. easiest way to program) this type of text.

    Note: I don't think I'll need high speed rendering, so I don't think I need the most computationally efficient solution.

    Thanks,
    wayne

  2. #2
    Senior Member Frequent Contributor
    Join Date
    Feb 2000
    Posts
    569

    Re: 2D text in 3D

    http://nehe.gamedev.net/

    look there. Nehe has some great tutorials about text in opengl.

  3. #3
    Senior Member Frequent Contributor
    Join Date
    Feb 2000
    Location
    France
    Posts
    880

    Re: 2D text in 3D

    What you are looking for is called billboarding. You can have cylindrical billboarding (the object turns around an axis) which is useful for bitmap-trees. You can also have spherical billboarding (the object turns around a point) which would be better for what you wanna do.

    Personnally, I implemented cylindrical billboarding thanks to one of the SGI Siggraph examples. I am stuck with the spherical one (and I know many other people are) but I'll have another try when I have time....

    Eric

    P.S. : if someone can tell me how to do this spherical billboarding I'd be happy !

  4. #4
    Senior Member Regular Contributor
    Join Date
    Feb 2000
    Posts
    122

    Re: 2D text in 3D

    Errr.... please could you explain more exactly, what the spherical and cylindrical billboarding is? I think I do something like spherical billboarding to make sure that a square with a particle-texture always faces the viewer, but I'm not sure whith the name of it.

  5. #5
    Junior Member Newbie
    Join Date
    Feb 2000
    Location
    Oklahoma
    Posts
    5

    Re: 2D text in 3D

    Gorg and Eric,
    A belated thanks for the tips, I am working away at the NeHe tutorials.

    wayne

Similar Threads

  1. Text rendering class does not draw text
    By th0masr0ss in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 01-23-2015, 09:10 PM
  2. 2D text
    By Flawe in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 09-19-2006, 07:12 AM
  3. Text for a text field
    By GrinderFX in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 12-30-2003, 11:44 AM
  4. Replies: 0
    Last Post: 11-15-2002, 02:58 AM
  5. GUI Text
    By imported_miguel in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 11-29-2000, 07:11 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