# Makie isosurface transparency?

**URL:** <https://discourse.julialang.org/t/makie-isosurface-transparency/65214>\
**Category:** General Usage\
**Tags:** makie\
**Created:** [July 23, 2021, 11:36pm UTC](https://discourse.julialang.org/t/makie-isosurface-transparency/65214 "2021-07-23T23:36:08Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![AshtonSBradley](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ashtonsbradley/32/11140_2.png) [@AshtonSBradley](https://discourse.julialang.org/u/AshtonSBradley)\
**Post date:** [August 20, 2021, 2:38am UTC](https://discourse.julialang.org/t/makie-isosurface-transparency/65214/12 "2021-08-20T02:38:30Z")

</div>

> [@lazarusA](#):
>
> did you tried like this:
> 
> ```julia
> using GLMakie, ColorSchemes
> cbarPal= :plasma
> cmap = get(colorschemes[cbarPal], LinRange(0,1,100))
> cmap2 = [(cmap[i],0.65) for i in 1:100]
> 
> X = -40:5:40
> ellipse1 = [X^2/2 + Y^2 + 2Z^2 for X in X, Y in X, Z in X];
> ellipse2 = [X^2/2 + (Y-20)^2 + 2Z^2 for X in X, Y in X, Z in X];
> volume(ellipse2, algorithm = :iso,isovalue =350,isorange = 50, colormap=cmap2)
> volume!(ellipse1, algorithm = :iso, isovalue =700,isorange = 50, colormap=cmap2)
> current_figure()
> 
> ```

Ok, getting closer. Still puzzling: I make a torus geometry. Why isn’t the full torus visible even though there is an alpha? It seems that the alpha is applied to another surface (dual ellipsoid case above), but not to different parts of the same surface. We should be able to see the core of the torus, and the back surface:

```julia
using GLMakie
using ColorSchemes
cmap3 = get(colorschemes[:plasma], LinRange(0,1,100))
	cmap4 = [(cmap3[i],0.65) for i in 1:100]
	ξ = -40:1:40
	c = 20
	a = 15
	torus = [((hypot(X,Y)-c)^2+Z^2-a^2) for X in ξ, Y in ξ, Z in ξ]
	volume(torus, algorithm = :iso,isovalue =100,isorange =50, colormap=cmap4)
	current_figure()

```

 ![Screen Shot 2021-08-20 at 2.35.43 PM](https://global.discourse-cdn.com/julialang/original/3X/c/a/cacab84b5583f75b98b8ad1291816948d6e61298.jpeg)

I would expect something more like this:

![Screen Shot 2021-08-20 at 2.02.55 PM](https://global.discourse-cdn.com/julialang/original/3X/a/a/aa65dca84d83a2202c8a0a9f2dc6ef0bbdb24e56.png)

---

_[View the full topic](https://discourse.julialang.org/t/makie-isosurface-transparency/65214)._
