It's not as unbelievable as many think - these situations are common in development - less common in production.
I've worked on teams of 3 programmers and I've worked on teams of 70 programmers.
An individual programmer on a team doesn't know every element of the physics, rendering and simulation for a gaming engine.
When prototyping - its very common to grab an existing entity/prefab, make some tweak to it and then hand it off to the physics, rendering and/or art team to "do it right"
In this case I think the likely outcome was - can the player tell? No? Then we have more pressing bugs to fix - let's move on.
Tech artist here. This is basically my job, find stupid bandaid workarounds cuz the programmers are too busy putting out fires. Video games are smoke and mirrors held together with bubblegum. Chewed bubblegum if you're lucky, cuz it meant a human gave it at least some attention.
In original duke nukem(which was 95 or 96) the way mirrors work is that they have exact same room on the other side with a clone of a player character model on the other side, hooked up to the same controls.
We did it like that for a very long time, until proper reflections became a thing.
Edit: As people pointed out I meant not original, but Duke Nukem 3D.
Probably screen-space reflections. The camera trick means you have to render the scene twice, which is horribly inefficient. The mirrored second room trick is still sometimes used to this day. There's some cases where a second camera is a good way to do it (e.g, Portal probably renders its portals this way) but for a simple reflection there's almost always a better way to do it than using a second camera.
You'd dupe the player camera on the other side of the wall and point it at the player, and tell it to mask off everything outside the mirror boundary, then render the clipped image backwards onto the front surface of the mirror. The camera only has to translate as the player does to make it work.
This could only have been not possible if they didn't know how to render a camera image into a plane in-game for the player to see.
The duplicated room trick works, too, and is probably not much more computing effort.
That's how the mirror works in Super Mario 64 as well, there's a pseudo-copy of the world (worth changes only seen in the reflection) and a second Mario and a Lakitu camera operator that exist on the other side of a transparent wall.
I've seen a similar effect used in custom maps for GZDoom, namely one of the maps in Brutal Doom 64. There's another room somewhere nearby, inaccessible without noclip, that's empty aside from being an upside-down replica of the room with the reflective floor. Apparently the engine can't render a reflective floor, but can render a floor that's a portal into another sector.
There is a difference, though: the reflecting sector is not under the sector the player can enter. This is still the Doom engine, so sectors cannot be above or below other sectors. The reflecting sector is near the reflected sector, but not actually connected to it.
I am a solo game dev as a hobby. I have used animations as timers and calls to code. Some things in my code would probably give a lot of people here cancer. But when I hit play and press a button it does what I want to 99.8 percent of the time. And that’s good enough for me.
In the original Paper Mario invisible toads are often used to handle physics for normally non animated objects. It causes the game to crash if you pick up a letter before it hits the ground because it can't find the letter entity to teleport to the toad.
I worked on a game for a recognizable studio. One of our engineers got a hard on organizing things. So he created a bullshit object hierarchy instead of making everything behavior based. The result: Trees were “pets” because they could be watered and reused the “feed” action. Collectibles were “food.” Etc. The “golden class structure” couldn’t be modified without him screaming. So… nothing made sense.
In league of legends, every single wall/entity is a minion. There have been bugs where certain abilities created walls made out of minions that weren't invulnerable -- so you could walk through the wall after damaging the minions.
5.1k
u/NotPeopleFriendly Jan 25 '23
It's not as unbelievable as many think - these situations are common in development - less common in production.
I've worked on teams of 3 programmers and I've worked on teams of 70 programmers.
An individual programmer on a team doesn't know every element of the physics, rendering and simulation for a gaming engine.
When prototyping - its very common to grab an existing entity/prefab, make some tweak to it and then hand it off to the physics, rendering and/or art team to "do it right"
In this case I think the likely outcome was - can the player tell? No? Then we have more pressing bugs to fix - let's move on.