GTA San Andreas characters can reach out of mirrors "horror movie style" because of a nifty technique to get around a lack of video memory
The PS2 version of San Andreas doesn't render mirrors "the proper way"
Grand Theft Auto: San Andreas is an all-time classic, but there's no doubt that its in-game mirrors have always been slightly wobbly in places. Now though, we finally know why, and it centres around a workaround put in place due to a lack of video memory – at least in the PS2 version.
Former Rockstar Games technical director Obbe Vermeij took to Twitter to share that the PS2 version of San Andreas never had enough video memory to render mirrors "the proper way." Vermeij explained that the standard method has developers "render the scene twice", taking the "point of view of the mirrored camera" and using it as a texture for the mirror. However, in the case of San Andreas on PS2, Rockstar "simply didn't have that spare video memory" in order to store this render.
Instead, Vermeij "rendered a mirrored version of the scene, at the same time as the scene itself." While this was certainly effective, it did have some problems that you'll have likely seen if you've spent a lot of time in the game. For a start, characters and objects can appear to reach out from inside the mirror "horror movie style", which is a bit creepy, to say the least.
Otherwise, the method in San Andreas also makes back-face culling – a process which determines whether polygons are drawn and displayed when you're not supposed to see them – go "the wrong way round". This can lead to some models in the mirror showing their "back surface" rather than the one you're actually meant to see. Vermeij gave an example of this in a screenshot on Twitter – if you look at the shelf in the background, you can see that the two images don't look the same due to their models displaying differently.
Glitchy mirrors in GTA San Andreas.We didn’t have the video memory to render mirrors the proper way.Instead, I rendered a mirrored version of the scene, at the same time as the scene itself.This method has a few problems:- Mirrors can only be on the outer wall of the room.… pic.twitter.com/0fkt2mtrVaMarch 5, 2024
In the replies to the Twitter thread, Vermeij also acknowledged that looking at San Andreas' mirrors could sometimes allow you to see other interiors in the game, which, back in the day, some believed to be a kind of underworld. "There never was an underworld," Vermeij clarified.
All in all, describing San Andreas' mirror-rendering technique, Vermeij said that it's "not ideal but better than mirrorless barber shops," which is certainly fair enough, but after all these years, it's fascinating to have some answers.
If you're on the lookout for a new game to dive into, be sure to check out our recommendations for the best RPGs.
Sign up to the 12DOVE Newsletter
Weekly digests, tales from the communities you love, and more
I'm one of 12DOVE's news writers, who works alongside the rest of the news team to deliver cool gaming stories that we love. After spending more hours than I can count filling The University of Sheffield's student newspaper with Pokemon and indie game content, and picking up a degree in Journalism Studies, I started my career at GAMINGbible where I worked as a journalist for over a year and a half. I then became TechRadar Gaming's news writer, where I sourced stories and wrote about all sorts of intriguing topics. In my spare time, you're sure to find me on my Nintendo Switch or PS5 playing through story-driven RPGs like Xenoblade Chronicles and Persona 5 Royal, nuzlocking old Pokemon games, or going for a Victory Royale in Fortnite.
This new indie D&D campaign setting brings Studio Ghibli and Zelda: Breath of the Wild aesthetics and worldbuilding to the tabletop RPG, and I'm already scheming hard as a DM
I've seen enough: Assassin's Creed Shadows will beat Black Flag as my favorite AC game as Ubisoft says it lets you "Naruto run" as the "fastest Assassin" it's ever made