# Transparency model rendering depth problem

**URL:** <https://forum.babylonjs.com/t/transparency-model-rendering-depth-problem/4866>\
**Category:** Questions\
**Created:** [August 1, 2019, 2:52am UTC](https://forum.babylonjs.com/t/transparency-model-rendering-depth-problem/4866 "2019-08-01T02:52:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ranwei-001](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/ranwei-001/32/1656_2.png) [@ranwei-001](https://forum.babylonjs.com/u/ranwei-001)\
**Post date:** [August 1, 2019, 2:52am UTC](https://forum.babylonjs.com/t/transparency-model-rendering-depth-problem/4866/1 "2019-08-01T02:52:32Z")

</div>

[https://www.babylonjs-playground.com/#4AJ16M#98](https://www.babylonjs-playground.com/#4AJ16M#98)  
this is my PG, I have a problem with rendering depth,

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/b/bec159af66f761410b1e2338a3e8590c1a35fe87.png)  
 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/3/3fbd7075a9c74fdfe55df350e85f0e7a251cbcf4.png)  
I useful to the engine (setDepthBuffer), and mesh. Material. NeedDepthPrePass = true, but they seem doesn’t work, I suspect the camera rendering order problems, but SPS seem to favor example, so that someone can help me have a look

---

<div class="post-metadata">

**Author:** ![ranwei-001](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/ranwei-001/32/1656_2.png) [@ranwei-001](https://forum.babylonjs.com/u/ranwei-001)\
**Post date:** [August 1, 2019, 4:03am UTC](https://forum.babylonjs.com/t/transparency-model-rendering-depth-problem/4866/2 "2019-08-01T04:03:32Z")

</div>

I used the DefaultRenderingPipeline in the scene, which provided 8x anti-aliasing, but why did it still have no effect in the scene  
[https://www.babylonjs-playground.com/#4AJ16M#99](https://www.babylonjs-playground.com/#4AJ16M#99)  
 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/5/519c5747aaa8ec29ce88d7b32b1c16a035e2dcf7.png)

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [August 1, 2019, 3:18pm UTC](https://forum.babylonjs.com/t/transparency-model-rendering-depth-problem/4866/3 "2019-08-01T15:18:03Z")

</div>

You can increase the resolution with `scene.getEngine().setHardwareScalingLevel(0.5)`:  
[https://www.babylonjs-playground.com/#4AJ16M#108](https://www.babylonjs-playground.com/#4AJ16M#108)

---

<div class="post-metadata">

**Author:** ![ranwei-001](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/ranwei-001/32/1656_2.png) [@ranwei-001](https://forum.babylonjs.com/u/ranwei-001)\
**Post date:** [August 1, 2019, 6:00pm UTC](https://forum.babylonjs.com/t/transparency-model-rendering-depth-problem/4866/4 "2019-08-01T18:00:03Z")

</div>

- I’ve set it up, but it doesn’t work, right

---

<div class="post-metadata">

**Author:** ![ranwei-001](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/ranwei-001/32/1656_2.png) [@ranwei-001](https://forum.babylonjs.com/u/ranwei-001)\
**Post date:** [August 1, 2019, 6:05pm UTC](https://forum.babylonjs.com/t/transparency-model-rendering-depth-problem/4866/5 "2019-08-01T18:05:07Z")

</div>

[http://hightopo.com/demo/Wireframe/](http://www.hightopo.com/demo/Wireframe/)

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/6/6968cc4ed35dcbeb3a896769dd9d4a63a4dab47c.jpeg)  
Will you help me??  
I have created a new topic before, how to achieve the effect of shader in the model, and I have been looking for more people’s ideas and help to complete the effect together.  
[https://www.babylonjs-playground.com/#4AJ16M#107](https://www.babylonjs-playground.com/#4AJ16M#107)  
[https://www.babylonjs-playground.com/#4AJ16M#105](https://www.babylonjs-playground.com/#4AJ16M#105)  
[https://www.babylonjs-playground.com/#4AJ16M#75](https://www.babylonjs-playground.com/#4AJ16M#75)  
With their help, I made three different effects, but it was far from what I wanted, so I want your help!I will be very grateful!:狞笑:
