Add multiple texture support, improve compatibility
Add initial support for supporting multiple textures embedded in a gltf / glb. I have tested a small number of multiple texture models and they work, but if you have one that does not, please send me a link to the glb file so I can try it out. In the picture these models use on texture for the bodies and another for their held items.
Performance note: it is still better to only use a single texture for performance, whenever the renderer needs to change textures, it lowers the efficiency of the C3 renderer and the GPU. So, generally, if you come across a model with multiple textures, explore the video which describes how to bake down to one texture.
Another performance note: high polygon models with animation and rotation require the CPU (not GPU) to do a lot of matrix math calculations and can hurt performance, so look at using lower polygon models, decimating high polygon models or reducing the animation rate or rotation rate (how often to rotate the model.)
I also removed some more 'modern' JS features from the addon, in an attempt to improve compatibility with older browsers/platforms.
The example included in this devlog shows an example of loading / creating a model at runtime. Type one of the project file names into text box and press load, to create and load a new instance. You can drag and drop the models. Right-click to delete a model. Use the mouse scroll wheel to change the model scale.
With the RPG character models, I still have an issue that I am debugging regarding rotating on two or three axes (different meshes rotate differently.)
Enjoy!
Files
Get Construct 3 3DObject Plugin
Construct 3 3DObject Plugin
Construct 3 3DObject, loaded from 3D model files (gltf embedded format)
Status | Released |
Category | Assets |
Author | kindeyegames |
Tags | 3D, construct, construct-3 |
More posts
- fix (accessors) add support for sparse accessors in gltf8 hours ago
- Fix (node-disable) fix node disable without skinned node20 days ago
- fix (node-disable) regression26 days ago
- Fix (playable Ad)38 days ago
- fix (worker) correct animation blend for worker (translation)55 days ago
- fix (opacity)61 days ago
- add (sample) sample gpu-skin with phong light74 days ago
- fix (gpu-skinning) fix regression for worker mode74 days ago
- fix (light) fix for simple phong orientation75 days ago
- Add simple phong lighting support75 days ago
Leave a comment
Log in with itch.io to leave a comment.