67
FRANCESCO GIORDANA Realtime Architect MARCO GIORDANO Senior Developer Genesis: Real-Time Raytracing in Virtual Production

Genesis: Real-Time Raytracing in Virtual Production · FILM and MR. X, Our VFX studios add VISUAL WONDER and CREATIVE EXPERTISE to film and episodic. LOS ANGELES VANCOUVER TORONTO

  • Upload
    others

  • View
    6

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Genesis: Real-Time Raytracing in Virtual Production · FILM and MR. X, Our VFX studios add VISUAL WONDER and CREATIVE EXPERTISE to film and episodic. LOS ANGELES VANCOUVER TORONTO

FRANCESCO GIORDANARealtime ArchitectMARCO GIORDANOSenior Developer

Genesis:Real-Time Raytracing in

Virtual Production

Page 2: Genesis: Real-Time Raytracing in Virtual Production · FILM and MR. X, Our VFX studios add VISUAL WONDER and CREATIVE EXPERTISE to film and episodic. LOS ANGELES VANCOUVER TORONTO
Page 3: Genesis: Real-Time Raytracing in Virtual Production · FILM and MR. X, Our VFX studios add VISUAL WONDER and CREATIVE EXPERTISE to film and episodic. LOS ANGELES VANCOUVER TORONTO

Each studio brings their own unique approach to the market while leveraging Technicolor’s R&D teams to harness the new technological demands of compelling

Technicolor has the industry’s most prominent portfolio of VFX brands, including MPC, MILL FILM and MR. X, Our VFX studios add VISUAL WONDER and CREATIVE EXPERTISE to film and episodic.

Page 4: Genesis: Real-Time Raytracing in Virtual Production · FILM and MR. X, Our VFX studios add VISUAL WONDER and CREATIVE EXPERTISE to film and episodic. LOS ANGELES VANCOUVER TORONTO
Page 5: Genesis: Real-Time Raytracing in Virtual Production · FILM and MR. X, Our VFX studios add VISUAL WONDER and CREATIVE EXPERTISE to film and episodic. LOS ANGELES VANCOUVER TORONTO

LOS ANGELES

VANCOUVER

TORONTO

MONTREALLONDON

MUMBAI BANGALORE

ADELAIDEMPC FILM

MR X

TECHNICOLOR

MILL FILM

VISUAL EFFECTS

GLOBAL FOOTPRINT

Page 6: Genesis: Real-Time Raytracing in Virtual Production · FILM and MR. X, Our VFX studios add VISUAL WONDER and CREATIVE EXPERTISE to film and episodic. LOS ANGELES VANCOUVER TORONTO

GENESIS

Page 7: Genesis: Real-Time Raytracing in Virtual Production · FILM and MR. X, Our VFX studios add VISUAL WONDER and CREATIVE EXPERTISE to film and episodic. LOS ANGELES VANCOUVER TORONTO
Page 8: Genesis: Real-Time Raytracing in Virtual Production · FILM and MR. X, Our VFX studios add VISUAL WONDER and CREATIVE EXPERTISE to film and episodic. LOS ANGELES VANCOUVER TORONTO

VR SCOUTING

Page 9: Genesis: Real-Time Raytracing in Virtual Production · FILM and MR. X, Our VFX studios add VISUAL WONDER and CREATIVE EXPERTISE to film and episodic. LOS ANGELES VANCOUVER TORONTO

MOCAP

Page 10: Genesis: Real-Time Raytracing in Virtual Production · FILM and MR. X, Our VFX studios add VISUAL WONDER and CREATIVE EXPERTISE to film and episodic. LOS ANGELES VANCOUVER TORONTO

VIRTUAL CAMERA

Page 11: Genesis: Real-Time Raytracing in Virtual Production · FILM and MR. X, Our VFX studios add VISUAL WONDER and CREATIVE EXPERTISE to film and episodic. LOS ANGELES VANCOUVER TORONTO

LAYERING

Page 12: Genesis: Real-Time Raytracing in Virtual Production · FILM and MR. X, Our VFX studios add VISUAL WONDER and CREATIVE EXPERTISE to film and episodic. LOS ANGELES VANCOUVER TORONTO

Phases of Virtual Production

1) Scout the environment, find shots, dress your set

2) Capture performance, add animations

3) Shoot virtual cameras

4) Iterate and layer

