Load model from prefab instance
A new ACE has been added, Load model from prefab instance.
This is used for only instance models of the same object type (instance property checked). It allows for other instance models to be loaded from a previously loaded instance based on UID. The previously loaded instance must be of the same object type/name and the prefab instance must have completed loading.
This make it easier and more efficient to load models during runtime and create new instance models with low impact on GPU memory, since the models based on the prefabs will use the prefabs instance's texture memory. Note that since this is the case, if the original prefab model is destroyed, the other instances based on it will be destroyed also. So, instead move the prefab instance offscreen or not visible, etc.
Thanks to pixelmetal for the commission for this feature.
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 (addon) fix corrupted addon16 days ago
- fix (accessors) add support for sparse accessors in gltf17 days ago
- Fix (node-disable) fix node disable without skinned node37 days ago
- fix (node-disable) regression43 days ago
- Fix (playable Ad)55 days ago
- fix (worker) correct animation blend for worker (translation)72 days ago
- fix (opacity)78 days ago
- add (sample) sample gpu-skin with phong light91 days ago
- fix (gpu-skinning) fix regression for worker mode91 days ago
- fix (light) fix for simple phong orientation92 days ago
Comments
Log in with itch.io to leave a comment.
I'm sorry, but could you please give an example of how this is done. I kind of did as it says here, but my object is not replaced with another model
See: https://kindeyegames.itch.io/c3-3dobject-alpha/devlog/459808/example-prefab-proj...
Also -I think you were asking before for an alternate way to purchase due to payment methods? Can you let me know how you were able to do it, there are a few other people also looking for alternative ways to purhcase.
I asked a friend who owns dollars to buy me a plugin
Ah, well I guess that's not an easy way for everyone to do, thanks and I'm glad you found a way.
I looked at the project you gave me. I can't understand. Prefabs allow you to change the model of the same object during the game? If so, how do I make multiple prefabs? So I made 3 prefabs of weapons and recorded their UID in an array. Then during the game I try to change the model of the object through the UID, but nothing happens. More precisely, I load the UID of one prefab, and as a result, the model is loaded from another prefab.
The prefabs only allow you to _load_ a model during a game. Once the model is loaded in an instance, it cannot be changed.
It sounds like you are tying to allow a model to use different weapons and change them during runtime? For that we usually create a 3d model with all weapons attached to the model and then use enable/disable nodes to determine which weapon will be visible when the model is rendered.
If you want to see a model designed like this, see the character models in https://quaternius.com/packs/toonshootergamekit.html Load them into the babylon sandbox and you can see each character has 5+ weapons attached to each single model, also in sandbox you can disable / enable nodes to see what it would look like.
Thank you!
This is insanely useful and improves both performance and memory usage. Thanks for adding!
You are welcome, looking forward to your game using this feature!