How to make fly-through animations?

OK, I have another question: When entering the volume, it seems that regions from behind get shown, moving forward. Here is a minimal example:

using GLMakie
vol = rand(1000,50,50);
fig, scene, _ = volume(vol)

controls = cameracontrols(scene)

# position the camera at the long end:
controls.eyeposition[] = Vec3f(1300, 25, 25)
controls.lookat[] = Point3f(1200, 25, 25)
update_cam!(scene.scene)

Next, press w to enter the volume. Once inside notice how elements from behind seem to get mirrored across the direction of view, creating an effect where part of the volume is moving past you from behind.

(I’ve attempted to create a new Camera3D with different clipping_modes and setting near and far, but all just seems to make things worse than the default.)

1 Like