LWJGL
July 23, 2014, 17:15:30 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: LWJGL 2.9.1 released!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Render text  (Read 3759 times)
snapsen
Newbie
*
Posts: 2


« on: February 15, 2012, 12:01:04 »

Hi All

I'm a newbie to OpenGl, in the process of creating an applet to illustrate the computation of some miter and bevel angles when cutting wood (for another application). Found a lwjgl gears applet which convinced me to use lwlgl (don't know if this was the correct decision, but i had to start somewhere). Apart from the expected startup problems (like normals pointing in "funny" directions and such) have been moving along pretty well. Now i'm trying to render some text in the 3d space, and i'm failing miserably. Found an example of this on potatoland which renders text on some spheres. Works fine in a console app. I then tried to gen these to work in my applet, but i'm unable to get any text in my applet. Ended up creating an applet with just the sphere (which displays fine), and the text. Can anyone give me a hint on how to achieve this, i'll be grateful.

br
Karsten.
Logged
kappa
Administrator
Nerdus Imperius
*****
Posts: 1166



« Reply #1 on: February 15, 2012, 12:13:51 »

Try Slick-Util, instructions here.
Logged
snapsen
Newbie
*
Posts: 2


« Reply #2 on: March 01, 2012, 22:50:53 »

Doh....

As stated, i'm a new to opengl. Tried using JOGL as it has a TextRenderer class. Turns out that the quality is not as good as expected. Could not get Napier code to work under JOGL either.

Textures needs to be enabled.

      GL11.glEnable(GL11.GL_TEXTURE_2D);   // be sure textures are on


Working fine now
Thanks
Karsten.

Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines
SMFAds for Free Forums
Valid XHTML 1.0! Valid CSS!