LWJGL Forum

Programming => OpenGL => Topic started by: jeussa on November 30, 2016, 20:22:16

Title: [Solved] Rendering Issue - Nothing is being Rendered
Post by: jeussa on November 30, 2016, 20:22:16
Hi there all,

I'm currently making a small font renderer with LWJGL3. It's supposed to be finished, however nothing appears to be rendered. I've tested several things and confirmed that the vertex locations for both the environment and the texture map are correct. (I placed small dots using the (working) 2D texture renderer to see where the font vertices were positioned)

Below, you will find all the code that should be necessary.

Thank you for your time!!


FontRenderer:
http://pastebin.com/R3wma2Pj (http://pastebin.com/R3wma2Pj)

MainClass:
http://pastebin.com/ynP6W7FZ (http://pastebin.com/ynP6W7FZ)


(Ps. the FNTChar objects consist of an integer array)


Edit: almost forgot the shaders!

VertexShader:
http://pastebin.com/Gp3mk5Eg (http://pastebin.com/Gp3mk5Eg)

FragmentShader:
http://pastebin.com/GtggEFi6 (http://pastebin.com/GtggEFi6)
Title: Re: Rendering Issue - Nothing is being Rendered
Post by: jeussa on December 03, 2016, 09:52:26
Hi there again,

I just wanted to note that I managed to fix the issue by using a translation matrix instead of calculating the vertex positions using vectors only.