Circularizer Lua

Coordinate transforms are simple to implement and can yield cool results when applied to doom geometry. I like curvy things so polar transforms seemed like fun:

Sunder MAP03, Circularized:




Here's the script itself: circularizer.lua
[edit: Feb 23 2021. updated link to github]

The math is simple, it just maps the bounding box of the level geometry to a ring:



This particular transform has some funny side effects, most notably that sectors at the bottom of the map get crunched together and sectors at the top are smeared and stretched all the way around the periphery of the ring.

There are many other ways to accomplish effects like this. Here's Sunder again, transformed in another way:


I leave you with this parting gift: d2_circle.wad

0 comments:

Post a Comment

Post a Comment