kayhhh/houseki

Scripting system

kayhhh opened this issue · 1 comments

kayhhh commented

I want to creating some sort of scripting system for the engine, or more specific support a glTF extension for adding sand boxed behaviors to a model. I'm thinking about it in the context of the parent project UNAVI, but it would be a generic system around glTF.

I see two options, WASM scripting, or a node-based behavior graph.

Am leaning towards a WASM approach but I'm still a bit unsure. Would appreciate input if anyone has ideas on this. Some pros and cons of how I see things:

WASM

  • If you know how to code, WASM could be faster and easier to work with, especially for larger, more complex scripts
  • Would allow for the creation of re-usable libraries (!)
  • Better performance?

Nodes

  • More accessible to non-coders
  • Could be worked on from within the 3D environment itself like Gmod, or in VR like Neos (!)
kayhhh commented

Gonna go with the WASM approach. Can always build some kind of node system that compiles down to WASM.