createMesh & create joint(bone) and apply

I want realtime create graphnode(bones) bind to createmesh.

is it possible in playcanvas?

The factors I’m considering are…

modeling(createMesh to meshInstances), joints(graphNoe to skinInstances), binding skin weight(no idea… T.T)

help me plz…

Have a look at this code, when dynamic = true this creates a skinned mesh from other meshes, and sets up bones and skin weights / indices. You’d probabaly want to do something similar.

maybe https://github.com/playcanvas/engine/blob/0e3022cef2075f6c8fd7d49ffddd54521a68c0d9/src/resources/parser/glb-parser.js#L555-L599 could be interesting as well - that’s how skinned mesh is created from data loaded from glb file format.

2 Likes