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 Smooth
andShade Flat
have an impact on the exported.obj
data
- Note for
- The diffuse color
Kd
from materials (.mtl
) is attached to the.obj
data during import and provided asColor
input to the vertex shader- This way,
Vertex Color Shading
can 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:
.obj
based 3D game assets, made byKenney
- ... potentially many more