Page 13: Genesis: Real-Time Raytracing in Virtual Production · FILM and MR. X, Our VFX studios add VISUAL WONDER and CREATIVE EXPERTISE to film and episodic. LOS ANGELES VANCOUVER TORONTO

LED WALLS

Page 14: Genesis: Real-Time Raytracing in Virtual Production · FILM and MR. X, Our VFX studios add VISUAL WONDER and CREATIVE EXPERTISE to film and episodic. LOS ANGELES VANCOUVER TORONTO

LED Walls

Page 15: Genesis: Real-Time Raytracing in Virtual Production · FILM and MR. X, Our VFX studios add VISUAL WONDER and CREATIVE EXPERTISE to film and episodic. LOS ANGELES VANCOUVER TORONTO

Rendering Challenges

1) Advanced lighting for DP on set

2) Good approximation of final render

3) Final pixels in real time

Page 16: Genesis: Real-Time Raytracing in Virtual Production · FILM and MR. X, Our VFX studios add VISUAL WONDER and CREATIVE EXPERTISE to film and episodic. LOS ANGELES VANCOUVER TORONTO

AREA LIGHTS

Page 17: Genesis: Real-Time Raytracing in Virtual Production · FILM and MR. X, Our VFX studios add VISUAL WONDER and CREATIVE EXPERTISE to film and episodic. LOS ANGELES VANCOUVER TORONTO

VXGI

Page 18: Genesis: Real-Time Raytracing in Virtual Production · FILM and MR. X, Our VFX studios add VISUAL WONDER and CREATIVE EXPERTISE to film and episodic. LOS ANGELES VANCOUVER TORONTO

VOLUMETRIC LIGHTING

Page 19: Genesis: Real-Time Raytracing in Virtual Production · FILM and MR. X, Our VFX studios add VISUAL WONDER and CREATIVE EXPERTISE to film and episodic. LOS ANGELES VANCOUVER TORONTO

DEPTH OF FIELD

Page 20: Genesis: Real-Time Raytracing in Virtual Production · FILM and MR. X, Our VFX studios add VISUAL WONDER and CREATIVE EXPERTISE to film and episodic. LOS ANGELES VANCOUVER TORONTO

Not enough

• Need more parity with lighting in post

• Need raytracing:

• Live link with a path tracer

• Raytracing in engine

Page 21: Genesis: Real-Time Raytracing in Virtual Production · FILM and MR. X, Our VFX studios add VISUAL WONDER and CREATIVE EXPERTISE to film and episodic. LOS ANGELES VANCOUVER TORONTO

Live-Link with Prism

Page 22: Genesis: Real-Time Raytracing in Virtual Production · FILM and MR. X, Our VFX studios add VISUAL WONDER and CREATIVE EXPERTISE to film and episodic. LOS ANGELES VANCOUVER TORONTO

S9197 – Prism & RTX

Victor Yudin, Lead Software Developer, Mill Film

Wednesday, Mar 20, 9:00 AM - 09:50 AMSJCC Room 230B (Concourse Level)

Page 23: Genesis: Real-Time Raytracing in Virtual Production · FILM and MR. X, Our VFX studios add VISUAL WONDER and CREATIVE EXPERTISE to film and episodic. LOS ANGELES VANCOUVER TORONTO

Live link with RenderMan XPU

• Same framework as Prism (Millefiori)

• Prism is a delegate for Hydra, can replace with RenderMan delegate

• USD enables loading the scene both in engine and in Millefiori

• USD Shade for transferring materals, but still needs lots of work (MaterialX, MDL)

Page 24: Genesis: Real-Time Raytracing in Virtual Production · FILM and MR. X, Our VFX studios add VISUAL WONDER and CREATIVE EXPERTISE to film and episodic. LOS ANGELES VANCOUVER TORONTO

Raytracing in Unity HDRP

