LWJGL
May 23, 2013, 10:49:45
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
LWJGL is now using GitHub
Home
Help
Search
Login
Register
LWJGL
>
Programming
>
Lightweight Java Library Game Development
>
Slick-Util Library Load Fonts in 3d
Pages: [
1
]
« previous
next »
Print
Author
Topic: Slick-Util Library Load Fonts in 3d (Read 796 times)
jonalu
Newbie
Posts: 1
Slick-Util Library Load Fonts in 3d
«
on:
December 26, 2011, 05:49:44 »
Im trying to import a ttf font into a 3D lwjgl game. When i render it, it does not show any text. if i use the example program in 2d, it works. I may be a noob, but I try to learn.
Logged
CodeBunny
Nerdus Imperius
Posts: 561
Re: Slick-Util Library Load Fonts in 3d
«
Reply #1 on:
December 27, 2011, 19:05:09 »
Not sure, but I'm guessing you're running into a depth buffer / frustum culling error.
Slick fonts are designed explicitly to work in a 2D, orthogonal setup. Because of the finicky nature of OpenGL, the same code executed with different matrix settings will result in completely separate results.
Try pushing both the modelview and projection matrix, calling glLoadIdentity in each, and call glOrtho for the projection matrix. Then, render the font and pop both matrices. That may work.
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Programming
-----------------------------
=> Lightweight Java Library Game Development
=> LWJGL Documentation
=> Bug Reports / RFE
=> OpenGL
=> OpenAL
=> General Java Game Development
-----------------------------
Archive
-----------------------------
=> Resolved Bugs/RFE
=> DirectX
=> DevIL
=> FMOD
Loading...