Jump to content
The Dark Mod Forums

Idea - Running TDM in your webbrowser


freyk

Recommended Posts

I discovered for myself some great html5 features of our webbrowsers, like
viewing 3d generated environments with google maps and running old dosgames.
(see other topics in offtopic forum)

For the ones who doesnt know it, Its also possible to run Doom 3 in your browser:
project page: http://www.continuation-labs.com/projects/d3wasm/
Sourcecode: https://github.com/gabrielcuvillier/d3wasm
Demo: https://wasm.continuation-labs.com/d3demo/
(pro-tip: run the demo in google chrome/chromium)

For a easy demonstration of our beloved game on cross platforms, how about running TDM in the webbrowser?
(and stream the data files from a tdm mirror server)
 

Edited by freyk
  • Like 1

Info: My portfolio and darkmod graphical installer
Amnesty for Bikerdude!

Link to comment
Share on other sites

Wow, that is pretty amazing. I got it to run pretty well on my work laptop in chrome. That web application certainly has a lot of potential! As far as porting TDM into webbrowser format, it may be worth looking in to but we have few people with that level of code-fu and time to work on it. Maybe once we get a good VR client it could be worth looking in to this though! If nothing else it could be a fun way to spread TDM to the masses if all you have to do is to embed the game in a post on a forum / social media ^^

My Fan Missions:

   Series:                                                                           Standalone:

Chronicles of Skulduggery 0: To Catch a Thief                     The Night of Reluctant Benefaction

Chronicles of Skulduggery 1: Pearls and Swine                    Langhorne Lodge

Chronicles of Skulduggery 2: A Precarious Position              

Chronicles of Skulduggery 3: Sacricide

 

 

 

Link to comment
Share on other sites

TDM is open source and anyone can do with it what they want, I'm also no one to demand others to stop but I most ask, why would you want that? Just to spread the word on the game? 

Running a game in a browser, is very slow compared to running it natively on the PC and that is also slower than it can theoretically be that is why Vulkan and dx12 were invented. If the first contact people have with TDM is with the slowest version of the game, why do you guys think they would go then try the faster version? IMO they would just say the game is trash and forget it, first impressions are very important.

TDM is already more demanding than Doom 3 ever was, they are two different games, not to mention that the engine version used in TDM has many changes and requires newer and updated GPU's, IMO Doom 3 is not and should not be a benchmark for what TDM should be capable off. 

Also Would the TDM team be fine with the game being known by many people has a browser game? We all know the stigma that those games have. 

Now again, if you want to try doing it, go for it, I bet it would be a fun exercise but I ask, what good would it make to the future improvements of the game/engine to have two different versions outhere?  Who would maintain them? TDM team of volunteer coders is already small and even tho I don't speak for them, I bet they don't have much free time to work on something like this. 

Ultimately I certainly don't believe this would help people with slow computers (or slow internet), there's a reason you only see a few games running on browsers and none of them have the complexity or more complexity than Crysis for example, a 12 years old game. (google stadia will change this tho...)  

Edited by HMart
Link to comment
Share on other sites

Have you tried the demo, hmart? 
ok, its sometimes a bit slow, but the graphics work and there are very fast map loading times . (but why is the handmodel not showing?) 

As i see it, its solution is To get our temporary "your daily TDM-fix" on every modern browser on several os'ses, without installing tdm client using the updater.

The benefits i can think of, for now after a session:
users can run the same build  a browser on windows, mac os, linux distro's, android, ios, etc
if the site-admin updates the tdm files in the backside of the server, you get the latest files without using the tdm updater.
Its sitting temporary in your browser cache, after the first session the game start very quick, you can store you missions on it and save your progress, but if you clean your cache all is deleted.
map Loading times are very fast. 
You can show and demonstrate TDM to everybody who have a modern system and browser.

Edited by freyk

Info: My portfolio and darkmod graphical installer
Amnesty for Bikerdude!

Link to comment
Share on other sites

This would basically require to develop a "new" renderer in WebGL, and possibly some other significant platform porting. I'm not stopping anyone from doing it, but this is going to be a significant amount of work. If I'm writing a new renderer, I'd rather learn Vulkan in the process than another variant of GL :D

Link to comment
Share on other sites

found  and played some browserbased Nintendo/sega/amiga/neogeo/arcade emulators and quake 1 in my browser. so, those are "browser games" now, hmart?

some young friends of mine, never played those games, played the browser "demos" and enjoying playing them now on local emulators/devices. 

tip: put in full screen mode, and you got almost the original feeling of playing. 

Edited by freyk

Info: My portfolio and darkmod graphical installer
Amnesty for Bikerdude!

Link to comment
Share on other sites

On 10/29/2019 at 3:37 AM, cabalistic said:

This would basically require to develop a "new" renderer in WebGL, and possibly some other significant platform porting. I'm not stopping anyone from doing it, but this is going to be a significant amount of work. If I'm writing a new renderer, I'd rather learn Vulkan in the process than another variant of GL :D

