Web Experiment: Build Map Viz

Today experiment is a .MAP visualizer, for maps created with the Build Engine (Duke Nukem 3D) created by Ken Silverman.

I grew up playing videogames during the 80s and 90s and one of the games that struck me the most in my childhood was Duke Nukem 3D.

Not only for its fun gameplay, amazing technology and postapocaliptic setting, but because the CD included the level editor created by Ken Silverman.

I expend so many hours creating my own maps. You could even edit the ones from the game. I remember taking the first map of the game (E1L1) and adding a whole new building with several floors and elevators. Its a pity that all those maps got lost in time…

This week I decided it should be a beautiful homage to the game to try to visualize a map file using WebGL, as a way no know better the technology behind it.

One of the things I remember when creating my maps (and playing the game) is that maps where created by interconnected top-down sectors (like in Doom). This video shows a nice explanation of how it works.

I searched on the internet for the file format specification for the .MAP files and for my surprise it was extremly easy to parse. Every map contains three arrays, one with sectors, one with walls and one with sprites. Thats all.

It is interesting to see that the map format is very agnostic to the gameplay, it leaves some empty bytes per sector and wall, so the programmer could use them to add the gameplay properties.

Once I had parsed the info I tryed to create a wireframe to show the contour of every sector. To my surprise that turned to be working quite fast.

The next problem was floors and ceilings. The game allows sectors with holes, and because it doesnt contain the sectors triangulated, it meant I had to do the triangulation by myself.

I sent an email to Ken Silverman to ask for some help and I was delighted with his fast and insightful response. He told me that the map structure contains first the outer wall and afterwars every hole.

With that info a searched for a triangulation algorithm and what was my surprise when I found earcut, a tiny library in javascript that triangulate polygons and support holes! super easy to integrate.

You can test the app here: http://tamats.com/apps/build/

I plan to add support for textures soon but that wont be easy, meanwhile, enjoy this holographic look.

Comments

