CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: OpenGL and Text

  1. #1
    Join Date
    May 1999
    Location
    United Kingdom
    Posts
    136

    OpenGL and Text

    I'm trying to use text in OpenGL, but somehow it messes up the rendering. I've figured out how to create call lists for the characters that I want to display in OpenGL, and I've got another call list for the actual 3D model that I want to display alongside the text.

    When I draw the 3D model on its own or when I draw the text on its own, everything is fine. But if I draw the 3D model and the text, the model becomes very dark, while the text still displays fine.

    Any ideas? Any help would be much appreciated.
    Oliver.


  2. #2
    Join Date
    Aug 1999
    Posts
    11

    Re: OpenGL and Text

    I' also trying to do something like that. Can you please tell how you got it done or give some sample code?
    Are you using Windows fonts?
    Re: your question, that you've been able to draw it when there's no 3d model, that might have something to do with the scaling.
    Try changing the scale with glScalef(x,y,z);

    -SR



Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured