This is what the documentation says:
For updating eyeposition, lookat and/or upvector update_cam!(scene, eyeposition, lookat, upvector = Vec3f(0,0,1)) is preferred.
The help says:
update_cam!(scene::Scene, eyeposition, lookat, up = Vec3f(0, 0, 1))
Updates the camera's controls to point to the specified location.
Stacktrace:
Closest candidates are:
update_cam!(::Makie.Scene, ::Makie.OldCamera3D, ::Any, ::Any, ::Any)
@ Makie ~/.julia/packages/Makie/VRavR/src/camera/old_camera3d.jl:365
update_cam!(::Makie.Scene, ::Makie.OldCamera3D, ::Any, ::Any)
@ Makie ~/.julia/packages/Makie/VRavR/src/camera/old_camera3d.jl:365
update_cam!(::Makie.Scene, ::Makie.AbstractCamera, ::Any)
@ Makie ~/.julia/packages/Makie/VRavR/src/scenes.jl:542
...
Stacktrace:
[1] reset_view(cam::Makie.Camera3D, scene3D::Makie.LScene)
@ KiteViewers ~/repos/KiteViewers.jl/src/common.jl:183
[2] Viewer3D(show_kite::Bool, autolabel::String)
@ KiteViewers ~/repos/KiteViewers.jl/src/viewer3D2.jl:182
[3] Viewer3D()
@ KiteViewers ~/repos/KiteViewers.jl/src/viewer3D2.jl:125
[4] top-level scope
@ REPL[2]:1
But why is then this code not working any more:
update_cam!(scene3D.scene, [-15.425113, -18.925116, 5.5], [-1.5, -5.0, 5.5])
?
See also: API · Makie!
Code: KiteViewers.jl/src/common.jl at 675814210ea22e7b5fda600533053d8c8faed8b3 · aenarete/KiteViewers.jl · GitHub