# Issues with DynamicTextures

**URL:** <https://forum.babylonjs.com/t/issues-with-dynamictextures/48907>\
**Category:** Questions\
**Created:** [March 20, 2024, 1:14pm UTC](https://forum.babylonjs.com/t/issues-with-dynamictextures/48907 "2024-03-20T13:14:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ZoeLeee](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/zoeleee/32/20340_2.png) [@ZoeLeee](https://forum.babylonjs.com/u/ZoeLeee)\
**Post date:** [March 20, 2024, 1:14pm UTC](https://forum.babylonjs.com/t/issues-with-dynamictextures/48907/1 "2024-03-20T13:14:35Z")

</div>

![cad](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/b/1/b1f6284892c0e281141b03ea8fc5ddb11d97c2fa.gif)

When my character passes through occluding objects in the line of sight as shown in the GIF, I change the occluding object to transparent. At this point, DynamicTextures seem to render in front of the camera, and I’m unsure of the cause.

---

<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:** [March 20, 2024, 3:23pm UTC](https://forum.babylonjs.com/t/issues-with-dynamictextures/48907/2 "2024-03-20T15:23:28Z")

</div>

Hey! It is a bit complicated to help without a repro but I feel like this is because of transparency.  
In that case Babylon will render the opaque objects first and then the transparent one. That could cause some unwanted artefacts

You can try this and see if it works:  
`mesh.material.needDepthPrePass = true`

More info: [Transparent Rendering | Babylon.js Documentation (babylonjs.com)](https://doc.babylonjs.com/features/featuresDeepDive/materials/advanced/transparent_rendering)
