LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: Supamagier on November 30, 2009, 12:08:51

Title: 2D on 3D
Post by: Supamagier on November 30, 2009, 12:08:51
Hey all,

Is it possible to draw 2D things on top of a 3D scene, without using a AWTGLCanvas? If yes, how? ;)

Thanks,

~Matt
Title: Re: 2D on 3D
Post by: Matthias on November 30, 2009, 12:25:16
Of course,

look here: http://twl.l33tlabs.org (http://twl.l33tlabs.org)

EDIT: you change to projection matrix to orthogonal, render the 2D stuff, and then switch back (as done in TWL's LWJGLRenderer class)

Ciao Matthias
Title: Re: 2D on 3D
Post by: Supamagier on November 30, 2009, 14:02:01
I don't wanna use an other library, but I'll use your advice & maybe the source of that library to help myself out. :)

Thanks,

~Matt