another set of new features for the SDK, I already briefly mentioned one of them, you can now batch geometry and create a TextureAtlas at the same time:
The resulting single geometry is very efficient to render, so you can combine models in the SDK SceneComposer and create one geometry with one texture atlas for all models.
Note that the TextureAtlas tool (which is part of the engine and usable from code as well btw) has some limitations which are:
- Repeating textures will not work properly due to how texture atlases work generally
- The diffuse and other maps (normal etc.) have to be the same size for each model or there will be mapping issues
But theres even more.. The TextureAtlas is a packed texture and these cannot really be handled via j3m files and paths and are generally impractical as they easily cause multiple instances of the same texture. This is why I now added texture unpacking to PNG files for materials as well When you create a j3m file for your model, you will be asked for paths to export your textures to and these will be used in the new material.
Of course this also allows you to unpack other packed textures, like those from procedural blender textures which are supported by @Kaelthas awesome importer.
Oh and btw Undo now also works for these batching operations