CRUD ThreeJS wrapper for Elm

Sorry for creating duplicate thread, mistakenly pressed “Create Topic”.
I wanted to show my findings that started in this thread:
https://discourse.elm-lang.org/t/what-is-tohtml-that-webgl-elm-is-using/9499

With community help, I have implemented simple ThreeJS CRUD wrapper for Elm.
Here is simple demo of 3D scene of hi-tech ~town with flying cars:
https://demensdeum.com/demos/dust_flyer/

First confirm window will enable auto-controls for player character.

3d

Also wanted to show source code for people who interested in implementing something like it.
Here is TypeScript custom component, which takes JSON 3D Scene from Elm:
https://github.com/demensdeum/Digital-Mage-Uprising/blob/main/client/gameClient/typeScript-src/src/threeCanvas.ts

And here is Elm custom component code:
https://github.com/demensdeum/Digital-Mage-Uprising/blob/main/client/gameClient/src/CustomControls.elm

Entry point Main.elm:
https://github.com/demensdeum/Digital-Mage-Uprising/blob/main/client/gameClient/src/Main.elm

5 Likes

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.