Page 25: Genesis: Real-Time Raytracing in Virtual Production · FILM and MR. X, Our VFX studios add VISUAL WONDER and CREATIVE EXPERTISE to film and episodic. LOS ANGELES VANCOUVER TORONTO
Page 26: Genesis: Real-Time Raytracing in Virtual Production · FILM and MR. X, Our VFX studios add VISUAL WONDER and CREATIVE EXPERTISE to film and episodic. LOS ANGELES VANCOUVER TORONTO
Page 27: Genesis: Real-Time Raytracing in Virtual Production · FILM and MR. X, Our VFX studios add VISUAL WONDER and CREATIVE EXPERTISE to film and episodic. LOS ANGELES VANCOUVER TORONTO
Page 28: Genesis: Real-Time Raytracing in Virtual Production · FILM and MR. X, Our VFX studios add VISUAL WONDER and CREATIVE EXPERTISE to film and episodic. LOS ANGELES VANCOUVER TORONTO
Page 29: Genesis: Real-Time Raytracing in Virtual Production · FILM and MR. X, Our VFX studios add VISUAL WONDER and CREATIVE EXPERTISE to film and episodic. LOS ANGELES VANCOUVER TORONTO
Page 30: Genesis: Real-Time Raytracing in Virtual Production · FILM and MR. X, Our VFX studios add VISUAL WONDER and CREATIVE EXPERTISE to film and episodic. LOS ANGELES VANCOUVER TORONTO

DXR INTEGRATION DETAILS

Page 31: Genesis: Real-Time Raytracing in Virtual Production · FILM and MR. X, Our VFX studios add VISUAL WONDER and CREATIVE EXPERTISE to film and episodic. LOS ANGELES VANCOUVER TORONTO

The goal:

- Leverage DXR to improve the quality of our

renders

- Different FPS targets based on the use case

The challenges:

- New to DX12 and DXR

- Small team

- Unity low level integration

- New tech, with possible bugs to deal with

RAYTRACING IN GENESIS

Page 32: Genesis: Real-Time Raytracing in Virtual Production · FILM and MR. X, Our VFX studios add VISUAL WONDER and CREATIVE EXPERTISE to film and episodic. LOS ANGELES VANCOUVER TORONTO

AMBIENT OCCLUSION

Page 33: Genesis: Real-Time Raytracing in Virtual Production · FILM and MR. X, Our VFX studios add VISUAL WONDER and CREATIVE EXPERTISE to film and episodic. LOS ANGELES VANCOUVER TORONTO

AMBIENT OCCLUSION

First effect implemented

Plugin: boils down to a C interface dll

Faced the first issues with Unity integration:

• Data marshalling

• Synchronization

• Delayed reaction of editor events

• Issue with resources lifetime

• Integration of gameworks denoisers

Page 34: Genesis: Real-Time Raytracing in Virtual Production · FILM and MR. X, Our VFX studios add VISUAL WONDER and CREATIVE EXPERTISE to film and episodic. LOS ANGELES VANCOUVER TORONTO
Page 35: Genesis: Real-Time Raytracing in Virtual Production · FILM and MR. X, Our VFX studios add VISUAL WONDER and CREATIVE EXPERTISE to film and episodic. LOS ANGELES VANCOUVER TORONTO
Page 36: Genesis: Real-Time Raytracing in Virtual Production · FILM and MR. X, Our VFX studios add VISUAL WONDER and CREATIVE EXPERTISE to film and episodic. LOS ANGELES VANCOUVER TORONTO
Page 37: Genesis: Real-Time Raytracing in Virtual Production · FILM and MR. X, Our VFX studios add VISUAL WONDER and CREATIVE EXPERTISE to film and episodic. LOS ANGELES VANCOUVER TORONTO
Page 38: Genesis: Real-Time Raytracing in Virtual Production · FILM and MR. X, Our VFX studios add VISUAL WONDER and CREATIVE EXPERTISE to film and episodic. LOS ANGELES VANCOUVER TORONTO
Page 39: Genesis: Real-Time Raytracing in Virtual Production · FILM and MR. X, Our VFX studios add VISUAL WONDER and CREATIVE EXPERTISE to film and episodic. LOS ANGELES VANCOUVER TORONTO
Page 40: Genesis: Real-Time Raytracing in Virtual Production · FILM and MR. X, Our VFX studios add VISUAL WONDER and CREATIVE EXPERTISE to film and episodic. LOS ANGELES VANCOUVER TORONTO

AO: TIMINGS

0 5 10 15 20 25

1 spp

4spp

16 spp

AO

raytracing denoise

1 spp 4spp 16 spp

raytracing 2.2 4.3 17.4

denoise 2.1 2.1 2.1

Page 41: Genesis: Real-Time Raytracing in Virtual Production · FILM and MR. X, Our VFX studios add VISUAL WONDER and CREATIVE EXPERTISE to film and episodic. LOS ANGELES VANCOUVER TORONTO
Page 42: Genesis: Real-Time Raytracing in Virtual Production · FILM and MR. X, Our VFX studios add VISUAL WONDER and CREATIVE EXPERTISE to film and episodic. LOS ANGELES VANCOUVER TORONTO

