OpenGL 3D Game Tutorial 6: Texturing
LWJGL tutorial series on how to create a 3D Java game with OpenGL!
This week we learn how to texture models using opengl.
Common mistakes:
- If you get the "fatal" error that I get at the end of the video then check that you're storing the texture coordinate VBO in attribute 1 of the VAO and that you indicate that they are 2D coordinates (see 10:51 in the video)
-Make sure that your "out" variables in the vertex shader have the EXACT same pass as the corresponding "in" variables in the fragment shader. You can't call it "pass_textureCoords" in one and "pass_textureCoordinates" in the other.
-Make sure that the names of the "in" variables in the vertex shader are spelled correctly in the bindAttributes() method in the StaticShader class.
LWJGL Wiki: http://lwjgl.org/wiki/index.php?title=Main_Page
Support the series on Patreon: https://www.patreon.com/thinmatrix
Facebook Page: https://www.facebook.com/thinmatrix
Tumblr: http://thinmatrix.tumblr.com/
Instagram: http://instagram.com/thin_matrix
Twitter: https://twitter.com/ThinMatrix
Check out my game on IndieDB: http://www.indiedb.com/games/equilinox
End of video music: http://freemusicarchive.org/music/Kai_Engel/Evening_Colors/01_-_Waking_Stars
Other Videos By ThinMatrix
Other Statistics
The Elder Scrolls Online Statistics For ThinMatrix
Currently, ThinMatrix has 2,158,639 views for The Elder Scrolls Online across 29 videos. The Elder Scrolls Online has approximately 4 hours of watchable video on his channel, or 8.26% of the total watchable video on ThinMatrix's YouTube channel.