Posted

Insomniac interview: the tech behind Marvel’s Spider-Man

Learn how Insomniac Games taps into the power of PS4 and PS4 Pro to create a massive world that looks amazing

In Marvel’s Spider-Man, launching exclusively on PS4 tomorrow, fans will experience an action-packed narrative that lives up to the legacy of the character’s rich history while traversing an expansive open-world Marvel’s New York using a suite of tightly tuned gameplay mechanics. And, of course, a stunning graphical presentation crafted by the maestros at Insomniac Games.

Whether you’re patrolling the streets of Manhattan, swinging at breakneck speeds across the city, scaling the tallest building you can find, or just mingling with citizens and being a friendly neighbourhood Spider-Man, there’s a lot to appreciate. Insomniac’s attention to detail brings environments to life, while every move in Spidey’s repertoire feels both fluid and powerful.

As we quickly approach 7th September, we’re thrilled to have had the chance to learn more about the advanced technology behind Marvel’s Spider-Man on PlayStation 4. Here is an edited transcript of our interview with Insomniac’s Mike Fitzgerald, Director of Core, and Al Hastings, Chief Architect.

PlayStation.Blog: The open-world you’ve built here is stunning — and it’s impressive to see how fluidly it renders while Spidey swings through it at breakneck speeds. How did you accomplish this from a technical perspective?

Mike Fitzgerald: Like many open-world games, we have to carefully parcel up our world up into small sections, since the whole island of Manhattan would be impossible to fit into the PS4’s memory at one time.

There are approximately 800 square tiles making up our version of Marvel’s New York, each 128 meters square, making the city several times larger than what we built for Sunset Overdrive.

As you swing through it, we’re constantly unloading tiles behind you as well as loading tiles ahead of you—seamlessly transitioning so you’re always exposed to the highest detail level. And when Spider-Man is really pushing his top speed, we’re loading about one new tile every second.

Marvel's Spider-Man

There’s a technical term — temporal injection — that Insomniac has used to great effect in Ratchet & Clank and now in Marvel’s Spider-Man. What is temporal injection, and how have you modified its implementation between your last PS4 Pro project and this one?

Temporal injection is a technique we use to create a full 4K image on the PS4 Pro without rendering every pixel on every single frame. We render slightly more than half the pixels, then “inject” them into a full-sized 4K image. By slightly jittering the locations of the rendered pixels from frame to frame, we can reconstruct a very accurate anti-aliased full 4K image over a handful of frames. There are other teams using similar techniques, but with slight variations in the implementation.

Since Ratchet & Clank, we’ve made dozens of refinements to the algorithm. These serve both to make it run faster and to minimize its shortcomings, like the tendency to make the final 4k image slightly softer than it ought to be.

One of the first things a Spider-Man game needs to get right is the swinging. How did Insomniac approach this development challenge? Can you describe the physics that go into the perfect Spidey swing?

Part of the fun of game development is to give the player the feel of something like swinging between buildings in Manhattan without actually making them do it.

This extends to the physics behind it as well – if we perfectly simulated the dynamics of a person hanging from a rope on 34th Street, the player wouldn’t feel much like a Super Hero. But with neat effects like camera movement, field of view, and careful character animation, we can give the feel of being Spider-Man in an even more convincing way.

There are some nods to realism to make it more convincing, however. For example, every web you shoot to swing from needs to be anchored to an attachment point on the edge of a building or tree. Every piece of architecture in the city is tagged with places webs can attach, and as you swing around, we find the perfect swing points to preserve your momentum and keep you flying towards your destination.

Marvel's Spider-Man

What resolution does Marvel’s Spider-Man render at on PS4 Pro when connected to a 4K display? How does it render when connected to a 1080p display?

On a PS4 Pro, the game outputs to the TV at 4K. Internally, most of the frame is rendered to a 2816×1584 or 2560×1440 image (in expensive situations), then projected over time into the master output 4K image using the “temporal injection” technique mentioned above to accurately anti-alias the picture. If you’ve got a PS4 Pro attached to a 4K TV, this is going to be a beautiful way to show it off.

On a base PS4 or when connected to a 1080p display, the internal representation is 1920×1080 to perfectly match the TV’s expected input.

What details can you share about the HDR implementation for displays that support it? Any details players should watch for when playing with HDR enabled?

We’ve tried to find the right balance with our HDR implementation such that the medium tones and dark tones in the image look the same as they would in non-HDR, but the brightest parts of the image really pop.

Swinging around the city at night or in the rain shows off HDR nicely—the bright lights of the city really stand out against the darker background. As you progress through the game and meet up with some of the more colorful villains Spidey needs to contend with, there are some gorgeous night scenes with bright effects—but you’ll have to play the game to see what I mean.