HDRP INTEGRATION

• Unity use an AO renderer manager

• Harder to integrate without drilling down in

the call stack

• Opted for simpler blit over Unity texture

• Render moves on as usual

• No tricks for increasing contrast

Page 43: Genesis: Real-Time Raytracing in Virtual Production · FILM and MR. X, Our VFX studios add VISUAL WONDER and CREATIVE EXPERTISE to film and episodic. LOS ANGELES VANCOUVER TORONTO

SOFT SHADOWS

Page 44: Genesis: Real-Time Raytracing in Virtual Production · FILM and MR. X, Our VFX studios add VISUAL WONDER and CREATIVE EXPERTISE to film and episodic. LOS ANGELES VANCOUVER TORONTO

AMBIENT OCCLUSION

Page 45: Genesis: Real-Time Raytracing in Virtual Production · FILM and MR. X, Our VFX studios add VISUAL WONDER and CREATIVE EXPERTISE to film and episodic. LOS ANGELES VANCOUVER TORONTO

SOFT SHADOWS

• Heavy use of area lights

• Previously using in house solution with

raymarched depth map.

Page 46: Genesis: Real-Time Raytracing in Virtual Production · FILM and MR. X, Our VFX studios add VISUAL WONDER and CREATIVE EXPERTISE to film and episodic. LOS ANGELES VANCOUVER TORONTO
Page 47: Genesis: Real-Time Raytracing in Virtual Production · FILM and MR. X, Our VFX studios add VISUAL WONDER and CREATIVE EXPERTISE to film and episodic. LOS ANGELES VANCOUVER TORONTO
Page 48: Genesis: Real-Time Raytracing in Virtual Production · FILM and MR. X, Our VFX studios add VISUAL WONDER and CREATIVE EXPERTISE to film and episodic. LOS ANGELES VANCOUVER TORONTO
Page 49: Genesis: Real-Time Raytracing in Virtual Production · FILM and MR. X, Our VFX studios add VISUAL WONDER and CREATIVE EXPERTISE to film and episodic. LOS ANGELES VANCOUVER TORONTO
Page 50: Genesis: Real-Time Raytracing in Virtual Production · FILM and MR. X, Our VFX studios add VISUAL WONDER and CREATIVE EXPERTISE to film and episodic. LOS ANGELES VANCOUVER TORONTO

HDRP INTEGRATION

• Did not find an easy way to get screen-space shadows

• Modified HDRP shader binding extra shadow map

• Multiply final lighting value by shadow

• Crude approximation

• Needed to extract texture from denoiser to C# texture to use

it in Unity

Page 51: Genesis: Real-Time Raytracing in Virtual Production · FILM and MR. X, Our VFX studios add VISUAL WONDER and CREATIVE EXPERTISE to film and episodic. LOS ANGELES VANCOUVER TORONTO

Soft Shadows

Experimenting with several ways to combine

multiple are alights

Page 52: Genesis: Real-Time Raytracing in Virtual Production · FILM and MR. X, Our VFX studios add VISUAL WONDER and CREATIVE EXPERTISE to film and episodic. LOS ANGELES VANCOUVER TORONTO

AMBIENT OCCLUSION

Page 53: Genesis: Real-Time Raytracing in Virtual Production · FILM and MR. X, Our VFX studios add VISUAL WONDER and CREATIVE EXPERTISE to film and episodic. LOS ANGELES VANCOUVER TORONTO
Page 54: Genesis: Real-Time Raytracing in Virtual Production · FILM and MR. X, Our VFX studios add VISUAL WONDER and CREATIVE EXPERTISE to film and episodic. LOS ANGELES VANCOUVER TORONTO

Timings1 spp 4 spp 16 spp

raytracing 3.29 10.41 36.11

denoise 4.08 4.01 4.06

0 5 10 15 20 25 30 35 40 45

1 spp

4 spp

16 spp

Shadows

raytracing denoise

Page 55: Genesis: Real-Time Raytracing in Virtual Production · FILM and MR. X, Our VFX studios add VISUAL WONDER and CREATIVE EXPERTISE to film and episodic. LOS ANGELES VANCOUVER TORONTO
Page 56: Genesis: Real-Time Raytracing in Virtual Production · FILM and MR. X, Our VFX studios add VISUAL WONDER and CREATIVE EXPERTISE to film and episodic. LOS ANGELES VANCOUVER TORONTO

