OpenGL 3D Game Tutorial 27: Skybox HD
LWJGL tutorial series on how to create a 3D Java game with OpenGL! Programming a skybox this week using cube map textures! Download PNGDecoder: http://twl.l33tlabs.org/dist/PNGDecoder.jar or https://drive.google.com/file/d/0B4_SgVGfVtFWMVlXSnkyeXIwdWs/view?usp=sharing Downloadable Source Code: https://www.dropbox.com/sh/trn3cugng9ahec1/AACIZHJBAbyegjR9QxtZw10Fa?dl=0 Skybox Textures: https://www.dropbox.com/sh/phslacd8v9i17wb/AABui_-C-yhKvZ1H2wb3NykIa?dl=0 OpenGL Textures Info: https://open.gl/textures Loads of skyboxes: http://www.custommapmakers.org/skyboxes.php Common Problems: -Due to hardware limitations on some computers you may see some visible seams at the edges of the skybox. If this is the case then add these two lines to the end of the loadCubeMap() method, just before returning the texID: GL11.glTexParameteri(GL13.GL_TEXTURE_CUBE_MAP, GL11.GL_TEXTURE_WRAP_S, GL12.GL_CLAMP_TO_EDGE); GL11.glTexParameteri(GL13.GL_TEXTURE_CUBE_MAP, GL11.GL_TEXTURE_WRAP_T, GL12.GL_CLAMP_TO_EDGE); 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