Help replacing `LScene` by `Axis3`

Consider a 100x100x50 grid in LScene:

This is how it looks in Axis3(viewmode=:free, aspect=:data):

It is somewhat “squeezed” compared to the previous visualization.

Is there a way to reproduce the same perspective of LScene with Axis3?

Perhaps it is just the initial camera angle that is different? If I rotate the Axis3 result with the mouse, the two figures look more similar.

Part of the difference is that Axis3 uses an orthographic projection by default.You can use perspectiveness = 0.5 to get closer to the Axis3 default projection:

julia> f = Figure()

julia> ax = Axis3(f[1,1], perspectiveness=0.5, viewmode=:fit, aspect=:data)
Axis3()

julia> volume!(ax, rand(100,100,50), algorithm=:iso)
Volume{Tuple{Makie.EndPoints{Float32}, Makie.EndPoints{Float32}, Makie.EndPoints{Float32}, Array{Float32, 3}}}
1 Like