Hello,
as mentioned in the headline, I am facing certain scenarios when morph target managers receive “wrong” unique ids.
On our platfrom (Combeenation) we often times compose scenes from MULTIPLE models, provided as .babylon files.
I’ve noticed that the morph target managers don’t receive a “unique” number from the UniqueIdGenerator
, instead the serialized id is taken.
…so this id is certainly not unique and can collide with other morph target managers.
As a result I receive errors like: “Mesh is incompatible with morph targets. Targets and mesh must all have the same vertices count.” or the morphing is just wrong.
I’ve created a PG example, in which 2 models with morph target managers get loaded. I’ve manually given ids from 1-6 and 1-7 to the morph target managers in the .babylon files.
Altering a morph target from model 2 will trigger an error.
When removing the first model import, you can see that morphing the mesh (changing height of pole) works correctly.
BG Markus