MakieOrg / Makie.jl

Interactive data visualizations and plotting in Julia
https://docs.makie.org/stable
MIT License
2.37k stars 302 forks source link

Document camera controls #555

Closed asinghvi17 closed 2 weeks ago

asinghvi17 commented 5 years ago

cam = cameracontrols(scene)

asinghvi17 commented 5 years ago

ping @Smldis

smldis commented 5 years ago

I don't know almost anything about it but let's start: On basics put a new section:

3D Camera

To force a plot to be visualized in 3D use the attribute limits with a nonzero z-axis interval. Example: limits = HyperRectangle{3,Float32}([0,0,0],[1,1,1])

Use the camera given by campixel!(scene) to add a plot that looks like a 2D plot from the user perspective (it generatets a subscene with an orthographic view aligned to pixelspace) For not modifing the camera view while plotting use the attributeraw=true.

Camera controls configuration can be customized by setting the fields of cam = cameracontrols(scene):

The other fields are for camera positioning, the camera needs to be updated after changing these:

Remaining fields:

Example: cam.rotationspeed[]=0.05

ffreyer commented 2 weeks ago

They are documented now