# Problems with transparency?

**URL:** <https://discourse.threejs.org/t/problems-with-transparency/573>\
**Category:** Questions\
**Tags:** transparency, materials, textures\
**Created:** [July 8, 2017, 7:28am UTC](https://discourse.threejs.org/t/problems-with-transparency/573 "2017-07-08T07:28:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Icerion](https://avatars.discourse-cdn.com/v4/letter/i/cdc98d/32.png) [@Icerion](https://discourse.threejs.org/u/Icerion)\
**Post date:** [July 8, 2017, 7:28am UTC](https://discourse.threejs.org/t/problems-with-transparency/573/1 "2017-07-08T07:28:49Z")

</div>

Hi all! I’m new so please be patient! Can someone please tell me why my 3D tree is doing this when I have a transparent PNG? [https://image.ibb.co/nqBhcv/tree\_problem.png](https://image.ibb.co/nqBhcv/tree_problem.png)

Here’s the code : [https://pastebin.com/E6tb1ymw](https://pastebin.com/E6tb1ymw)

Thank you for your kindness! \<3

Icerion

---

<div class="post-metadata">

**Author:** ![INF1N1T](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/inf1n1t/32/79_2.png) [@INF1N1T](https://discourse.threejs.org/u/INF1N1T)\
**Post date:** [July 9, 2017, 7:04pm UTC](https://discourse.threejs.org/t/problems-with-transparency/573/2 "2017-07-09T19:04:03Z")

</div>

Hello icerion,

Usually for texture transparency you need the following material properties:

```
transparent=true;
alphaTest=.5; //(change to desired threshold)

```

You could set the properties at runtime or directly into the model file.
