This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-02-10
Channels
- # beginners (140)
- # boot (18)
- # cider (4)
- # cljs-dev (28)
- # clojure (191)
- # clojure-greece (51)
- # clojure-russia (1)
- # clojure-spec (13)
- # clojure-uk (2)
- # clojurescript (38)
- # community-development (26)
- # core-logic (16)
- # cursive (6)
- # datomic (3)
- # defnpodcast (9)
- # editors (1)
- # emacs (1)
- # fulcro (10)
- # immutant (3)
- # jobs-discuss (2)
- # leiningen (17)
- # lumo (24)
- # off-topic (30)
- # quil (12)
- # re-frame (11)
- # reagent (103)
- # remote-jobs (2)
- # shadow-cljs (157)
- # spacemacs (4)
- # unrepl (18)
- # yada (2)
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.
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.