Fork me on GitHub
#clojure-gamedev
<
2021-11-02
>
Ty01:11:46

Preparing to embark on a journey to build some browser gamedev tools using cljs. Looking for some ideas on how to approach WebGL with cljs. Is interop with Three.js the easiest/best route?

Ty04:11:34

Is it possible to use both reagent and threeagent together?

Ty04:11:12

Seems like reagent tries to interpret the threeagent primitives (:box, etc.) as hiccup forms and throws an error =(

Doug17:12:01

Hello! I'm the maintainer of threeagent and only just discovered this channel 😄 The issue here is that threeagent doesn't integrate with reagent directly like that. Instead, you'd use Reagent to build your DOM canvas element and then point threeagent at that canvas element. I put together an example on the threeagent docs https://cljdoc.org/d/doughamil/threeagent/1.0.1/doc/faq#how-do-i-embed-threeagent-in-a-reagent-application. Let me know if you run into any issues!