Skip to content

Use MPOs for skinning#717

Merged
Nehon merged 1 commit into
masterfrom
mpo-skinning
Sep 9, 2017
Merged

Use MPOs for skinning#717
Nehon merged 1 commit into
masterfrom
mpo-skinning

Conversation

@shadowislord
Copy link
Copy Markdown
Member

@shadowislord shadowislord commented Sep 8, 2017

Fixes the annoying "Material instances cannot be shared when hardware skinning is used" error

Copy link
Copy Markdown
Contributor

@Nehon Nehon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, this was pretty annoying.
I just have one comment.


// get boneIndexes and weights for mesh
indexReader.setBuffer(mesh.getBuffer(Type.BoneIndex).getData());
IndexBuffer ib = IndexBuffer.wrapIndexBuffer(mesh.getBuffer(Type.BoneIndex).getData());
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Won't that create a new instance of the wrapper on each frame ?

@Nehon Nehon merged commit bf18ef3 into master Sep 9, 2017
@Nehon Nehon deleted the mpo-skinning branch September 9, 2017 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants