# Makie - drawing lines through transparent surface

**URL:** <https://discourse.julialang.org/t/makie-drawing-lines-through-transparent-surface/28148>\
**Category:** Visualization\
**Tags:** question\
**Created:** [August 29, 2019, 2:08am UTC](https://discourse.julialang.org/t/makie-drawing-lines-through-transparent-surface/28148 "2019-08-29T02:08:31Z")\
**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:** [August 29, 2019, 8:23am UTC](https://discourse.julialang.org/t/makie-drawing-lines-through-transparent-surface/28148/2 "2019-08-29T08:23:55Z")

</div>

This is an annoying problem…As if transparency isn’t hard enough already, I have two render targets for drawing primitives that need anti-aliasing (aa) and one that doesn’t…Lines don’t need aa, a.k.a fxaa (which is the algorithm i implemented), but a surface has fxaa enabled.  
You can try this, to get better results:

```julia
using Makie
scene = Scene(camera = cam3d!)

y = collect(-10:0.1:10)
x = y
z = zeros(length(x), length(y))

height = 5.0
x0 = 0.0
y0 = 0.0
z0 = 0.0
origin = Point3f0(x0, y0, height)
crosspt = Point3f0(x0, y0, z0)
finalpt = Point3f0(x0-2 ,y0+2, -height)
line1 = [origin, crosspt]
line2 = [crosspt, finalpt]
linesegments!(scene, line1, linewidth=5, color = :red, fxaa = true)
linesegments!(scene, line2, linewidth=5, color = :red, fxaa = true)
surface!(scene, x, y, z, shading = false, colormap = [(:blue, 0.5), (:green, 0.5)], fxaa = true, transparency = true)

```

---

_[View the full topic](https://discourse.julialang.org/t/makie-drawing-lines-through-transparent-surface/28148)._
