# \#depth-sorting

**URL:** https://forum.babylonjs.com/tag/depth-sorting/329.md

[Latest](https://forum.babylonjs.com/latest.md) · [Categories](https://forum.babylonjs.com/categories.md) · [Tags](https://forum.babylonjs.com/tags.md)

---

## [\`material.needDepthPass = true\` hides the \`edgesRenderer\` edges behind it](https://forum.babylonjs.com/t/material-needdepthpass-true-hides-the-edgesrenderer-edges-behind-it/57681)

<div class="topic-metadata">

**Author:** [@Heaust-ops](https://forum.babylonjs.com/u/Heaust-ops)\
**Replies:** 9\
**Last updated:** [April 7, 2025, 10:26am UTC](https://forum.babylonjs.com/t/material-needdepthpass-true-hides-the-edgesrenderer-edges-behind-it/57681 "2025-04-07T10:26:05Z")

</div>

PG: If I enable material.needDepthPass = true on the sphere’s material. It hides the edges made by the edges renderer behind it. Maybe bug? idk How do I get it to show tho

---

## [Particles Sorting issue](https://forum.babylonjs.com/t/particles-sorting-issue/55185)

<div class="topic-metadata">

**Author:** [@justbake](https://forum.babylonjs.com/u/justbake)\
**Replies:** 4\
**Last updated:** [January 9, 2025, 10:50pm UTC](https://forum.babylonjs.com/t/particles-sorting-issue/55185 "2025-01-09T22:50:11Z")

</div>

Hello, I am having an issue with particles always rendering behind a plane. The plane is being used as a background and it’s position is at like z -3000. I am spawning the particles from an emitter at z around -5ish and …

---

## [Transparent thin instances blocking others](https://forum.babylonjs.com/t/transparent-thin-instances-blocking-others/55682)

<div class="topic-metadata">

**Author:** [@Athenodoros](https://forum.babylonjs.com/u/Athenodoros)\
**Replies:** 4\
**Last updated:** [January 5, 2025, 5:38pm UTC](https://forum.babylonjs.com/t/transparent-thin-instances-blocking-others/55682 "2025-01-05T17:38:46Z")

</div>

Hi there! I’m sure it gets boring to be told by every newcomer that Babylon is great, but I definitely wanted to add my voice to the chorus of thanks :smiley: I’m trying to render lots of boxes in a grid, using thin in…

---

## [Glow effect does not respect the depth order](https://forum.babylonjs.com/t/glow-effect-does-not-respect-the-depth-order/50767)

<div class="topic-metadata">

**Author:** [@muzhikman](https://forum.babylonjs.com/u/muzhikman)\
**Replies:** 4\
**Last updated:** [July 17, 2024, 5:51pm UTC](https://forum.babylonjs.com/t/glow-effect-does-not-respect-the-depth-order/50767 "2024-07-17T17:51:04Z")

</div>

Rotate camera: https://playground.babylonjs.com/#QCJQR4#75 Looks like meshes are not sorted by depth before rendering to glow effect. I tried to sort meshes manually in scene hierarchy, this does not help. However this…

---

## [Write particle system to depth buffer](https://forum.babylonjs.com/t/write-particle-system-to-depth-buffer/47427)

<div class="topic-metadata">

**Author:** [@CrashMaster](https://forum.babylonjs.com/u/CrashMaster)\
**Replies:** 6\
**Last updated:** [January 24, 2024, 1:29pm UTC](https://forum.babylonjs.com/t/write-particle-system-to-depth-buffer/47427 "2024-01-24T13:29:08Z")

</div>

Hello there! I have read here that particles can’t have depth in babylon, but then it is a bit old and particle systems have a forceDepthWrite property so I want to ask: is there a way to write particles to the depth bu…

---

## [Reverse Depth Buffer question](https://forum.babylonjs.com/t/reverse-depth-buffer-question/45318)

<div class="topic-metadata">

**Author:** [@CrashMaster](https://forum.babylonjs.com/u/CrashMaster)\
**Replies:** 9\
**Last updated:** [October 31, 2023, 6:39pm UTC](https://forum.babylonjs.com/t/reverse-depth-buffer-question/45318 "2023-10-31T18:39:59Z")

</div>

Hello everyone! I have been looking at the discussion around the reverse depth buffer (Reverse Depth Buffer (z-buffer)) and was very excited to see it is actually implemented in the engine! I did not find documentation…

---

## [Log Depth Buffer Makes overlapping meshes' edge disappear](https://forum.babylonjs.com/t/log-depth-buffer-makes-overlapping-meshes-edge-disappear/46152)

<div class="topic-metadata">

**Author:** [@Corbe30](https://forum.babylonjs.com/u/Corbe30)\
**Replies:** 3\
**Last updated:** [December 5, 2023, 11:26am UTC](https://forum.babylonjs.com/t/log-depth-buffer-makes-overlapping-meshes-edge-disappear/46152 "2023-12-05T11:26:48Z")

</div>

Hi! I observed a bug in which the overlapping area of meshes do not have edges on them when using logarithmic depth buffer. This does not happen in the default depth buffer. I have produced the issue here (set line 42 to…

---

## [Rendering thin instances with node material: depth order issue](https://forum.babylonjs.com/t/rendering-thin-instances-with-node-material-depth-order-issue/45954)

<div class="topic-metadata">

**Author:** [@pietrko](https://forum.babylonjs.com/u/pietrko)\
**Replies:** 2\
**Last updated:** [November 27, 2023, 12:19pm UTC](https://forum.babylonjs.com/t/rendering-thin-instances-with-node-material-depth-order-issue/45954 "2023-11-27T12:19:03Z")

</div>

Hey I am using thin instances for the trees with custom nodeMaterial (the material aand I;m getting very weird result: The depth is inverted. It looks instances that are futher are rendered after the ones closer the ca…

---

## [How not to render parts of mesh that overlaps another mesh](https://forum.babylonjs.com/t/how-not-to-render-parts-of-mesh-that-overlaps-another-mesh/45721)

<div class="topic-metadata">

**Author:** [@vlayd16](https://forum.babylonjs.com/u/vlayd16)\
**Replies:** 4\
**Last updated:** [November 16, 2023, 2:51pm UTC](https://forum.babylonjs.com/t/how-not-to-render-parts-of-mesh-that-overlaps-another-mesh/45721 "2023-11-16T14:51:56Z")

</div>

Good evening, I currently have a jacket and T-shirt behind it. I’m trying to understand how I can not display parts of the shirt that overlap the jacket. I tried to play with stencil buffer but didn’t get results here…

---

## [Plane, depth and rendering order](https://forum.babylonjs.com/t/plane-depth-and-rendering-order/40176)

<div class="topic-metadata">

**Author:** [@PichouPichou](https://forum.babylonjs.com/u/PichouPichou)\
**Replies:** 4\
**Last updated:** [April 27, 2023, 6:56am UTC](https://forum.babylonjs.com/t/plane-depth-and-rendering-order/40176 "2023-04-27T06:56:33Z")

</div>

Hello everyone, hope you are all doing great. :hugs: Congrats on the launch of BJS 6.0, crazy to see all the new cool stuff you added! :stars: I have a question concerning rendering orders using planes. I know from thi…
