Live data from Hacker News

Show HN: Unity like game editor running in pure WASM

raverie-us.github.io

121–130 of 166 posts

Re: Show HN: Unity like game editor running in pure WASM

#121

> Our engine had a unique feature called Spaces: separate worlds/levels that you can instantiate This is, as far as I can tell, exactly what the Godot engine does[1]. That engine also has a browser (wasm) target. [1]: https://godotengine.org/

I don't see how it's different than scenes in Unity either

Worlds/Spaces in Godot at least are more to do with physics/lighting than scenes/levels. So two objects in the same scene can occupy different "spaces" (for physics), "scenarios" (for rendering), or "worlds" (which encapsulate a space and scenario, for both physics and rendering). Objects in these different contexts will appear in the same scene but will be separated in terms of those contexts and won't e.g. collide with each other or be affected by forces from one space if in a different space, or be lit by lights from a different scenario.

Re: Show HN: Unity like game editor running in pure WASM

#122

> Our engine had a unique feature called Spaces: separate worlds/levels that you can instantiate This is, as far as I can tell, exactly what the Godot engine does[1]. That engine also has a browser (wasm) target. [1]: https://godotengine.org/

Not only does it have a wasm target, it also has a web version: https://editor.godotengine.org/

I suppose it's not any kind of priority to the project. Tested it a bit and it does seem to work :), but it's slower than running it natively.

Re: Show HN: Unity like game editor running in pure WASM

#123
Just to contribute: yet another instance of "cool slideshow" on my (most definitely low end) laptop with integrated graphics.

Then tried it on my aging Mate 20 Pro (not too new, not tooo old), and it just seemed to get stuck at "Downloading runtime". Got a funny feeling my flaky 4G wasn't actually to blame, inspected the tab from my laptop (chrome://inspect) via USB, and was greeted with

  Uncaught (in promise) Error: Needs OES_texture_float_linear to function
      at M (worker-3ec07b2e.js:1:3338)
      at J (worker-3ec07b2e.js:1:3403)
It is what it is. It's a good philosophical question about whether it's worth coding up an error screen, since it's all just to tell people they can't play with the toy. Hehe.

Re: Show HN: Unity like game editor running in pure WASM

#124
It errored on first go with a blank screen:

Error: Failed to allocate type at x.allocate (worker-3ec07b2e.js:1:3516) at ImportGlGenTexture (worker-3ec07b2e.js:1:7645) at RaverieEditor-60af6467.wasm:0x1d459ee at RaverieEditor-60af6467.wasm:0xedf9e7 at RaverieEditor-60af6467.wasm:0xedf56b at RaverieEditor-60af6467.wasm:0xdffefa at RaverieEditor-60af6467.wasm:0xf213e3

Reloading fixed it, maybe a race condition between setting up the app and it being ready to run.

Re: Show HN: Unity like game editor running in pure WASM

#125
Check out what I wrote earlier about how WAForth dynamically generates and links WASM code! By just reading the WASM documentation I didn't realize it was possible to call back into JavaScript to dynamically create and link in WASM code on the fly, but WAForth opened my eyes to that, by compiling each FORTH word definition into a tiny little module and linking them all together. No (practical) limit on the number of modules that you can use in the same WASM app. It would be cool for a game editor app to have a visual programming language that compiles directly to WASM that way, so you can edit code at runtime.

https://news.ycombinator.com/item?id=34374057

Re: Show HN: Unity like game editor running in pure WASM

#126

Earlier quoted context omitted.

I teach GAM 300/350 at DigiPen. We still require them to create custom engines in their sophomore year, but in their junior year (and beyond, in some cases), they're all using commercial engines. One of the main things we want to focus on is giving them a chance to work on a truly cross-discipline team, where every member has a chance to thrive at their work, regardless of their degree program. If you're a student of…

Hey Doug, it’s Avi Eisner - long time no see! Dan told me you’re working on your own game engine - would love to see it some time and catch up!

Hi Avi! Great username. I assume the Dan you're talking about is my brother-in-law, because I don't recall telling Danny about my engine. It's true, technically: I was working on a game engine in JavaScript and then later TypeScript and then later JavaScript again, and since I haven't literally deleted the repo, I guess you could say I'm still working on it, but it's pretty far from the top of my priority stack right now. Still, I'd be happy to chat about it sometime, even if I can't really show anything running in it! I'll send you a message and we can catch up.

Re: Show HN: Unity like game editor running in pure WASM

#127

Earlier quoted context omitted.

Hey Doug, it’s Avi Eisner - long time no see! Dan told me you’re working on your own game engine - would love to see it some time and catch up!

I second that!

Trev, I think the last time we had breakfast together, I had already caught you up on the latest developments of my engine which is now gathering e-cobwebs over in its Github high-density urban housing development repo. Doesn't mean we shouldn't have breakfast again anyway!
Post reply on HN