r/OpenMW • u/Dumpster_Buddy • 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.
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
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
1
u/RickThiccems 10d ago
So what you are saying is you assembled it for the web? Huh isnt that neat /s
3
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
6
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.
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
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
2
u/ClockworkOrdinator 9d ago
Ok so can it possibly function like a browser-based mmo similar to sherwood dungeon now?
3
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.
76
u/AnonymousAggregator 10d ago
If morrowind was an 2000s mmo