Explanation of how to create a texture mapped box by reading a BMP image file and displaying with OpenGL. Then how to create that same texture mapped the box in Blender to export into FBX format. The model is then imported and displayed multiple different game development environments, such as Unity, MonoGame, Godot, and Unreal Engine.
Texture mapping code examples – https://github.com/levidsmith/KnoxGameDesign/tree/master/texturemap
Links and Notes
- Loading a BMP texture – https://www.opengl-tutorial.org/beginners-tutorials/tutorial-5-a-textured-cube/
- Read pixel data from BMP – https://stackoverflow.com/questions/12518111/how-to-load-a-bmp-on-glut-to-use-it-as-a-texture
- OpenGL Texture – NeHe – https://nehe.gamedev.net/tutorial/texture_mapping/12038/index.html
- OpenGL Texture – LazyFoo – https://lazyfoo.net/tutorials/OpenGL/05_texture_mapping_and_pixel_manipulation/index.php
- glTexImage2D – https://registry.khronos.org/OpenGL-Refpages/gl4/html/glTexImage2D.xhtml
- Learn OpenGL Getting Started Textures – https://learnopengl.com/Getting-started/Textures
- Texture wrapping – https://gamedev.stackexchange.com/questions/62548/what-does-changing-gl-texture-wrap-s-t-do
- MonoGame beginning 3D programming – https://gamefromscratch.com/monogame-tutorial-beginning-3d-programming/
- Godot importing scenes (FBX, glTF) – https://docs.godotengine.org/en/3.4/tutorials/assets_pipeline/importing_scenes.html
- Gimp – https://www.gimp.org/
- OpenGL – https://www.opengl.org/
- Unity – https://unity.com/
- MonoGame – https://monogame.net/
- Godot – https://godotengine.org/
- Unreal Engine – https://www.unrealengine.com/en-US
- Podcast theme music – Ride by Pocketmaster