Image is not Displaying correctly Help

Started by ubershare, May 09, 2015, 19:43:42

Previous topic - Next topic

ubershare

I have bin looking at tutorials online on how to make 3D games on lwjgl and I have ran into a problem my imge is not displaying correctly I have gone trough the toutorial to find out what I did wrong but I can not find it.
what is happening is it is dispalying like screenshot_4, but how it looks like is screenshot_5

here is my code

Main:http://pastebin.com/TcdF3VWB

Window:http://pastebin.com/YKg4ajdR

Loader:http://pastebin.com/t80gaa5A

RawModel:http://pastebin.com/LyUTdyY1

Renderer:http://pastebin.com/XgMf8Crt

Shader:http://pastebin.com/BHLEqkrb

StaticSahder:http://pastebin.com/Ax1RtKGN

TexturedModel:http://pastebin.com/76Ph4B23

ModelTexture:http://pastebin.com/Rp5nk04a

This source code is writen in glsl for the shader

vertexShader:http://pastebin.com/xErbCTyb

fragmentShader:http://pastebin.com/warning.php?p=1

Cornix

Looks to me like your texture coordinates are wrong.
Instead of showing us huge amounts of code just show us the relevant part where you specify your tex coords and vertices.