Rooms "scripting" by Webassembly #3054
-
A Mozilla Hubs room now is static. I would like to bring re/activity and “AI” into the system. This is just my idea, how to it using web-assembly, to make it fast, save and “easy" to handle: A) The user may write the scripts in any language, supported by WASM. Well may be not the languages with large included interpreters. The size of the WASM module should be limited. B) The room editor offers to upload a WASM module. (Later we may have modules for single objects.) C) When a hubs user enters a room, the Hubs client will loaded, compiled and initialize the WASM module. D) Cyclically an export “render(dtMsec)” is called to give life to the module. It will call API imports to get stats or “manipulate” objects in the Hubs room. Example: Collisions or touches of users could be “send” to WASM too. We should start to play around with features in the API. Let’s talk about it. -karlos- |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This would really be awesome. You can follow our extensibility discussion on this issue: #1976 I totally agree that would be awesome. I think you could accomplish some of what you'd like to accomplish with playing with a custom client. Definitely an on-going discussion, would love to see you on discord. |
Beta Was this translation helpful? Give feedback.
This would really be awesome. You can follow our extensibility discussion on this issue: #1976
Or on our community discord #extensibility channel.
I totally agree that would be awesome. I think you could accomplish some of what you'd like to accomplish with playing with a custom client.
Definitely an on-going discussion, would love to see you on discord.