[Solved] Rendering Issue - Nothing is being Rendered

Started by jeussa, November 30, 2016, 20:22:16

Previous topic - Next topic

jeussa

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

MainClass:
http://pastebin.com/ynP6W7FZ


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


Edit: almost forgot the shaders!

VertexShader:
http://pastebin.com/Gp3mk5Eg

FragmentShader:
http://pastebin.com/GtggEFi6

jeussa

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.