I tried to figure out the camera stuff in quil, but I couldn't find much documentation about it, any pointers? I'm interested in trying to place a camera to create an isometric effect.
I found quil-isometric, but I'm having some issues with it (which may just be my fault)
Oh, looks like you are just supposed to call (q/ortho)
, just with more options 🙂 Silly me
I'm clearly still confused though 🙂 I'm trying to animate the camera, but I'm not having any luck unless I re-draw the box constantly.
And that results in lots of leftover black lines.
Oh, I understand, q/background wipes the scene.
I've tried to load an obj file, but it's in 2D, is this a limitation of quil?
https://groups.csail.mit.edu/graphics/classes/6.837/F03/models/ I've tried a few now, including teapot.obj from here, code is this:
(def teapot (atom nil))
(defn setup-teapot
[]
(reset! teapot (q/load-shape "/home/dominic/Downloads/untitled.obj")))
(defn draw-teapot
[]
(q/background 100)
(q/lights)
(q/with-translation [600 600]
(q/with-rotation [45 45 45 45]
(q/box 200)
(q/shape @teapot 0 0 500 500))))
(q/defsketch teapot-sketch
:renderer :opengl ;; same with :p3d
:setup setup-teapot
:draw draw-teapot
:size [1200 1200])
But the teapot is turning out as a plane.
I loaded it into blender, and it looked fine. I even tried re-exporting it from blender, but no luck there either.Oh, I've also tried upgrading to master, in case this was a downstream bug or something.
https://github.com/processing/processing-docs/tree/27a6b96d4df3cf0dc086ba341de0597b4cea647d/content/handbook_2e/examples/17%20Shapes/Ex_06/data having issues with this teapot too actually
https://github.com/processing/processing/issues/3156 I see things like this, but they seem to be fixed
https://github.com/taseenb/OBJLoader/ for now, figured out I can use this as a workaround, which only works for some things.