# Has Plots.mesh3d() opacity with respect to depth when displaying multiple shapes?

**URL:** https://discourse.julialang.org/t/has-plots-mesh3d-opacity-with-respect-to-depth-when-displaying-multiple-shapes/122941
**Category:** Visualization
**Tags:** plots
**Created:** [November 22, 2024, 9:17am UTC](https://discourse.julialang.org/t/has-plots-mesh3d-opacity-with-respect-to-depth-when-displaying-multiple-shapes/122941 "2024-11-22T09:17:15Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Valery](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/valery/32/21803_2.png) [@Valery](https://discourse.julialang.org/u/Valery)
#### Post date: [November 22, 2024, 9:17am UTC](https://discourse.julialang.org/t/has-plots-mesh3d-opacity-with-respect-to-depth-when-displaying-multiple-shapes/122941/1 "2024-11-22T09:17:15Z")

</div>

```julia
using Plots
Plots.mesh3d([1,2,2,1],[1,1,1,1],[1,1,2,2],
    connections=[(1,2,3,4)],
    linecolor=:black)

```

 ![mesh3d-1](https://global.discourse-cdn.com/julialang/original/3X/2/1/21e542efa628ea4abfb04a917080bf64191f1e22.png)

```julia
Plots.mesh3d!([1,2,2,1],[1.1,1.1,1.1,1.1],[1,1,2,2],
    connections=[(1,2,3,4)],
    linecolor=:black)

```

 ![mesh3d-2](https://global.discourse-cdn.com/julialang/original/3X/7/2/727e112c8e61fde92e737b48f449b7b4d1ffad2b.png)

Despite my research, I cannot find a way to have the orange square behind the blue one as we would see them in perspective. Plotting every shape in a single `Plots.meshd3d()` line of code does not solve the problem (that means, without the additional `Plots.mesh3d!()`)

Changing the order in which I plot the shapes is not a solution, as I have to plot complicated details with a lot of shapes.