REFLECTIONS

Page 57: Genesis: Real-Time Raytracing in Virtual Production · FILM and MR. X, Our VFX studios add VISUAL WONDER and CREATIVE EXPERTISE to film and episodic. LOS ANGELES VANCOUVER TORONTO

Reflections

Most tricky effect to deal with:

• No way to evaluate a Unity shader on hit

• Marshalling textures and textures lifetime

• Lighting

Page 58: Genesis: Real-Time Raytracing in Virtual Production · FILM and MR. X, Our VFX studios add VISUAL WONDER and CREATIVE EXPERTISE to film and episodic. LOS ANGELES VANCOUVER TORONTO
Page 59: Genesis: Real-Time Raytracing in Virtual Production · FILM and MR. X, Our VFX studios add VISUAL WONDER and CREATIVE EXPERTISE to film and episodic. LOS ANGELES VANCOUVER TORONTO
Page 60: Genesis: Real-Time Raytracing in Virtual Production · FILM and MR. X, Our VFX studios add VISUAL WONDER and CREATIVE EXPERTISE to film and episodic. LOS ANGELES VANCOUVER TORONTO

Reflections

• One bounce only

• No texture marshalling

• Investigating bindless textures

• Only tracking directional light for simple

Phong model

• Extra shadow ray

Page 61: Genesis: Real-Time Raytracing in Virtual Production · FILM and MR. X, Our VFX studios add VISUAL WONDER and CREATIVE EXPERTISE to film and episodic. LOS ANGELES VANCOUVER TORONTO

Timings

0 2 4 6 8 10 12 14 16 18 20

1 SPP

4 SPP

16 SPP Reflections

1 SPP 4 SPP 16 SPP

2.3 3.01 17.9

Page 62: Genesis: Real-Time Raytracing in Virtual Production · FILM and MR. X, Our VFX studios add VISUAL WONDER and CREATIVE EXPERTISE to film and episodic. LOS ANGELES VANCOUVER TORONTO
Page 63: Genesis: Real-Time Raytracing in Virtual Production · FILM and MR. X, Our VFX studios add VISUAL WONDER and CREATIVE EXPERTISE to film and episodic. LOS ANGELES VANCOUVER TORONTO

RECAP

• DXR allowed us to step up quality of renders

quite a bit

• Steep learning curve for DX12 and DXR

• Tricky Unity integration

• Resource life time

• Editor events

• Render loop sync

Page 64: Genesis: Real-Time Raytracing in Virtual Production · FILM and MR. X, Our VFX studios add VISUAL WONDER and CREATIVE EXPERTISE to film and episodic. LOS ANGELES VANCOUVER TORONTO

WHAT IS NEXT

• Investigate new Unity DXR integration

• Focus more on effects rather than

plumbing

• Performance, performance, performance

Page 65: Genesis: Real-Time Raytracing in Virtual Production · FILM and MR. X, Our VFX studios add VISUAL WONDER and CREATIVE EXPERTISE to film and episodic. LOS ANGELES VANCOUVER TORONTO

Special thanks to the twitter community for RTX and game dev help:

Matt Pettineo - @MyNameIsMJPAlex Tardif - @longboolPeter Morley - @Biblo_ShwagSebastian Altonen - @SebAltonenSebastien Lagarde - @SebLagardeKostas Anagnostou - @KostasAAAJesper Flicks - @catlikecoding

Special thanks to Nvidia and the outstanding Microsoft Pix Team

Page 66: Genesis: Real-Time Raytracing in Virtual Production · FILM and MR. X, Our VFX studios add VISUAL WONDER and CREATIVE EXPERTISE to film and episodic. LOS ANGELES VANCOUVER TORONTO

THANK YOU!

Page 67: Genesis: Real-Time Raytracing in Virtual Production · FILM and MR. X, Our VFX studios add VISUAL WONDER and CREATIVE EXPERTISE to film and episodic. LOS ANGELES VANCOUVER TORONTO

THE ADVENTURE IS ABOUT TO BEGIN…

WE’RE HIRING!

APPLY AT www.moving-picture.com www.mpc-rnd.com

OR EMAIL [email protected]