jnsmalm / pixi3d

The 3D renderer for PixiJS. Seamless integration with 2D applications.
https://pixi3d.org
MIT License
759 stars 44 forks source link

Changing alphaMode to 'blend' causes rendering problem since v0.9.6 #39

Closed andrej-ilic closed 3 years ago

andrej-ilic commented 3 years ago

Try changing the version in the example to v0.9.5, where the model is rendered correctly.

Example: https://codesandbox.io/s/pixi3d-097-3lb69

v0.9.5

v0.9.7

jnsmalm commented 3 years ago

Thanks, I'll take a look.

jnsmalm commented 3 years ago

For now you can solve it with:

goalkeeper.meshes[0].material.alphaMode = "blend"
goalkeeper.meshes[0].material.state.depthMask = true
jnsmalm commented 3 years ago

I did some changes in develop branch, please let me know if this fixes your issue. You can clone the repo, then:

npm install
npm run build

You will find output in dist folder.

andrej-ilic commented 3 years ago

That fixed my issue. Thanks.