# GLMakie: recording a movie without displaying intermediate frames?

**URL:** https://discourse.julialang.org/t/glmakie-recording-a-movie-without-displaying-intermediate-frames/54537
**Category:** Visualization
**Created:** [February 3, 2021, 2:30pm UTC](https://discourse.julialang.org/t/glmakie-recording-a-movie-without-displaying-intermediate-frames/54537 "2021-02-03T14:30:46Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![LaurentPlagne](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/laurentplagne/32/10103_2.png) [@LaurentPlagne](https://discourse.julialang.org/u/LaurentPlagne)
#### Post date: [February 3, 2021, 2:30pm UTC](https://discourse.julialang.org/t/glmakie-recording-a-movie-without-displaying-intermediate-frames/54537/1 "2021-02-03T14:30:46Z")

</div>

Hi,

I would like to use GLMakie on a remote machine without exporting a display. Note that I was not able to use WGLMakie because of speed issue neither CairoMakie because these are 3D plots.

Is it possible to record a movie with GLMakie **without** displaying the intermediate frames ?

> **MWE**
>
> ```julia
> using GLMakie,AbstractPlotting
> function MWE()
> scene = Scene()
> nh,nx,ny = 50,200,200
> xs = LinRange(0, 10.0, nx)
> ys = LinRange(0, 15.0, ny)    
> zs = zeros(nx,ny)
>     
> function updatezs!(t)
> for j in eachindex(ys)
> for i in eachindex(xs)
> zs[i,j] = cos(xs[i]+t) * sin(ys[j]+2t)
> end
> end
> end
>     
>     
> zn = Node(zs)
> surface!(scene,xs, ys, lift(z->z,zn),camera = cam3d!)
> GLMakie.record(scene, "output.mp4", 1:nh, framerate=15) do j
> t=j*0.1
> updatezs!(t)
> zn[] = zs 
> end
> end
> MWE()
> 
> ```

Thank you for your help.

---

<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: [February 3, 2021, 7:30pm UTC](https://discourse.julialang.org/t/glmakie-recording-a-movie-without-displaying-intermediate-frames/54537/2 "2021-02-03T19:30:29Z")

</div>

Can you describe your problem a bit better? Did you already get GLMakie running on the remote machine? Does the Machine have a GPU? The problem is more about that, than creating a video without displaying frames. Basically, in OpenGL, even off-screen rendering acts like you’d open a window, but it’s not a problem since you can do that on a remote machine…
