As the title says. It doesn’t crash when i get it to load and render a basic cube(although the cube’s height is halved). I cant find out what is wrong but i did try placing a couple of sysout’s and have narrowed it down the rendering phase. The thing that is strange is that (according to console output) it does manage to render a couple of times before crashing. If anyone knows any ways to further debug/detect the problem please tell me.
SideNote: Could it be caused by shaders?
EDIT: Uploaded Source: https://github.com/stuart6854/Engine_Source
Project starts at “/VoxelGame_BearEngine/src/org/voxelgame/core/Game.java”.
From their you should be able to see the paths the programs takes.
Relevant Source Below(if want to see more please ask).
OBJLoader.java
http://pastebin.com/Siu5Abn5
Mesh.java
http://pastebin.com/0h2quxkh
Render Method that calls mesh.render
http://pastebin.com/DHjgp9JK