kayhhh / houseki

💎 A modular 3D game engine built for the web.
https://houseki.vercel.app/
GNU General Public License v3.0
61 stars 8 forks source link

Scripting system #104

Open kayhhh opened 1 year ago

kayhhh commented 1 year ago

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

Nodes

kayhhh commented 1 year ago

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