Gezinmeyi atla
HTML can't run Doom But HTML can now run *inside* Doom! Thanks to HTML-in-Canvas!
0:00 / 0:26

HTML can't run Doom But HTML can now run *inside* Doom! Thanks to HTML-in-Canvas!

Robin

@solarise_webdev4 B takipçi

X profili
1.145 beğeniİndirOrijinal gönderi

115.376 görüntüleme

HTML can't run Doom But HTML can now run *inside* Doom! Thanks to HTML-in-Canvas! Fully accessible DOM elements drawn into Doom's own wall textures. This demo uses a WebAssembly port (jacobenget/doom.wasm) of the original C source. See it in action at - Requires Chrome with chrome://flags/#canvas-draw-element enabled. On every Doom tick, HTML-in-Canvas's drawElementImage() captures the DOM form (child of ) to an offscreen buffer, it's quantised to Doom's 256-colour palette, and the bytes are written straight into the cached patch for the appropriate texture in Doom. Doom's own software renderer then paints it onto E1M1 as a wall texture - which means perspective warp, sector lighting, and even the damage-red tint all get included and applied to the HTML form elements. It's just a texture to Doom.

36 Yorum

Yorumlar X (Twitter) üzerindeki orijinal gönderiden alınmıştır

  • Akuma No Tsubasa profil fotoğrafı

    @totmacherx

    It's so fucking impressive what people do it with a 33 year old game. One day someone will run crysis in doom. Mark my words. Might be another 50 years but it will happen.

    8 beğeni

  • cr4n3 profil fotoğrafı

    @metaphysicr4n3

    Yes internet is fun again. The future is bright.

    6 beğeni

  • George McHorseman profil fotoğrafı

    @GMcHorseman

    Sooo... emscripten? Then you get a DOM inside your DOM, so you can DOM while you DOM.

    5 beğeni

  • CuddlySalmon profil fotoğrafı

    @nptacek

    @codexeditor ok so now we need to run doom inside VR inside doom inside VR

    4 beğeni

  • Elix profil fotoğrafı

    @GenericMage_

    ❌ "Can *it* run Doom?" ✅ "Can Doom run *it*?"

    4 beğeni

  • Justin Williams profil fotoğrafı

    @develop_justin

    This is what the world needed. Thank you for your service

    3 beğeni

  • dominik kundel profil fotoğrafı

    @dkundel

    Damned I was gonna do that tomorrow 😂 nice job 👏👏

    2 beğeni

  • Robin profil fotoğrafı

    @solarise_webdev

    I sensed I should get in there quickly! It was inevitable 😂 Would love to see other approaches for this though. My one is pretty hacky, reused an existing texture (you can see the form texture duplicated if you head up the stairs to the left!) Interested to see how this could benefit browser-based games in general too

    1 beğeni

  • undefined profil fotoğrafı

    @undy_aeon

    but can you run a canvas in it and run doom inside doom?

    2 beğeni

  • Air Guitarist profil fotoğrafı

    @wildstrums

    Yeah but can I run a C64 emulator inside of it?

    2 beğeni

  • Valentino Giudice profil fotoğrafı

    @Aspie96

    > HTML can't run Doom @rebane2001, can it with CSS?

    2 beğeni

  • Shaun Kahler 🥽 profil fotoğrafı

    @kbidata

    Omg whyyyy 😂

    2 beğeni

  • Robin profil fotoğrafı

    @solarise_webdev

    Had to be done! 😄

    1 beğeni

  • Cole Lawrence profil fotoğrafı

    @refactorordie

    @codexeditor This explanation helped me understand what "html-in-canvas" is actually doing. Neat demonstration!

    2 beğeni

  • Vincent profil fotoğrafı

    @VynseDev

    customer support: "please shoot at the form" 😂

    2 beğeni

  • Pseudonym 🦅 profil fotoğrafı

    @tariusdamon

    👀

    1 beğeni

  • Sync Kun profil fotoğrafı

    @Stardus63556727

    Wild

    1 beğeni

  • ZEUS LYKAIOS ❤️‍🔥🌲✋ profil fotoğrafı

    @zeuslykaios

    noting this down

    1 beğeni

  • Quaid Leckey profil fotoğrafı

    @quaidleckey

    Doom 3 demake with the interactive panels when?

    1 beğeni

  • Flutterwhat profil fotoğrafı

    @flutterwhat

    so, what are going to be the pratical applications in this? in game interfaces that actually require internet access to function? imagine not being able to open a door becaus the game's servers shut down and they used HMTL canvas for all the screens in the game

    1 beğeni