OpenGL 3D Game Tutorial 10: Loading 3D Models

Channel:
Subscribers:
244,000
Published on ● Video Link: https://www.youtube.com/watch?v=YKFYtekgnP8



Category:
Tutorial
Duration: 16:38
196,507 views
1,995


LWJGL tutorial series on how to create a 3D Java game with OpenGL!

This week we create an OBJ parser to load 3D models made in Blender into our game!

Download the stall model: https://www.dropbox.com/sh/7l598pr7b4zx63j/AAB_PzQl3zU2WS5hhlKgMb1Wa?dl=0

Download Blender for free: http://www.blender.org/download/


Common Problems:

-If you're using your own model then make sure to texture it in Blender first using UV mapping!

-The size of the normals array is "vertices.size() * 3" and NOT "normals.size() * 3". Check 6:38 in the video and make sure you got this right.

- Make sure your texture file has dimensions that are powers of 2 (128x128, 256x256, 512x512 etc.) The file may have got resized when you downloaded it.

-Make sure you used "1 - currentTex.y" in the processVertex() method.

-If you're using your own model and the texture looks distorted in the game but fine in Blender then you may be experiencing the texture seam problem that I talked about in the previous episode. You can fix this by using the improved OBJLoader provided at the end of episode 16.


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- Kai Engel, "Waking Stars":

http://freemusicarchive.org/music/Kai_Engel/Evening_Colors/01_-_Waking_Stars







Tags:
opengl tutorial
lwjgl tutorial
java 3d game tutorial
3d game tutorial
opengl 3+
opengl 3d game
glsl tutorial
world matrix
shaders tutorial
opengl 3D tutorial
3d game
java game
lwjgl
opengl
java
opengl beginners tutorial
game development tutorial
3d game development
glsl
game engine
java game tutorial
java 3d
Tutorial
obj files
blender models
blender
obj parser
.obj
load 3D models
blender to lwjgl
loading 3d models
import blender models
3D model