# Transparent surfaces in Makie.jl

**URL:** https://discourse.julialang.org/t/transparent-surfaces-in-makie-jl/15775
**Category:** Visualization
**Tags:** makie
**Created:** [October 2, 2018, 7:00am UTC](https://discourse.julialang.org/t/transparent-surfaces-in-makie-jl/15775 "2018-10-02T07:00:59Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![sdanisch](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sdanisch/32/1406_2.png) [@sdanisch](https://discourse.julialang.org/u/sdanisch)
#### Post date: [October 3, 2018, 10:01am UTC](https://discourse.julialang.org/t/transparent-surfaces-in-makie-jl/15775/2 "2018-10-03T10:01:18Z")

</div>

This is currently an oddity from a trade off for transparency rendering…  
You need to put transparency at least to 0.4 to actually take effect ☹

 ![image](https://global.discourse-cdn.com/julialang/original/3X/f/6/f68890710aaf41fc737a243473528afd167dd21b.jpeg)

```plaintext
using Makie
using Colors
using GeometryTypes
n = 33
u = range(0,stop=2*π,length=n);
v = range(0,stop=π,length=n);
x = zeros(n,n); y = zeros(n,n); z = zeros(n,n)
for i in 1:n
    for j in 1:n
        x[i,j] = cos.(u[i]) * sin(v[j]);
        y[i,j] = sin.(u[i]) * sin(v[j]);
        z[i,j] = cos(v[j]);
    end
end

scene = surface(
  x,y,z,
  show_axis = false,
  color = fill(RGBA(1.,1.,1.,0.4), n, n),
  limits = HyperRectangle(Vec3f0(-1.01), Vec3f0(1.01))
)
wireframe!(
  scene, x, y, z,
  show_axis = false,
  linewidth = 1.2, color = RGBA(0.0,0.0,0.2,0.4))
scatter!(
  scene,
  Point3f0[
    (1.,0.,0.), 1/sqrt(2) .* (1.,1.,0), 1/sqrt(3) .* (1.,1.,1.), (-1.,0.,0.), (0.,0.,1.)
  ],
  color = :blue, markersize = 0.05, show_axis = false
)

```

---

_[View the full topic](https://discourse.julialang.org/t/transparent-surfaces-in-makie-jl/15775)._
