threejs-slice-geometry icon indicating copy to clipboard operation
threejs-slice-geometry copied to clipboard

can you add support for vertexColors?

Open wjessup opened this issue 5 years ago • 6 comments

This is required when there's a MeshStandardMaterial and the geometry has a colors array.

wjessup avatar Jul 24 '19 22:07 wjessup

You can test with these models to see that they don't work as-is: https://supermedium.com/craft/fierce-talk

wjessup avatar Jul 24 '19 22:07 wjessup

@tdhooper I took a shot at it here: https://gist.github.com/wjessup/5102b5c4b955f2bb3bd35495d1ca350d

The order is messed up but some of the colors are working!

If you have any time to help, that would be awesome :)

wjessup avatar Jul 24 '19 22:07 wjessup

model is sliced up into many pieces, and some of them put back together:

image

wjessup avatar Jul 24 '19 22:07 wjessup

Hey, thanks for having a go at this, could you create a pull request so I can see what you changed?

And do you have a simpler model, so it's easier to see any errors?

tdhooper avatar Jul 28 '19 00:07 tdhooper

done! https://github.com/tdhooper/threejs-slice-geometry/pull/12

wjessup avatar Jul 28 '19 17:07 wjessup

As for the model — try anything from https://supermedium.com/supercraft/ (scroll down and you can browse models to try out)

wjessup avatar Jul 28 '19 17:07 wjessup