I guess there emscripten supports OpenGL-to-WebGL translation. But the OpenGL currently used in TDM is surely wider than a "subset of GLES 3". Moreover, WebGL does not support some of the features used right now.

Clearly, all the window system integration, threading, and probably many more has to be rewritten in order to make it work.

To be honest, I personally dislike the trend of putting everything into the browser. Doing so to hardcore games is the worst idea I ever heard.

  • Like 1
  • Thanks 1
Link to comment
Share on other sites

12 minutes ago, stgatilov said:

To be honest, I personally dislike the trend of putting everything into the browser. Doing so to hardcore games is the worst idea I ever heard.

Here here. Nothing like playing videos in the Firefox web browser, which still does decoding in pure software in 2019, instead of using one of the native video playback applications in the OS, which uses proper hardware acceleration, thereby leading to less heat and longer battery life. And, Google and Mozilla are in a race to see who can build the biggest web browser that renders older computers obsolete.

 

There's a reason many Linux flavors are dropping support for 32-bit computers, it's because in a few years, you won't even be able to use one to browse the Internet due to both web browsers (and websites) surpassing 4GB per process memory constraints!

Link to comment
Share on other sites

9 minutes ago, kano said:

There's a reason many Linux flavors are dropping support for 32-bit computers, it's because in a few years, you won't even be able to use one to browse the Internet due to both web browsers (and websites) surpassing 4GB per process memory constraints!

I have found that browser is the only RAM-consuming feature on a typical PC (and on my PCs most of the time). I think RAM manufacturers should pay money to Google for ongoing Chromium development ?

Link to comment
Share on other sites

This got me around to the opposite idea - download only the darkmod.exe and it should download missing assets on map load (i.e. integrate the installer)

(The only 'heavy'/per-request assets being textures and sounds)

Anyone who played Q3 and downloaded maps from server will get the point.

  • Like 1
Link to comment
Share on other sites

I think it's kind of a cool idea. Also kind of a gratuitous gimmick. But if somebody did it, it might be fun to try out. Does it allow you to play on any computer through the browser? That's how I'd use it, just to show friends, or message a link where people can just go and play. If it's not like that, then the utility of this drops off somewhat. 

As an aside, if somebody wants to tackle a gratuitous but cool feature, I would love somebody working on a multiplayer version. That's still my #1 pipe dream for this game, for 10 years now I've pined for that. 

What do you see when you turn out the light? I can't tell you but I know that it's mine.

Link to comment
Share on other sites

yes, demagogue, you can now show this 3 demo to everyone who uses google chrome/firefox on any modern system on windows, mac os, linux distro, etc. (it shows to me, that google chrome runs this more fluenty then firefox on the same system.) 

Edited by freyk

Info: My portfolio and darkmod graphical installer
Amnesty for Bikerdude!

Link to comment
Share on other sites

8 hours ago, demagogue said:

As an aside, if somebody wants to tackle a gratuitous but cool feature, I would love somebody working on a multiplayer version. That's still my #1 pipe dream for this game, for 10 years now I've pined for that. 

Talking out my rear end here, but I think multiplayer would be a more practical feature to implement. I mean, id games and engines are ALL about the multiplayer. Doom 3 had it, limited as it was. But the reason I am just talking out my rear is that I don't know what changes were made while transforming Doom 3 into The Dark Mod that would need to be reworked in order to support multiplay.

It is likely much more complicated to support than I think that it is.

Edited by kano
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recent Status Updates

    • OrbWeaver

      Does anyone actually use the Normalise button in the Surface inspector? Even after looking at the code I'm not quite sure what it's for.
      · 2 replies
    • Ansome

      Turns out my 15th anniversary mission idea has already been done once or twice before! I've been beaten to the punch once again, but I suppose that's to be expected when there's over 170 FMs out there, eh? I'm not complaining though, I love learning new tricks and taking inspiration from past FMs. Best of luck on your own fan missions!
      · 4 replies
    • The Black Arrow

      I wanna play Doom 3, but fhDoom has much better features than dhewm3, yet fhDoom is old, outdated and probably not supported. Damn!
      Makes me think that TDM engine for Doom 3 itself would actually be perfect.
      · 6 replies
    • Petike the Taffer

      Maybe a bit of advice ? In the FM series I'm preparing, the two main characters have the given names Toby and Agnes (it's the protagonist and deuteragonist, respectively), I've been toying with the idea of giving them family names as well, since many of the FM series have named protagonists who have surnames. Toby's from a family who were usually farriers, though he eventually wound up working as a cobbler (this serves as a daylight "front" for his night time thieving). Would it make sense if the man's popularly accepted family name was Farrier ? It's an existing, though less common English surname, and it directly refers to the profession practiced by his relatives. Your suggestions ?
      · 9 replies
    • nbohr1more

      Looks like the "Reverse April Fools" releases were too well hidden. Darkfate still hasn't acknowledge all the new releases. Did you play any of the new April Fools missions?
      · 5 replies
×
×
  • Create New...