Load 3D Models
Object (.obj) and Material (.mtl) Support
3D models in .obj format can be loaded by yourgame, optionally together with a material template library .mtl.
This is what yourgame does:
- Normals remain unchanged, preserving edges and smooth areas
- Note for
Blender: the optionsShade SmoothandShade Flathave an impact on the exported.objdata
- Note for
- The diffuse color
Kdfrom materials (.mtl) is attached to the.objdata during import and provided asColorinput to the vertex shader- This way,
Vertex Color Shadingcan be performed - See GLSL Shaders on how to use vertex color in Shaders
- This way,
Tools and 3D Assets
These 3D tools can be used to create yourgame compatible data:
- Blender
- Blockbench
- ... potentially many more
Some ready-to-use game assets can be imported directly without modification:
.objbased 3D game assets, made byKenney- ... potentially many more