BambooEngine: Using models - easterbunny273/Project-Cube GitHub Wiki
BambooEngine supports rendering of models, if they can be imported with Assimp. If a scene is given, only the included meshes (and materials) are parsed and rendered. Camera nodes or lights which may also be defined in a model file, will be ignored.
To use the implemented effects like "Normal Mapping", "Parallax Mapping" or "Parallax Occlusion Mapping / Relief Mapping" or tessellation, it is important to know how BambooEngine interprets the textures:
- Each model should have an albedo texture
- Each model should have a normal texture, defining the normals in tangent space.
- The alpha channel of the albedo texture defines the specular mask.
- The alpha channel of the normal texture defines the height map, where 1(white) is the heighest part and 0 (black) is the lowest part.
So each model/mesh should have 2 textures - a albedo/color texture and a normal texture. Other textures are ignored! The specular mask and the bumpmap are written in the alpha channel of the other 2 textures!
Using Blender as the content creation tool, the preferred model file format should be COLLADA (*.dae), which is tested with BambooEngine and works fine for Meshes+Materials.