# GLMakie: Create 3D animations with GLMakie?

**URL:** <https://discourse.julialang.org/t/glmakie-create-3d-animations-with-glmakie/115850>\
**Category:** General Usage\
**Tags:** glmakie\
**Created:** [June 19, 2024, 10:54am UTC](https://discourse.julialang.org/t/glmakie-create-3d-animations-with-glmakie/115850 "2024-06-19T10:54:17Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://discourse.julialang.org/u/jules)\
**Post date:** [June 19, 2024, 11:26am UTC](https://discourse.julialang.org/t/glmakie-create-3d-animations-with-glmakie/115850/2 "2024-06-19T11:26:38Z")

</div>

Here’s an example how to do a meshscatter barplot animation

```julia
using GLMakie

sz = (20, 20)
t = Observable(0.0)
sizes = lift(t) do t
    [Vec3f(1, 1, 1 + sin(x/3 + t) * cos(y/3 + t)) for x in 1:sz[1] for y in 1:sz[2]]
end
positions = [(x, y) for x in 1:sz[1] for y in 1:sz[2]]
f, ax, ms = meshscatter(positions, markersize = sizes, marker = Rect3f((-0.5, -0.5, 0), (1, 1, 1)); axis = (; type = Axis3))

record(f, "meshscatter.mp4", 0:1/30:5) do _t
    t[] = _t
end

```

---

_[View the full topic](https://discourse.julialang.org/t/glmakie-create-3d-animations-with-glmakie/115850)._
