# Action & Z-buffer

**URL:** <https://forum.logik.tv/t/action-z-buffer/11313>\
**Category:** Flame Questions\
**Tags:** action\
**Created:** [August 28, 2024, 12:17pm UTC](https://forum.logik.tv/t/action-z-buffer/11313 "2024-08-28T12:17:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kyleobley](https://avatars.discourse-cdn.com/v4/letter/k/df788c/32.png) [@kyleobley](https://forum.logik.tv/u/kyleobley)\
**Post date:** [August 28, 2024, 12:17pm UTC](https://forum.logik.tv/t/action-z-buffer/11313/1 "2024-08-28T12:17:18Z")

</div>

It’s been a long time since I’ve used the z-buffer in action, I usually just arrange objects in the priority editor…however for this particular situation I really need to have action deal with what is in front of what as it’s a large DMP.

I’m using a bunch of tree sprits from 3D that I’ve un-premultiplied before adding them to an action scene. My issue is that it doesn’t seem to be dealing well with the edges…it’s as if the surface isn’t able to manage semi-transparent mattes.

Am I missing something or has this always been the case and I just never noticed since I almost always turn the z-buffer off?

 ![Screenshot from 2024-08-28 09-25-38](https://us1.discourse-cdn.com/flex020/uploads/thedepartmentofexternalservices/original/2X/c/c0ab0be882f761668d72ed1f6c5a93e4606a649c.png)

---

<div class="post-metadata">

**Author:** ![Sinan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/sinan/32/155_2.png) [@Sinan](https://forum.logik.tv/u/Sinan)\
**Post date:** [August 28, 2024, 12:41pm UTC](https://forum.logik.tv/t/action-z-buffer/11313/2 "2024-08-28T12:41:32Z")

</div>

If your surfaces are distributed in z-space, you need to Z-sort in the priority editor for Action to adjust their drawing order.

 ![z-sort](https://us1.discourse-cdn.com/flex020/uploads/thedepartmentofexternalservices/original/2X/a/aa2fa3be08c99cecbc93ba6126fbfdc2fc53e75a.jpeg)

---

<div class="post-metadata">

**Author:** ![kyleobley](https://avatars.discourse-cdn.com/v4/letter/k/df788c/32.png) [@kyleobley](https://forum.logik.tv/u/kyleobley)\
**Post date:** [August 28, 2024, 1:23pm UTC](https://forum.logik.tv/t/action-z-buffer/11313/3 "2024-08-28T13:23:16Z")

</div>

Well don’t I feel silly. I assumed it did it automatically. Looks like it’s based on the camera as well so it has to be done per camera (my scene is taking into account a bunch of different angles).

Thanks @Sinan
