MadmandenSH

Hey!

We have been evaluating whether Spine is a good solution for our animation pipeline. Sadly we are having a small issue with the three.js implementation.

Since we don't use the zbuffer we are having issues with artifacts in our test scenario due to the SkeletonMeshMaterial having depthTest set to true. We haven't been able to find anywhere that this option is exposed, and setting it to false manually through the browser console fixes the issue.

I looked into the spine.threejs.SkeletonMeshMaterial constructor, but I don't know exactly how it functions, and it doesn't seem to expose any options regarding the material anyways.

Is there anywhere these variables are exposed outside of editing them directly? I have added an attachment showing the issue just in case it helps.

Thanks in advance!
Bạn không được cấp phép để xem tập tin đính kèm trong bài viết này.
MadmandenSH
  • Bài viết: 4

Mario

Sorry for this taking so long. I've now implemented an optional constructor parameter for SkeletonMesh. It's a function that receives the THREE.ShaderMaterialParameters that are eventually used by the SkeletonMeshMaterial: spine-runtimes/SkeletonMesh.ts at e60a60ccd5cfa4bd38ea95118eae02b365d26141

You can pass a function to the SkeletonMesh constructor to modify those parameters, e.g. depthTest, like this:
spine-runtimes/index.html at e60a60ccd5cfa4bd38ea95118eae02b365d26141

That should do the trick!
Hình đại diện của thành viên
Mario

Mario
  • Bài viết: 2360

MadmandenSH

Hey!

No worries! I hope you had a good holiday and new years.

This is just what I was looking for, thank you so much!
MadmandenSH
  • Bài viết: 4


Quay về Runtimes