# Artifact/Error with transparent 3D model

**URL:** https://discourse.threejs.org/t/artifact-error-with-transparent-3d-model/67675
**Category:** Questions
**Tags:** transparency, model, glb-model, 3d-model
**Created:** [July 3, 2024, 10:04pm UTC](https://discourse.threejs.org/t/artifact-error-with-transparent-3d-model/67675 "2024-07-03T22:04:20Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Nicolas.Bopp](https://avatars.discourse-cdn.com/v4/letter/n/ed655f/32.png) [@Nicolas.Bopp](https://discourse.threejs.org/u/Nicolas.Bopp)
#### Post date: [July 3, 2024, 10:04pm UTC](https://discourse.threejs.org/t/artifact-error-with-transparent-3d-model/67675/1 "2024-07-03T22:04:20Z")

</div>

Hello everyone

I’m working with a 3D model, but when I try to make the model transparent, strange errors appear (see images 1 & 2). Many small triangles form within the model and it looks different depending on how you change the camera

 ![Bug_2_true](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/1/1/114894831679b24dd8961070baf389e0d7dccfec.png)  
 ![Bug_1_true](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/c/4/c4d3f2b37b211c0d389169bd5feb93828d00aace.png)

I have already tried to solve this problem with depthWrite and various blending modes, but unfortunately this did not help much. With depthWrite = false, the transparency looked good, but the surface was very flawed as a result (see images 3 & 4)

 ![Bug_2_false](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/2/6/26b50d0b78dbeb3106691952de661653c946f0cd.png)  
 ![Bug_1_false](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/f/e/fee9bce8ea3673f1b51bc4e947ec5d9d37bfdc11.png)

Thank you in advance for your assistance!

---

<div class="post-metadata">

### Author: ![mjurczyk](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mjurczyk/32/10995_2.png) [@mjurczyk](https://discourse.threejs.org/u/mjurczyk)
#### Post date: [July 4, 2024, 11:59am UTC](https://discourse.threejs.org/t/artifact-error-with-transparent-3d-model/67675/2 "2024-07-04T11:59:46Z")

</div>

> [@Nicolas.Bopp](#):
>
> Many small triangles form within the model and it looks different depending on how you change the camera […]

Looks like a corrupted model. But besides that, if the model has multiple overlapping transparent parts, it will unfortunately render poorly - regardless whether there’s depthWrite enabled or not. [This](https://github.com/mrdoob/three.js/pull/28584) may help eventually ([demo](https://gkjohnson.github.io/depth-peeling-demo/)), but it’s not available yet.

---

<div class="post-metadata">

### Author: ![Nicolas.Bopp](https://avatars.discourse-cdn.com/v4/letter/n/ed655f/32.png) [@Nicolas.Bopp](https://discourse.threejs.org/u/Nicolas.Bopp)
#### Post date: [July 8, 2024, 4:55pm UTC](https://discourse.threejs.org/t/artifact-error-with-transparent-3d-model/67675/3 "2024-07-08T16:55:51Z")

</div>

Thank you very much for your advice!  
I am currently testing it with a new model.
