Starfield players realized this week that their characters have rain clouds that follow them around planets, Ă la The Truman Show. Rain isnât falling all over Neon, for instance â just wherever you roam. A Starfield player posted a screenshot from the gameâs photo mode to Reddit, showing a block of rain around their character, and nowhere else.
It may have been surprising for players, but the rain trick is not unique to Starfield â itâs used in most games, according to game developers. Thomas Francis, lead visual effects artist at Darkest Dungeon studio Red Hook, told Polygon that itâs a common practice in games to attach rain visual effects to the gameâs camera to optimize for performance âby not rendering every rain drop, only what is important in front of the camera.â
âThe technique can also be used for snow, wind, leaves falling, dust,â he added via email. âAll sorts of environmental visual effects.â
Thatâs what youâre seeing in this screenshot, except that the grid or block of rain appears to be attached to the character and not the camera. (For transparency, two Polygon staffers were unable to reproduce the effect; when we entered Starfieldâs photo mode, the rain turned off.) You can see this clearly when the camera moves back but the character youâre playing as stays in place. Karl Schecht, a 3D environment artist and the guy who reloads household items like theyâre video game guns, told Polygon that games have some âclever trickeryâ thatâs been standard for quite a while.
âEven if whatâs on screen looks real, more often than not things are quite a bit different under the hood,â Schecht said in an email. âYou see, everything in a videogame, whether itâs lighting, reflections, weather stuff, and scenery are all part of a built system. Theyâre set up to look and feel real, but also to run smoothly on your console or PC. Letâs take the rain in Starfield as an example. Whether youâre in first or third person, the rain looks solid. But switch to photo mode, zoom out, and youâll see the rain is actually a small particle system, about 3×3 meters, that hangs out above your character.â
David Szymanski, who created Iron Lung, broke down the effect: âBasically rain is usually done with some sort of particle system, which is just a way of making a lot of similar things that all move or animate,â Szymanski wrote. âParticle systems are great at rendering a lot of things at once very cheaply, but it would still require a not insignificant amount of processing power to have hundreds of thousands of raindrops (or more) visible onscreen, especially if theyâre also transparent in any way.â
Developers can size down the particle system to have as few raindrops as possible, tied to either the player or the camera, he added: âIf you tweak the size and number of raindrops right, you can have a relatively small area thatâs actually ârainingâ but still looks like a torrential downpour from the playerâs perspective.â
Video games are often doing a lot of things at once, so optimization is essential to prevent âunnecessary overheadâ â aka CPU/GPU strain â Schecht said. That cost Szymanski mentioned isnât a financial cost; itâs the cost of resources. âYou can think of developing a game a bit like a resource management game in and of itself,â Schecht added. âEverything you add into your game is going to cost some overhead. The more stuff you have, the more difficult it will be to run the game smoothly. So you have to use tricks and tools to lower that overhead.â
He continued: âThese are all things we do in the industry to make sure that the pixels weâre pushing arenât going to make your computer melt through the floor!â
These techniques may be common knowledge to developers, but the little tricks seem to work so well that players typically donât notice them, in Starfield or elsewhere. Itâs a peek into the labor of making games that players donât often get to see. âI think for lots of gamers yesterday, it was the first time they saw the wizard behind the curtain, so it was funny to see all the reactions,â Francis said.