dominicm 2018-02-10T12:54:27.000028Z

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.

dominicm 2018-02-10T12:55:38.000091Z

I found quil-isometric, but I'm having some issues with it (which may just be my fault)

dominicm 2018-02-10T13:02:20.000103Z

Oh, looks like you are just supposed to call (q/ortho), just with more options 🙂 Silly me

dominicm 2018-02-10T14:05:00.000010Z

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.

dominicm 2018-02-10T14:06:00.000004Z

And that results in lots of leftover black lines.

dominicm 2018-02-10T14:17:07.000009Z

Oh, I understand, q/background wipes the scene.

dominicm 2018-02-10T17:31:46.000088Z

I've tried to load an obj file, but it's in 2D, is this a limitation of quil?

dominicm 2018-02-10T20:06:06.000117Z

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/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.

dominicm 2018-02-10T20:06:53.000040Z

Oh, I've also tried upgrading to master, in case this was a downstream bug or something.

dominicm 2018-02-10T20:48:06.000050Z

https://github.com/processing/processing/issues/3156 I see things like this, but they seem to be fixed

dominicm 2018-02-10T21:31:02.000081Z

https://github.com/taseenb/OBJLoader/ for now, figured out I can use this as a workaround, which only works for some things.