Skip to content

Model Animation with Posenet #105

Answered by ThomasGorisse
Kashif-E asked this question in Q&A
Discussion options

You must be logged in to vote

You can modify the model bones matrice like this:

TransformableNode model = new TransformableNode(arFragment.getTransformationSystem());
model.setParent(anchorNode);
RenderableInstance modelInstance = modelNode.setRenderable(this.model);
RenderableManager renderableManager = EngineInstance.getEngine().getRenderableManager();
int entityInstance = renderableManager.getInstance(modelInstance.getEntity());
renderableManager.setBonesAsMatrices(entityInstance, matrices, boneCount, offset)

You can ask your more 3D Engine specific questions on the Filament Repo

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by ThomasGorisse
Comment options

You must be logged in to vote
1 reply
@ThomasGorisse
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #104 on June 23, 2021 16:59.