Skip to content

Instantly share code, notes, and snippets.

@ashwani-rathee
Created March 30, 2023 04:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ashwani-rathee/be209e72c278961c08124be74fcce96d to your computer and use it in GitHub Desktop.
Save ashwani-rathee/be209e72c278961c08124be74fcce96d to your computer and use it in GitHub Desktop.
Makie
using GLMakie
scene = Scene()
cam3d!(scene)
c = cameracontrols(scene)
c.eyeposition[] = (0,5,0)
c.lookat[] = Vec3f(0,0,0)
c.upvector[] = (1, 1, 1)
update_cam!(scene)
mark = GLMakie.Rect3f(Vec3f(0), Vec3f(1));
positions = Observable(vec([GLMakie.Point3f0(x, y, z) for x in 0:1:2, y in 0:1:2, z in 0:1:2]))
meshscatter!(scene, positions, marker=mark, markersize=1f0, color=rand(RGBf, 27), interpolate=false)
scatter!(scene, [Point3f(0), Point3f(1,0,0), Point3f(0,1,0), Point3f(0,0,1)], color = [:black, :red, :green, :blue])
scene
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment