Hello Guest

[Solved] Rendering Issue - Nothing is being Rendered

  • 1 Replies
  • 1529 Views
[Solved] Rendering Issue - Nothing is being Rendered
« 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

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
« Last Edit: December 03, 2016, 09:52:46 by jeussa »

Re: Rendering Issue - Nothing is being Rendered
« Reply #1 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.