Marvel's Spider-Man

Anything else players should keep their eyes peeled for while playing the game?

It’s immensely fun to swing at top speed around the city, way above the ground. But every once in a while, just go for a walk at street level and take in some of the little details that Insomniac’s amazing design and environment teams have built into our Manhattan. There are lots of little shout-outs to other Marvel characters, iconic pieces of New York City architecture to climb around, and friends to take selfies with in Times Square.

When you’re done on the ground, run to the top of the tallest building you can find, perch at its highest point, listen to the murmur of the city, and take in the vista around you—especially at sunset. Give your always-busy Super Hero a quick Zen moment before jumping back into crime-fighting.

Do you have any advice for developers who are considering developing for PS4 and PS4 Pro?

Insomniac has always had a hardware-centric engine development approach. If you know the strengths of the hardware you’re developing for, and you take advantage of those strengths as specifically as possible, you can really deliver something of stunning technical quality.

For us on PS4 and PS4 Pro, this meant carefully structuring our memory layout to optimize data flow between the CPU and GPU, using unique features of the GPU hardware in our shader code, carefully scheduling different processes on different cores of the CPU, and much, much more. Getting to develop this title for only the PS4 family of consoles let us be incredibly ambitious with where we could push our technology.

If you want to deliver the best product you can, dig into the documentation, use the profiling tools, think about the quirky bits of the PS4 design, and figure out how your game can take advantage of them.

Marvel's Spider-Man

The story in the game is fantastic, and the cutscenes are full of detail—at times it feels like watching a Marvel movie. How did you need to push your technology to get to this point?

Marvel’s Spider-Man has a notably more realistic art style than our last PS4 title, Ratchet & Clank, which had a cartoon-like look and feel. Beyond changing our lighting model to more accurately reflect physical materials, we also developed specific improvements to hair, eye, and skin rendering systems.

In the animation realm, we added support for large-scale destruction, which our artists put to good use to create some epic Super Hero-scale interactions. Our facial animation system can now accurately model the response of characters’ skin as they speak and emote, and it can represent the individual movement of each of the approximately 60,000 vertices in their faces.

Every character has an extreme-quality model that’s used for close-ups, cutscenes, and scripted action sequences, and we built up the motion- and facial-capture processes we use for those moments to bring out the details of our actors’ performances. The final foe you face in the game is rendered with more than one million polygons—more detail than we’ve ever had for a single character in a game before!

12 Comments
0 Author replies

I’m glad I own a Pro, it sounds like Insomniac really pushed it to it’s limits. Just a few more hours left now… :)

I cant wait to play this game, it’s been getting good reviews

Can’t wait till tomorrow. Really reminds me of a Sucker Punch game, being an exclusive in that type of genre. It looks great and like a lot of fun. Hope they continue with these open world brawler kind of games if not for Ratchet and Clank.

4

I’ve had a keen eye on this game right through development and have to say what you have delivered looks better than I imagined. Really can’t wait to play it.

Also, really hope everything you’ve learned from developing for the PS4/PS4 Pro so far culminates in a Resistance game that makes heads ‘asplode!

Pleeeeeeease?

Can’t wait to play this, looks like Sony and PlayStation are giving us another masterpiece this year. Enjoy everyone its gonna be a busy weekend no doubt about it..

Carnivius_Prime 06 September, 2018 @ 21:47
6

Still got 2 hours and 15 mins to wait in the UK here. I neeeed it noooowwww… I so tired and i gotta stay up til past midnight? Hm maybe I should nap now and set my alarm for midnight? :O

Already playing my version since this morning and loving it so far. Playing in 4K and the detail really pops.

Only issue I’ve seen is the interesting internal window method that shows a different scene behind each pane, but I’ve noticed on a lot of buildings that windows paired together that are supposedly ‘one room’ are showing two different scenes behind each pane.

I pre ordered from Amazon and my pre order code for the bonus content is not working yet anyone able to help me as im getting very annoyed

Carnivius_Prime 07 September, 2018 @ 09:09
9

I love this game. :) Another high quality PS4 exclusive. :D

Their Sunset Overdrive were awesome in 8 player co-op and were a overkill crazy mayhem. With so much going on the screen at the same time, it still never crashes or slowdown.

Co-op is not really suited for a Spider-Man game, but Insomniac is one of the best at co-op games which were also shown in Resistance 2, 8 player co-op on PS3.

10.1

Resistance: Fall of Man also had co-op.

Can you give me a game key for my youtube channel please.

I want to do a giveaway.💻

We close the comments for posts after 30 days.

Edit history