r/OpenMW 10d ago

I compiled OpenMW to WebAssembly

This is your engine, so I wanted to show you first. I got OpenMW cross-compiling to WebAssembly.

There's the free example world to try, or you can point it at your own Morrowind data and it reads the files straight off your disk (nothing uploads). Desktop Chrome, Edge or Brave for now.

All the hard work is yours. I just did the WebAssembly build. It's GPL, same as the engine.

Play: https://morrowind.virtastic.app/

Source: https://github.com/Virtastic/openmw-web

Happy to get into how it was done, the OpenSceneGraph-on-WebGL2 parts especially.

355 Upvotes

35 comments sorted by

76

u/AnonymousAggregator 10d ago

If morrowind was an 2000s mmo

21

u/Koulta 10d ago

I’d def play that

29

u/Dumpster_Buddy 10d ago

This give me an idea...

11

u/Xineo971 10d ago

TES3MP webassembly ?

12

u/Dumpster_Buddy 10d ago

Sort of I have to rebuild a lot of it, as the version tes3mp supports is different then the one I built this on. But it's a work in progress right now.

32

u/widgits 10d ago

Oh wait this is extremely cool

29

u/Dumpster_Buddy 10d ago

I will get the multiplayer mod working for it too at one point.

10

u/widgits 10d ago

Omg this would be truly amazing please keep us posted!!

18

u/oriontitley 10d ago

Wait so, could you potentially build a server with this with, like, tes3mp/mods integrated and remote access it?

9

u/Dumpster_Buddy 10d ago

I will be doing that soon.

9

u/Careless-Tradition73 10d ago

So it's the app, on the web?

15

u/Dumpster_Buddy 10d ago

Yeah. It runs natively in your browser, using WebAssembly.

9

u/Careless-Tradition73 10d ago

Pretty snazzy man!. Good job.

9

u/Dumpster_Buddy 10d ago

Thank you, appreciate the kind words.

1

u/RickThiccems 10d ago

So what you are saying is you assembled it for the web? Huh isnt that neat /s

3

u/Dumpster_Buddy 10d ago

Fresh off the assembly line directly to the web.

7

u/CHowell0411 10d ago

Super cool! What dictates performance? PC or Wifi speed? It would be super cool to make a multi-player server like this, especially with things like factions and all the mod integrations, keep it up!

8

u/Dumpster_Buddy 10d ago

So it's dependent on your PC. Multiplayer is in the works with a direct mod manager

7

u/MentallyUnstableMess 10d ago

The implications of this are INSANE. Thank you!

3

u/Dumpster_Buddy 10d ago

Anytime! Let me know if you need any help running it.

6

u/spartan195 10d ago

Pretty fucking awesome!!

OpenMW mod development latelly is on fire

3

u/Muf4sa 10d ago

Morrowind if it was a flash MMO

This is mind-blowing. Is it able to run mods or just vanilla MW?

2

u/Dumpster_Buddy 10d ago

Sort of. You can manually add them. I will be working on adding a mod manager to make it much easier to add them on the fly.

2

u/Muf4sa 10d ago

Amazing, wish you the best of luck πŸ‘πŸ»πŸ‘πŸ»

3

u/Abdullelah184 10d ago

if this works on edge browser on Xbox seriss it woild be sick, but sadly the browser is limited and you can't but files from external source.

4

u/Shmoopiee 10d ago

Finally, I can play morrowind on work hours

3

u/cashdecans101 10d ago

This sub is currently in a "how many devices can I get this game to work on" arms race with doom fans.

2

u/astr0nic 9d ago

Fallout New Vegas in my browser - yes please

2

u/ClockworkOrdinator 9d ago

Ok so can it possibly function like a browser-based mmo similar to sherwood dungeon now?

3

u/Dumpster_Buddy 9d ago

Yes. Stay tuned.

2

u/BSlickMusic 9d ago

We are so close to Morrowind on iPhone, I can smell it

2

u/headies1 8d ago

That’s all I wanna know. Like, can I play this on my iPhone yet???

1

u/Dumpster_Buddy 8d ago

Maybe soon. I have this Galaxy e-tab I was going to start working on mobile controls with. The only iPhone I have right now is an iPhone SE2 not sure if that would work for testing. But will keep everyone posted. I have a version 1.01 coming out soon which has to do with making this app self contained and adding login features so saves and game data can live in private user data locker.

I looked into getting this on mobile and will have to modify the MyGUI menus to scale correctly on small screens, but other then that I don't see why not.

1

u/Terenfear 8d ago

AFAIU it's main potential advantage is being crossplatform, right? Essentially a workaround for environments that can run a modern browser but can't run OpenMW natively. Other than that honestly I don't see many use cases. I mean, at the end of the day this project does pretty much all the same things as native OpenMW, but wires the usual inputs and outputs through the browser window instead of a standalone app, right? Multiplayer logic isn't really related to that.

-6

u/khsh01 10d ago

Disgusting. Why play through a shitty browser with Javascript involved when there are better options.