# \#z-index

**URL:** https://discourse.threejs.org/tag/z-index/1046.md

[Latest](https://discourse.threejs.org/latest.md) · [Categories](https://discourse.threejs.org/categories.md) · [Tags](https://discourse.threejs.org/tags.md)

---

## [Need help making transparency show correctly in point cloud](https://discourse.threejs.org/t/need-help-making-transparency-show-correctly-in-point-cloud/51971)

<div class="topic-metadata">

**Author:** [@Yitz](https://discourse.threejs.org/u/Yitz)\
**Replies:** 9\
**Last updated:** [June 30, 2023, 6:20am UTC](https://discourse.threejs.org/t/need-help-making-transparency-show-correctly-in-point-cloud/51971 "2023-06-30T06:20:46Z")

</div>

I have the following code in three.js which takes color data from a loaded point cloud (a collection of colored vertices in a single mesh), and makes vertices transparent in accordance with how bright the color is: cons…

---

## [Layer-assigned elements sometimes slip over and under where my z-index declarations should lead](https://discourse.threejs.org/t/layer-assigned-elements-sometimes-slip-over-and-under-where-my-z-index-declarations-should-lead/31271)

<div class="topic-metadata">

**Author:** [@Mapper](https://discourse.threejs.org/u/Mapper)\
**Replies:** 0\
**Last updated:** [October 29, 2021, 5:50am UTC](https://discourse.threejs.org/t/layer-assigned-elements-sometimes-slip-over-and-under-where-my-z-index-declarations-should-lead/31271 "2021-10-29T05:50:57Z")

</div>

I have prepared a browser-window environment on which I used CSS to assign particular contents to desired layers using z-index declarations. In the examples in the pictures, the container is set to z-index 0 the label …

---

## [Performance drop only when the animation is behind the page. (react-three-fiber)](https://discourse.threejs.org/t/performance-drop-only-when-the-animation-is-behind-the-page-react-three-fiber/30101)

<div class="topic-metadata">

**Author:** [@BinaryWorlds](https://discourse.threejs.org/u/BinaryWorlds)\
**Replies:** 2\
**Last updated:** [September 20, 2021, 6:35pm UTC](https://discourse.threejs.org/t/performance-drop-only-when-the-animation-is-behind-the-page-react-three-fiber/30101 "2021-09-20T18:35:02Z")

</div>

Hi everyone! I am having problems with the performance of the animation when it is placed as the background of the page - and not always. It is very visible on weaker smartphones. I am using: instancedMesh instancedB…

---

## [Z-index of same meshes with different material](https://discourse.threejs.org/t/z-index-of-same-meshes-with-different-material/27326)

<div class="topic-metadata">

**Author:** [@RAUMIK\_RANA](https://discourse.threejs.org/u/RAUMIK_RANA)\
**Replies:** 2\
**Last updated:** [June 18, 2021, 10:28am UTC](https://discourse.threejs.org/t/z-index-of-same-meshes-with-different-material/27326 "2021-06-18T10:28:18Z")

</div>

I have to put same mesh with 2 material. I used below material for 2nd mesh. my main motto is to compare models with other same model with minor changes. new THREE.MeshBasicMaterial({ vertexColors: false,…
