I'm trying to experiment with 3d in Quil and it's going well but when I try to display some text at the same time (I just want a FPS-counter up in the corner to begin with) all my other graphics are gone.
Also, when I remove the call to 'text' and re-evaluate the form I don't get my graphics back...
Any help would be much appreciated!
Here's the code:
(defn cubo [x y]
(q/with-translation [x y 0]
(q/with-rotation [(* 0.001 (q/millis)) 0 1 0]
(q/box 10))))
(defn draw-state [state]
(q/background 100 100 100)
(q/stroke-weight 1)
(q/stroke 0)
(q/begin-camera)
(q/camera 0 0 (pulse -50 -570 3.0)
0 0 0
0 1 0)
(doall (for [x (range -300 300 20)
y (range -300 300 20)]
(do (q/fill (* 255 (q/sin x))
(* 255 (q/sin (* 5 (t))))
(* 255 (q/cos y)))
(cubo x y))))
(q/end-camera)
;; (q/text "FPS: 60" 10 10)
)