607 points · by robin_reala · 2y ago · 170 comments
https://dukenukem.fandom.com/wiki/Lunatic_Fringe
This level had a circular hallway ring around the outside that had two full rotations around without intersecting, using the 'build' engine's ability to separate areas by their room connections that also drove the 'room over room' technology which was groundbreaking at the time.
It made for fun multiplayer, and the illusion held well there. The central chamber has 4 entrances/exits if I recall, and you would only encounter two of them in each loop around the outside.
I recall building a toy level while experimenting with the engine that "solves" the "3 houses with 3 utilities without crossing" puzzle using this trick as well.
Bungie's Marathon from 1994 could also do this and demonstrated it in the deathmatch map 5-D Space[1]. It was really only Doom that bugged out on overlapping sectors.
If you can rasterize the inside of a convex shape, you can rasterize a sector-portal-world by marking certain faces as portals, and when rendering one, setting the clipping region (or stencil buffer) to where the face would be, then rendering the sector behind it with an appropriate transformation (which is part of the portal's data, alongside the ID of the other sector).
Collisions through portals are much harder than rendering through portals.
While Lunatic Fringe is pretty in-your-face example of impossible geometry in build, the duke3d maps contain many more cases of intersecting geometry. Obviously such things are impossible in Doom because there is no way to build BSP tree out of that and because doom only tracks X/Y coordinates of player(s)/monsters.
https://www.youtube.com/watch?v=Iq1-TZXz9xo (myhouse.wad)
There is nothing about the data structures ID choose to use in doom that prevent portal shenanigans. ID(John Carmack) just did not implement them.
It does, otherwise Lost Souls and Cacodemons wouldn't able to fly.
In graph theory's terminology, this is "K3,3", one of two irreducible nonplanar graphs. The other one is K5.
You can also make all the connections without crossing any edges if you embed the graph in a torus, which is equivalent to building a bridge over some set of edges that other edges are allowed to take.
Thanks for the throwback!
Descent did this in 1994.
https://fabiensanglard.net/duke3d/build_engine_internals.php
https://en.wikipedia.org/wiki/Operation_Chaos_(novel)
which is set in an parallel world where magic is real and advancing rapidly along with science. (e.g. Edwin Land invents a device to transform a werewolf without moonlight using polarized light)
The protagonists have their child kidnapped and brought to Hell. They are told that the Army had tried to investigate Hell 20 years ago but everyone was driven insane. An adversary drops the hint that the space-time geometry of Hell is different from ours so it would be possible to go back in time and retrieve the child at the moment it arrives. This is enough of a hint for scientists to determine that the geometry of Hell is non-Euclidean and figure out spells for getting there safely, keeping safe, and getting back. They pray to get the assistance of two 19th century geometers, one a saint, to be able to navigate.
For another take on non-Euclidian geometries, I have good memories of Inverted World by Christopher Priest.
I wound up re-reading Tau Zero and was really blown away which got me reading the Ensign Flandry books, Corridors of Time, Star Fox, etc. I don't agree with his politics any more than I agree with Niven or Heinlein but enjoy his books anyway. I'm planning to read all the Anderson books at my library.
Heinlein wrote a few crossover books like "Glory Road" and "Magic Inc" but those were the exception for Heinlein and closer to the rule for Anderson because Anderson was just as important as a fantasy writer as a sci-fi writer.
I do have a copy of The Inverted World that I ought to read.
Out of curiosity: why? They are rather silly, but I'm mostly thinking about their implausible evolutionary history when I say that.
Also you may want to subscribe to a short story publication like Clarkesworld. You'll have a drip feed of aspiring creative writers and can follow the ones you find especially good for when their forthcoming novels come out.
One that especially blew me away from Clarkesworld recently was Axiom of Dreams by Arula Ratnakar.
The last Bobiverse book was about infiltrating a spaceship that is an artificial world.
Heck Bobiverse in general has some cool ideas.
The Andrea Vernon books are a hilarious take on the superhero genre.
https://www.amazon.com/Terraformers-Annalee-Newitz/dp/125022...
I think in order to "play it safe" against the 1% of people who cry over the dumbest shit, but who happen to screech the loudest, creators make everything about someone's feelings, edge case stuff you hardly see represented in day to day. You weave that web enough and you end up with the "creative" output of something like Gemini lol.
(Though, I’m not sure if two time dimensions exactly makes sense, because like, R\{0} has two connected components, which seems connected to the distinction between the past and the future, while R^2\{0} is connected (though not simply-connected) , so I’m not sure if the distinction between past and future, can still be made? Maybe if instead of a 0-dimensional point we have a 1-dimensional curve? )
As I imagine it, for the most part, the further something is from human experience, the less it would tend to remind people of whatever things in life they find objectionable.
https://github.com/search?type=code&auto_enroll=true&q=84600
https://github.com/mysql/mysql-server/blob/824e2b4064053f7da...
https://github.com/textmate/textmate/blob/346b52b108b387462d...
None of those look fatal but I think they all differ from the intent of the author. That's why code review is so good. You just need someone to ask "what's 874600?". Turns out: not a thing.
MySQL's issue is a timeout on SSL sessions which is normally 300s. Textmate's is a "friendly" display of the time. Not a showstopper, but probably not what they had in mind. It's so easy to transpose digits. It's great to have someone ask "are you sure?".
SECONDS_IN_MINUTE = 60
REFRESH_TIME_MINUTES = 15
REFRESH_TIME_SECONDS = SECONDS_IN_MINUTE * REFRESH_TIME_MINUTES
e.g. I define every constant separately, and ideally any constant defined by an operation will only have one such operation. This makes mistakes _much_ easier to spot.
new TimeSpan(minutes = 15)Turned out my Maths was okay, but Safari under many circumstances removes first party cookies after 7 days.
Comparing some of the weird geometry effects in the doom video, like things sliding sideways when you move forward, I feel like it's reasonable to call this doom non-euclidean!
So in the final presentation, you're seeing a facsimile of a universe where the value of Pi has only changed in two out of three spatial dimensions.
For actual non-Euclidean stuff I recommend ZenoRogue stuff. For example a simple game with Nil geometry[1], giantic bossfight in non euclidean world rogue game[2], or some general geometry weirdness [3]. Or just check out any of their stuff.
[1] https://m.youtube.com/watch?v=gejRg_q70EA&pp=ygUJemVub3JvZ3V...
[2] https://m.youtube.com/watch?v=jcnXI8IArRI&pp=ygUJemVub3JvZ3V...
[3] https://m.youtube.com/watch?v=yqUv2JO2BCs&pp=ygUJemVub3JvZ3V...
(And it's possibly 4 axioms broken; I'm reckoning "all right angles are equal" as still holding, though I'm not 100% sure a "normal" right angle and a right angle generated where a portal bisects the angle is necessarily "equal" in all relevant ways. It's been a while since I did geometry proofs but the more I ponder it the less sure I am. If not that would leave only "a straight line segment can be prolonged indefinitely" as holding, and unlike in Euclidean geometry a straight line segment may intersect itself arbitrarily often.)
This one might not hold either, depending on your point of view. If you take the point of view of someone traveling along a line, that can still go on forever.
But if you're measuring the line, portals can easily prevent it from extending indefinitely, by wrapping it around to an earlier part of itself. It would then fail to be the case that, for any distance, there are two points on the line separated by at least that distance.
Come to think of it, long enough has probably passed that I might enjoy replaying it.
You take pictures to create portals to other parts of the level, but in any orientation/angle that you want.
So even though you were in the same absolute space coordinate as another player, you were not necessarily in the same room.
Good times. <:o)
Also look at myhouse.wad for actual Doom in actual non-Euclidean spaces.
The only game to give me motion sickness by watching a streamer playing it, and no motion sickness at all playing the VR version. Very odd.
(not exactly the effect in the video you responded to, but similar category)
I suppose something around non-Euclidean levels without user-created portals could be interesting, but I think it'd be hard to flesh that out to a point where there's enough there for a whole game without coming up with some other gimmick.
It’s just screwing with some routines.
Thats why most of the changes are unplayable.
I'd like to see something like this [1] where we can find out how many digits of pi you really need to make Doom play normally. But again, not super exciting. You would just need to iterate from 1 to 9 digits and apply some subjective rules about what counts as normal.
[1] https://www.jpl.nasa.gov/edu/news/2016/3/16/how-many-decimal...
I was hoping when he mentioned other projects that he’d found on GitHub and Google that he’d talk a little about them too but alas he shared that he just clicked search and then did nothing with the results. A big missed opportunity in my opinion.
Still, at least the comments on HN were largely worthwhile.
Found a video that demonstrates it: https://www.reddit.com/r/Marathon/comments/vclu55/probably_n...
Edit: I had the name wrong, ita antichamber! As many others have correctly stated.
The distinguishing feature (again, in differential geometry) of non-Euclidean geometry is that it has non-zero sectional curvature. One way to measure sectional curvature is to measure the circumference of a small circle and check how it deviates from what would be expected of a Euclidean circle.
Euclidean circumference: C(x) = 2 π x.
Circumference taking sectional curvature into account, for small x: C(x) = 2 π x - (1/3) K π x^3 + O(x^4), where K is sectional curvature. (The negative sign in the second term means circumferences are smaller than Euclidean when curvature is positive, like on a sphere, and are larger than Euclidean when curvature is negative, like on a saddle.)
Curvature can then be measured by taking the third derivative of circumference at 0: C'''(0) = -2 π K.
π can still be computed by taking the first derivative of circumference at 0: C'(0) = 2 π, independent of curvature.
So even non-Euclidean geometry respects the value of π.
9:30 Pi = e
10:30 Pi = Pi/2
11:15 Pi = 0.00001
12:00 Truth table of compiled and playable values
My take away from the entire talk was, if you change pi, the walls move. But I still don't understand how they move and what changing pi is actually doing.
In essence, you're just mildly glitching the display. It doesn't really alter the map or the spatial relationship of items. You'd need more fundamental game engine changes to really implement a different geometry.
[1] https://en.wikipedia.org/wiki/Doom_(1993_video_game)
Edit: my muscle memory of right hand on mouse, left hand on asd, starts tickling when seeing these video's after 'bring 'm on' is clicked.
I mean there are things like circular explosion radiuses which would get scaled but not necessarily in an interesting way.
The fact that rendering gets effed up is no surprise.
It's an amazing community 30 years later, but I still prefer Quake and its mods. Much more modern.
See also: https://github.com/shaunlebron/blinky
Using non-standard projections in Quake.
https://strlen.com/gfxengine/panquake/
Changing the lens projection is a little different than changing the value of pi, but it plays in the same "visually wrong" space.
This Doom illustration reinforces the lesson from the Pentium bug that substituting a lookup table for a slower but correct algorithm is a bad idea unless absolutely necessary.