New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Keyboard controlled 3d camera #1024
Conversation
Hi - If I would like to test this branch on my Mac, how do I go about it? I think I did pkg add Makie way back, not JuliaPlots. I guess I kind of need to do pkg add JuliaPlots#camera but with a twist since the pr isn’t merged so not in that repo yet... or? |
I do |
I don't think fov zoom + shift lookat are compatible... |
Tried ]add as above, no complaints. (@v1.6) pkg> st julia> ` |
I'm currently doing |
Maybe I'm a bit too early trying to test this? julia> using AbstractPlotting julia> using Makie julia> fig, ax, p = Makie.mesh(rand(Point3f0, 30), Stacktrace: julia> ` |
Makie replaces AbstractPlotting. With this branch added and the latest GLMakie it should work. using GLMakie
fig, ax, p = meshscatter(rand(Point3f0, 100), markersize=0.01)
cam = Makie.keyboard_cam!(ax.scene)
fig |
This should work now too. I had a plot in the camera constructor to show where fig, ax, p = mesh(
rand(Point3f0, 30),
[3i-j for i in 1:10, j in 0:2],
color = :white,
ambient = Vec3f0(1,0,0),
diffuse = Vec3f0(-100,0,100),
camera=Makie.keyboard_cam!
) |
Sweet! `julia> using GLMakie julia> fig, ax, p = mesh( julia> Error in callback: |
@SimonDanisch What do you think of having this replace The switch to fov zoom stops you from entering shapes, but I don't think you can get |
Closing this in favor of #1062 |
My goal is to create a more controllable 3d camera. If I can figure out how to transfer everything maybe this can be a replacement for the current 3d camera.
TODO
maybe make rotations around the up axis loop-likeThis only feels right when fixing an axisRelated:
https://discourse.julialang.org/t/precise-control-of-navigation-in-3d-scene-in-makie
#941
I'm surprised I'm not finding more issues related to this