76 responses to “Web Experiment: Build Map Viz”

  1. VictorRah Avatar

    ???? ????????????? ? ?????????, ?????? ??????????? ???????? ?????. ??????, ???, ??????? ? ????????? — ???? ??????? ????? ???? ? ??? ??, ? ????? ?????????? ???? ????? ?? ??????????. ? ??????????? ????????? ??? ???????? ????????, ?? ?????? «??????, ??? ?????» ? ???? ???? ????????? ?????? ?? ???. ??????? ? ????: ????? ????? ??????, ???? ????????????? ?? ???? ?????, ???? ? ?????? ?????? ?????? ?????????. ???? ???? ????????????? ?? ????????? ????????, ? ??????? ????? ??????????? ?? ????, ????????? ? ??????, ??????? ?? ????????? ?????. ??? ????? ????????????? ?? ?????? ? ?????????? ??? ????????? ??? ?????

  2. ArthurTruro Avatar

    ?????????? ??????? ???????? ?? ???????

  3. JulioNuata Avatar

    ???? ??????????? ????????? SOLAR «?????????» ??? ?????? ? ???????, ?? ?? ???????, ????? ?? ???????? ?? ????????? ????????? ??? ??? ????? ??????????? ????????? ??????? ??? ?????? ?????? ?????. ?????? ????????? ????????? ????????? ? ??? ???????, ??? ? ??? ??????????. ??????? ????????? ?????, ? ?? ???????? ? ??? ??? ???? ????????. ??? ???????? SOLAR «?????????» ??? ??????? ? ??????? — ?? ????? ?????? ???????????? ? ????? ??????? ???????? ?? ????????? ? ??????? ????????? solar ?????????

  4. LemuelJaize Avatar

    ? ???? ???? ???? ???????? ????? ?????????? ???? ? ?????????, ?? ?? ???????, ??? ??????? ?? ??? ???????. ?? ???? ?????? ?????? ? ??????, ? ???????? ????? ?????? ??????. ?? ??????? ????? ?????????? ??????????? ? ????????? ??? ?????? ?????? ????, ??????? ?????? ????????? ??? ?? ??????. ????? ?? ????????? ?????? ?? ?????? — ???? ?? ????? ???????. ??? ??? ????????? ???? ? ????????? — ???????? ??????? ? ??? ?? ???????? ??? ???? ?????????? ????????? ?????????? ??? ???????? [url=https://mymoscow.forum24.ru/?1-1-0-00006296-000-0-0-1793604806]?????????? ???? ? ????????? [/url]

  5. pinco casino az Avatar

    Easy to understand. I found several new details about casino platforms.
    Thanks for the effort.

  6. VictorRah Avatar

    ???? ????????????? ? ?????????, ?????? ??????????? ???????? ?????. ??????, ???, ??????? ? ????????? — ???? ??????? ????? ???? ? ??? ??, ? ????? ?????????? ???? ????? ?? ??????????. ? ??????????? ????????? ??? ???????? ????????, ?? ?????? «??????, ??? ?????» ? ???? ???? ????????? ?????? ?? ???. ??????? ? ????: ????? ????? ??????, ???? ????????????? ?? ???? ?????, ???? ? ?????? ?????? ?????? ?????????. ???? ???? ????????????? ?? ????????? ????????, ? ??????? ????? ??????????? ?? ????, ????????? ? ??????, ??????? ?? ????????? ?????. ??? ????? ????????????? ?? ?????? ? ?????????? [url=https://vk.ru/id11285714]??? ????????? ??? ?????[/url]

  7. LemuelJaize Avatar

    ? ???? ???? ???? ???????? ????? ?????????? ???? ? ?????????, ?? ?? ???????, ??? ??????? ?? ??? ???????. ?? ???? ?????? ?????? ? ??????, ? ???????? ????? ?????? ??????. ?? ??????? ????? ?????????? ??????????? ? ????????? ??? ?????? ?????? ????, ??????? ?????? ????????? ??? ?? ??????. ????? ?? ????????? ?????? ?? ?????? — ???? ?? ????? ???????. ??? ??? ????????? ???? ? ????????? — ???????? ??????? ? ??? ?? ???????? ??? ???? ?????????? ????????? ?????????? ??? ???????? [url=https://mymoscow.forum24.ru/?1-1-0-00006296-000-0-0-1793604806]?????????? ???? ? ????????? [/url]

  8. JamesHam Avatar

    ???? ??????????? ????????? SOLAR «?????????» ??? ?????? ? ???????, ?? ?? ???????, ????? ?? ???????? ?? ????????? ????????? ??? ??? ????? ??????????? ????????? ??????? ??? ?????? ?????? ?????. ?????? ????????? ????????? ????????? ? ??? ???????, ??? ? ??? ??????????. ??????? ????????? ?????, ? ?? ???????? ? ??? ??? ???? ????????. ??? ???????? SOLAR «?????????» ??? ??????? ? ??????? — ?? ????? ?????? ???????????? ? ????? ??????? ???????? ?? ????????? ? ??????? [url=https://mymoscow.forum24.ru/?1-1-0-00006290-000-0-0-1793602997]????????? solar ?????????[/url]

  9. Agononlibia Avatar

    Hi there,

    I used to struggle with the sheer volume of notes I took. Trying to find relevant information became a chore. Thats when I decided to categorize my notes, which has made it easier to retrieve what I need.

    I collect them here: https://openpagenotes.com/

    Interested in other approaches.

  10. Reference2Video Avatar
    Reference2Video

    The detail about Build Engine maps storing sectors, walls, and sprites separately—and using earcut to handle holes—is fascinating. A short visual walkthrough of the wireframe becoming a textured scene would make this experiment even easier to appreciate; Reference2Video could help shape that from screenshots and reference media.

    reference to video ai

  11. LemuelJaize Avatar

    ? ???? ???? ???? ???????? ????? ?????????? ???? ? ?????????, ?? ?? ???????, ??? ??????? ?? ??? ???????. ?? ???? ?????? ?????? ? ??????, ? ???????? ????? ?????? ??????. ?? ??????? ????? ?????????? ??????????? ? ????????? ??? ?????? ?????? ????, ??????? ?????? ????????? ??? ?? ??????. ????? ?? ????????? ?????? ?? ?????? — ???? ?? ????? ???????. ??? ??? ????????? ???? ? ????????? — ???????? ??????? ? ??? ?? ???????? ??? ???? ?????????? ????????? ?????????? ??? ???????? [url=https://chesskomi.borda.ru/?1-8-0-00006468-000-0-0-1793604796]?????????? ???? ? ????????? [/url]

  12. thorswap rewards Avatar

    I like having a non-custodial choice, and THORSwap has become a solid option for me.

  13. QuickSwap yield Avatar

    My personal rule is never enter from APR alone for joining a pool.

  14. Active BetNaija Promo Code YOHAIG Avatar

    The Validated BET 9Ja Promotion Code today is yohaig.

  15. relayer docs Avatar

    I was ready to continue before I finished my coffee. Relayer kept the whole process straightforward.

  16. LemuelJaize Avatar

    ? ???? ???? ???? ???????? ????? ?????????? ???? ? ?????????, ?? ?? ???????, ??? ??????? ?? ??? ???????. ?? ???? ?????? ?????? ? ??????, ? ???????? ????? ?????? ??????. ?? ??????? ????? ?????????? ??????????? ? ????????? ??? ?????? ?????? ????, ??????? ?????? ????????? ??? ?? ??????. ????? ?? ????????? ?????? ?? ?????? — ???? ?? ????? ???????. ??? ??? ????????? ???? ? ????????? — ???????? ??????? ? ??? ?? ???????? ??? ???? ?????????? ????????? ?????????? ??? ???????? [url=https://chesskomi.borda.ru/?1-8-0-00006468-000-0-0-1793604796]?????????? ???? ? ????????? [/url]

  17. JamesHam Avatar

    ???? ??????????? ????????? SOLAR «?????????» ??? ?????? ? ???????, ?? ?? ???????, ????? ?? ???????? ?? ????????? ????????? ??? ??? ????? ??????????? ????????? ??????? ??? ?????? ?????? ?????. ?????? ????????? ????????? ????????? ? ??? ???????, ??? ? ??? ??????????. ??????? ????????? ?????, ? ?? ???????? ? ??? ??? ???? ????????. ??? ???????? SOLAR «?????????» ??? ??????? ? ??????? — ?? ????? ?????? ???????????? ? ????? ??????? ???????? ?? ????????? ? ??????? ????????? solar ?????????

  18. Briantobia Avatar

    ?? ?????? ??????? ?????????? ?? ? ?????, ??????????????????, ?????????? ?????? ? ?????? ??????????? ????? ??????????? ?????????????? ?? ?????????, ??????? ? ?????? ?????? ??? ????? ???????? ? ?????? ??????????, ??? ????????????? ???????? ?????????? ?????????????? ?? ???????? ? ????????????? ???????? ??????????, ??? ????? ???????? ??????? ? ??????????? ????????????????? ????? https://loldentrnd.ru/orthodontics

  19. renbridge lending renbtc Avatar

    I like having a checklist before sending funds, and the RenBridge guide works well for that.

  20. VictorRah Avatar

    ???? ????????????? ? ?????????, ?????? ??????????? ???????? ?????. ??????, ???, ??????? ? ????????? — ???? ??????? ????? ???? ? ??? ??, ? ????? ?????????? ???? ????? ?? ??????????. ? ??????????? ????????? ??? ???????? ????????, ?? ?????? «??????, ??? ?????» ? ???? ???? ????????? ?????? ?? ???. ??????? ? ????: ????? ????? ??????, ???? ????????????? ?? ???? ?????, ???? ? ?????? ?????? ?????? ?????????. ???? ???? ????????????? ?? ????????? ????????, ? ??????? ????? ??????????? ?? ????, ????????? ? ??????, ??????? ?? ????????? ?????. ??? ????? ????????????? ?? ?????? ? ?????????? ??? ????????? ??? ?????

  21. Segos Pumpkin Nude Avatar

    Segos Pumpkin Porn | Wow XXX Videos & Photos

  22. superbridge metamask Avatar

    My connection was slow, but the extra verification still finished quickly. Superbridge security handled the delay well.

Leave a Reply

Your email address will not be published. Required fields are marked *