path tracing in paraview-optix: rtx for scientific visualization · 2019. 3. 29. · unreal engine...

65
Tim Biedert Senior Developer Technology Engineer Mathias Hummel Senior Developer Technology Engineer Path Tracing in ParaView - OptiX : RTX for Scientific Visualization March 21, GTC San Jose 2019

Upload: others

Post on 29-Aug-2020

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Path Tracing in ParaView-OptiX: RTX for Scientific Visualization · 2019. 3. 29. · Unreal Engine "Reflections" Tech Demo (Star Wars) - GDC 2018 44 „Project Sol" Tech Demo

Tim Biedert Senior Developer Technology Engineer

Mathias Hummel Senior Developer Technology Engineer

Path Tracing in ParaView-OptiX: RTX for Scientific Visualization

March 21, GTC San Jose 2019

Page 2: Path Tracing in ParaView-OptiX: RTX for Scientific Visualization · 2019. 3. 29. · Unreal Engine "Reflections" Tech Demo (Star Wars) - GDC 2018 44 „Project Sol" Tech Demo

2

Agenda

Introduction to RTX

Pathtracing in ParaView/VTK

Physically-Based Materials

Denoisers

Remote Visualization

Page 3: Path Tracing in ParaView-OptiX: RTX for Scientific Visualization · 2019. 3. 29. · Unreal Engine "Reflections" Tech Demo (Star Wars) - GDC 2018 44 „Project Sol" Tech Demo

3

RTX ON

Page 4: Path Tracing in ParaView-OptiX: RTX for Scientific Visualization · 2019. 3. 29. · Unreal Engine "Reflections" Tech Demo (Star Wars) - GDC 2018 44 „Project Sol" Tech Demo

44Unreal Engine "Reflections" Tech Demo (Star Wars) - GDC 2018

Page 5: Path Tracing in ParaView-OptiX: RTX for Scientific Visualization · 2019. 3. 29. · Unreal Engine "Reflections" Tech Demo (Star Wars) - GDC 2018 44 „Project Sol" Tech Demo

55„Project Sol" Tech Demo - SIGGRAPH 2018

Page 6: Path Tracing in ParaView-OptiX: RTX for Scientific Visualization · 2019. 3. 29. · Unreal Engine "Reflections" Tech Demo (Star Wars) - GDC 2018 44 „Project Sol" Tech Demo

66„The Speed of Light" Tech Demo - SIGGRAPH 2018

Page 7: Path Tracing in ParaView-OptiX: RTX for Scientific Visualization · 2019. 3. 29. · Unreal Engine "Reflections" Tech Demo (Star Wars) - GDC 2018 44 „Project Sol" Tech Demo

77Battlefield V

Page 8: Path Tracing in ParaView-OptiX: RTX for Scientific Visualization · 2019. 3. 29. · Unreal Engine "Reflections" Tech Demo (Star Wars) - GDC 2018 44 „Project Sol" Tech Demo

88

Page 9: Path Tracing in ParaView-OptiX: RTX for Scientific Visualization · 2019. 3. 29. · Unreal Engine "Reflections" Tech Demo (Star Wars) - GDC 2018 44 „Project Sol" Tech Demo

9

RAYTRACING IN PARAVIEW

Page 10: Path Tracing in ParaView-OptiX: RTX for Scientific Visualization · 2019. 3. 29. · Unreal Engine "Reflections" Tech Demo (Star Wars) - GDC 2018 44 „Project Sol" Tech Demo

10

KITWARE PARAVIEWOpen-Source (Distributed) Visualization Package

NVIDIA IndeX PluginOpenGL

Page 11: Path Tracing in ParaView-OptiX: RTX for Scientific Visualization · 2019. 3. 29. · Unreal Engine "Reflections" Tech Demo (Star Wars) - GDC 2018 44 „Project Sol" Tech Demo

11

VTK: VISUALIZATION TOOLKIT

Process data using pipelines made up of filters

Forms the foundation of ParaView

OpenGL

Software raytracing

Open Source Scientific Visualization Toolbox

Page 12: Path Tracing in ParaView-OptiX: RTX for Scientific Visualization · 2019. 3. 29. · Unreal Engine "Reflections" Tech Demo (Star Wars) - GDC 2018 44 „Project Sol" Tech Demo

1212ParaView „Urban Airflow" Tech Demo - SIGGRAPH 2018

Page 13: Path Tracing in ParaView-OptiX: RTX for Scientific Visualization · 2019. 3. 29. · Unreal Engine "Reflections" Tech Demo (Star Wars) - GDC 2018 44 „Project Sol" Tech Demo

1313ParaView „Weather Simulation in a Box" Tech Demo – SC 2018

Page 14: Path Tracing in ParaView-OptiX: RTX for Scientific Visualization · 2019. 3. 29. · Unreal Engine "Reflections" Tech Demo (Star Wars) - GDC 2018 44 „Project Sol" Tech Demo

14

VISRTX + MDL

Page 15: Path Tracing in ParaView-OptiX: RTX for Scientific Visualization · 2019. 3. 29. · Unreal Engine "Reflections" Tech Demo (Star Wars) - GDC 2018 44 „Project Sol" Tech Demo

15

VISRTXVisualization Framework Powered by NVIDIA RTX Technology

Progressive forward pathtracer with NEE/MIS

Hardware-acceleration through OptiX

MDL for physically-based materials

AI denoiser

Area lights, Depth of Field, Tone mapping, etc.

Open-source C++ library

Feedback welcome (issues, PRs, e-mail)!

https://github.com/NVIDIA/VisRTX

Page 16: Path Tracing in ParaView-OptiX: RTX for Scientific Visualization · 2019. 3. 29. · Unreal Engine "Reflections" Tech Demo (Star Wars) - GDC 2018 44 „Project Sol" Tech Demo

16

Page 17: Path Tracing in ParaView-OptiX: RTX for Scientific Visualization · 2019. 3. 29. · Unreal Engine "Reflections" Tech Demo (Star Wars) - GDC 2018 44 „Project Sol" Tech Demo

17

Page 18: Path Tracing in ParaView-OptiX: RTX for Scientific Visualization · 2019. 3. 29. · Unreal Engine "Reflections" Tech Demo (Star Wars) - GDC 2018 44 „Project Sol" Tech Demo

18

Page 19: Path Tracing in ParaView-OptiX: RTX for Scientific Visualization · 2019. 3. 29. · Unreal Engine "Reflections" Tech Demo (Star Wars) - GDC 2018 44 „Project Sol" Tech Demo

19

Page 20: Path Tracing in ParaView-OptiX: RTX for Scientific Visualization · 2019. 3. 29. · Unreal Engine "Reflections" Tech Demo (Star Wars) - GDC 2018 44 „Project Sol" Tech Demo

20

VISRTX + PARAVIEW

VisRTX open-source on GitHub

Shipped with upcoming ParaView release

• No additional steps necessary!

Page 21: Path Tracing in ParaView-OptiX: RTX for Scientific Visualization · 2019. 3. 29. · Unreal Engine "Reflections" Tech Demo (Star Wars) - GDC 2018 44 „Project Sol" Tech Demo

21

AGENDA

Implant simulation data courtesy Jean Favre, CSCS

Page 22: Path Tracing in ParaView-OptiX: RTX for Scientific Visualization · 2019. 3. 29. · Unreal Engine "Reflections" Tech Demo (Star Wars) - GDC 2018 44 „Project Sol" Tech Demo

22

Data courtesy of Électricité de France / Kitware SAS

Page 23: Path Tracing in ParaView-OptiX: RTX for Scientific Visualization · 2019. 3. 29. · Unreal Engine "Reflections" Tech Demo (Star Wars) - GDC 2018 44 „Project Sol" Tech Demo

23

SPECFEM3D NVIDIA booth demoGTC 2019

Page 24: Path Tracing in ParaView-OptiX: RTX for Scientific Visualization · 2019. 3. 29. · Unreal Engine "Reflections" Tech Demo (Star Wars) - GDC 2018 44 „Project Sol" Tech Demo

24

SPECFEM3D NVIDIA booth demoGTC 2019

Page 25: Path Tracing in ParaView-OptiX: RTX for Scientific Visualization · 2019. 3. 29. · Unreal Engine "Reflections" Tech Demo (Star Wars) - GDC 2018 44 „Project Sol" Tech Demo

25

SPECFEM3D NVIDIA booth demoGTC 2019

Page 26: Path Tracing in ParaView-OptiX: RTX for Scientific Visualization · 2019. 3. 29. · Unreal Engine "Reflections" Tech Demo (Star Wars) - GDC 2018 44 „Project Sol" Tech Demo

26

The NVIDIA Material Definition Language (MDL)

is technology developed by NVIDIA

to define physically-based materials

for physically-based rendering solutions.

Page 27: Path Tracing in ParaView-OptiX: RTX for Scientific Visualization · 2019. 3. 29. · Unreal Engine "Reflections" Tech Demo (Star Wars) - GDC 2018 44 „Project Sol" Tech Demo

27Iray Photoreal

Page 28: Path Tracing in ParaView-OptiX: RTX for Scientific Visualization · 2019. 3. 29. · Unreal Engine "Reflections" Tech Demo (Star Wars) - GDC 2018 44 „Project Sol" Tech Demo

28Iray Photoreal

Page 29: Path Tracing in ParaView-OptiX: RTX for Scientific Visualization · 2019. 3. 29. · Unreal Engine "Reflections" Tech Demo (Star Wars) - GDC 2018 44 „Project Sol" Tech Demo

29Iray Photoreal

Page 30: Path Tracing in ParaView-OptiX: RTX for Scientific Visualization · 2019. 3. 29. · Unreal Engine "Reflections" Tech Demo (Star Wars) - GDC 2018 44 „Project Sol" Tech Demo

30courtesy Harley Davidson

Page 31: Path Tracing in ParaView-OptiX: RTX for Scientific Visualization · 2019. 3. 29. · Unreal Engine "Reflections" Tech Demo (Star Wars) - GDC 2018 44 „Project Sol" Tech Demo

31

Page 32: Path Tracing in ParaView-OptiX: RTX for Scientific Visualization · 2019. 3. 29. · Unreal Engine "Reflections" Tech Demo (Star Wars) - GDC 2018 44 „Project Sol" Tech Demo

32

Page 33: Path Tracing in ParaView-OptiX: RTX for Scientific Visualization · 2019. 3. 29. · Unreal Engine "Reflections" Tech Demo (Star Wars) - GDC 2018 44 „Project Sol" Tech Demo

33

vMaterialsFree Catalog of Real-World Materials

Described in MDL

Designed and verified by NVIDIA material specialists

Can be used as-is …

… or modified and layered to create custom materials

Example: Dust layer -> Scratch layer -> Metal layer

https://developer.nvidia.com/vmaterials

Page 34: Path Tracing in ParaView-OptiX: RTX for Scientific Visualization · 2019. 3. 29. · Unreal Engine "Reflections" Tech Demo (Star Wars) - GDC 2018 44 „Project Sol" Tech Demo

34NVIDIA vMaterials with Iray Photoreal

Page 35: Path Tracing in ParaView-OptiX: RTX for Scientific Visualization · 2019. 3. 29. · Unreal Engine "Reflections" Tech Demo (Star Wars) - GDC 2018 44 „Project Sol" Tech Demo

35

Matching the Appearance of a Single Material Within Different Rendering Techniques

Page 36: Path Tracing in ParaView-OptiX: RTX for Scientific Visualization · 2019. 3. 29. · Unreal Engine "Reflections" Tech Demo (Star Wars) - GDC 2018 44 „Project Sol" Tech Demo

36

PathtracerInteractive RaytracerRealtime Rasterizer

One Scene for Different Renderers

Share scene and

MDL materials for a

consistent look

Switching renderers

with no scene

modifications

Page 37: Path Tracing in ParaView-OptiX: RTX for Scientific Visualization · 2019. 3. 29. · Unreal Engine "Reflections" Tech Demo (Star Wars) - GDC 2018 44 „Project Sol" Tech Demo

37

Iray Realtime

OpenGL Rasterizer

Iray Interactive

Ray Tracer, Direct Illumination

Iray Photoreal

Path Tracer

Page 38: Path Tracing in ParaView-OptiX: RTX for Scientific Visualization · 2019. 3. 29. · Unreal Engine "Reflections" Tech Demo (Star Wars) - GDC 2018 44 „Project Sol" Tech Demo

38

DENOISERS / REALTIME RAYTRACING

Page 39: Path Tracing in ParaView-OptiX: RTX for Scientific Visualization · 2019. 3. 29. · Unreal Engine "Reflections" Tech Demo (Star Wars) - GDC 2018 44 „Project Sol" Tech Demo

39

OPTIX AI DENOISER

GPU-accelerated artificial intelligence approach

Ships with OptiX

Last-frame denoiser after 10+ samples

Publication: Interactive Reconstruction of Monte Carlo Image Sequences using a Recurrent Denoising Autoencoder - SIGGRAPH 2017

Recurrent Denoising Autoencoder

Page 40: Path Tracing in ParaView-OptiX: RTX for Scientific Visualization · 2019. 3. 29. · Unreal Engine "Reflections" Tech Demo (Star Wars) - GDC 2018 44 „Project Sol" Tech Demo

40

OPTIX AI DENOISERIn VisRTX / ParaView

Without Denoiser With Denoiser

Page 41: Path Tracing in ParaView-OptiX: RTX for Scientific Visualization · 2019. 3. 29. · Unreal Engine "Reflections" Tech Demo (Star Wars) - GDC 2018 44 „Project Sol" Tech Demo

41

FUN IMAGE ON TWITTER

Page 42: Path Tracing in ParaView-OptiX: RTX for Scientific Visualization · 2019. 3. 29. · Unreal Engine "Reflections" Tech Demo (Star Wars) - GDC 2018 44 „Project Sol" Tech Demo

42

NOISE IN RAY TRACING RENDERINGWhere do the fireflies come from?

The rendering equation is solved with Monte Carlo sampling

𝐿 𝜔𝑜 = න𝛿

𝐿 𝜔𝑖 𝑓 𝜔𝑜, 𝜔𝑖 |𝜔𝑖 ∙ 𝑛|𝑑𝜔𝑖 ≈

𝑖=0

𝑛

𝐿 𝜔𝑖 𝑓 𝜔𝑜,𝜔𝑖 𝜔𝑖 ∙ 𝑛 /𝑝(𝜔𝑖)

Every term in the estimator is a complicated function over the hemisphere

● Incoming radiance, visibility, BRDF, and sampling Pdf

Insufficient sampling leads to high variance in the estimator

Page 43: Path Tracing in ParaView-OptiX: RTX for Scientific Visualization · 2019. 3. 29. · Unreal Engine "Reflections" Tech Demo (Star Wars) - GDC 2018 44 „Project Sol" Tech Demo

43

PATH TRACED 1SPP

Page 44: Path Tracing in ParaView-OptiX: RTX for Scientific Visualization · 2019. 3. 29. · Unreal Engine "Reflections" Tech Demo (Star Wars) - GDC 2018 44 „Project Sol" Tech Demo

44

RAY TRACING WITH 1SPP (OR LESS)

with Advanced Denoising

Shadows Reflections & Specular Ambient Occlusion Global Illumination

Page 45: Path Tracing in ParaView-OptiX: RTX for Scientific Visualization · 2019. 3. 29. · Unreal Engine "Reflections" Tech Demo (Star Wars) - GDC 2018 44 „Project Sol" Tech Demo

45

USED IN MULTIPLE DEMOS

Star Wars Reflections

RTX Demo Porsche 70 Trailer SOL Rosewood Bangkok

Page 46: Path Tracing in ParaView-OptiX: RTX for Scientific Visualization · 2019. 3. 29. · Unreal Engine "Reflections" Tech Demo (Star Wars) - GDC 2018 44 „Project Sol" Tech Demo

46

GROUND TRUTH

Page 47: Path Tracing in ParaView-OptiX: RTX for Scientific Visualization · 2019. 3. 29. · Unreal Engine "Reflections" Tech Demo (Star Wars) - GDC 2018 44 „Project Sol" Tech Demo

47

1SPP RAY TRACED REFLECTIONS

Page 48: Path Tracing in ParaView-OptiX: RTX for Scientific Visualization · 2019. 3. 29. · Unreal Engine "Reflections" Tech Demo (Star Wars) - GDC 2018 44 „Project Sol" Tech Demo

48

1SPP RAY TRACED REFLECTIONS + DENOISING

Page 49: Path Tracing in ParaView-OptiX: RTX for Scientific Visualization · 2019. 3. 29. · Unreal Engine "Reflections" Tech Demo (Star Wars) - GDC 2018 44 „Project Sol" Tech Demo

49

Ground Truth

Page 50: Path Tracing in ParaView-OptiX: RTX for Scientific Visualization · 2019. 3. 29. · Unreal Engine "Reflections" Tech Demo (Star Wars) - GDC 2018 44 „Project Sol" Tech Demo

50

1spp Ray Traced Global Illumination

Page 51: Path Tracing in ParaView-OptiX: RTX for Scientific Visualization · 2019. 3. 29. · Unreal Engine "Reflections" Tech Demo (Star Wars) - GDC 2018 44 „Project Sol" Tech Demo

51

1spp Ray Traced Global Illumination + Denoising

Page 52: Path Tracing in ParaView-OptiX: RTX for Scientific Visualization · 2019. 3. 29. · Unreal Engine "Reflections" Tech Demo (Star Wars) - GDC 2018 44 „Project Sol" Tech Demo

52

GI Denoising Video

Inserting video: Insert/Video/Video from File.Insert video by browsing your directory and selecting OK.

File types that works best in PowerPoint are mp4 or wmv

Page 53: Path Tracing in ParaView-OptiX: RTX for Scientific Visualization · 2019. 3. 29. · Unreal Engine "Reflections" Tech Demo (Star Wars) - GDC 2018 44 „Project Sol" Tech Demo

53

Indirect Diffuse in Glossy Reflections

Page 54: Path Tracing in ParaView-OptiX: RTX for Scientific Visualization · 2019. 3. 29. · Unreal Engine "Reflections" Tech Demo (Star Wars) - GDC 2018 44 „Project Sol" Tech Demo

54

GAMEWORKS FOR RAY TRACING

Area Shadows

Spherical/Rect./Directional Lights, Soft Shadows

Glossy Reflections

Inter-Object Reflections, Mirror to Glossy

Ambient Occlusion

High Quality Contact Hardening, Support for off-screen objects

Early Access Program:

https://developer.nvidia.com/gameworks-ray-tracing

Denoiser Module

Page 55: Path Tracing in ParaView-OptiX: RTX for Scientific Visualization · 2019. 3. 29. · Unreal Engine "Reflections" Tech Demo (Star Wars) - GDC 2018 44 „Project Sol" Tech Demo

55

REMOTE VISUALIZATION

Page 56: Path Tracing in ParaView-OptiX: RTX for Scientific Visualization · 2019. 3. 29. · Unreal Engine "Reflections" Tech Demo (Star Wars) - GDC 2018 44 „Project Sol" Tech Demo

56

VISUALIZATION TRENDSNew Approaches Required to Solve the

Remoting Challenge

Increasing data set sizes

In-situ scenarios

Interactive workflows

New display technologies

Globally distributed user bases

Page 57: Path Tracing in ParaView-OptiX: RTX for Scientific Visualization · 2019. 3. 29. · Unreal Engine "Reflections" Tech Demo (Star Wars) - GDC 2018 44 „Project Sol" Tech Demo

57

STREAMINGBenefits of Rendering on Supercomputer

Scale with SimulationNo Need to Scale Separate Vis Cluster

Cheaper Infrastructure All Heavy Lifting Performed on the Server

Interactive High-Fidelity Rendering Improves Perception and Scientific Insight

Page 58: Path Tracing in ParaView-OptiX: RTX for Scientific Visualization · 2019. 3. 29. · Unreal Engine "Reflections" Tech Demo (Star Wars) - GDC 2018 44 „Project Sol" Tech Demo

58

FLEXIBLE GPU ACCELERATION ARCHITECTURE

* Diagram represents support for the NVIDIA Turing GPU family

** 4:2:2 is not natively supported on HW

*** Support is codec dependent

Independent CUDA Cores & Video Engines

Page 59: Path Tracing in ParaView-OptiX: RTX for Scientific Visualization · 2019. 3. 29. · Unreal Engine "Reflections" Tech Demo (Star Wars) - GDC 2018 44 „Project Sol" Tech Demo

59

VIDEO CODEC SDKAPIs For Hardware Accelerated Video Encode/Decode

What’s New with Turing GPUs and Video Codec SDK 9.0

• Up to 3x decode throughput with multiple decoders on professional cards (Quadro & Tesla)

• Higher quality encoding - H.264 & H.265

• Higher encoding efficiency (15% lower bitrate than Pascal)

• HEVC B-frames support

• HEVC 4:4:4 decoding support

NVIDIA GeForce Now is made possible by leveraging NVENC in the datacenter and streaming the result to end clients

https://developer.nvidia.com/nvidia-video-codec-sdk

Page 60: Path Tracing in ParaView-OptiX: RTX for Scientific Visualization · 2019. 3. 29. · Unreal Engine "Reflections" Tech Demo (Star Wars) - GDC 2018 44 „Project Sol" Tech Demo

60

NVPIPE

Simple C API

H.264, HEVC

RGBA32, uint4, uint8, uint16

Lossy, Lossless

Host/Device memory, OpenGL textures/PBOs

https://github.com/NVIDIA/NvPipe

Issues? Suggestions? Feedback welcome!

A Lightweight Video Codec SDK Wrapper

Page 61: Path Tracing in ParaView-OptiX: RTX for Scientific Visualization · 2019. 3. 29. · Unreal Engine "Reflections" Tech Demo (Star Wars) - GDC 2018 44 „Project Sol" Tech Demo

61

PARAVIEW WEB

Render remotely on high-performance hardware

Supports thin clients, even without discrete GPUs

High-quality, interactive to real-time visualizations

Works with RTX backend out of the box!

High Performance Visualization in the Browser

Page 62: Path Tracing in ParaView-OptiX: RTX for Scientific Visualization · 2019. 3. 29. · Unreal Engine "Reflections" Tech Demo (Star Wars) - GDC 2018 44 „Project Sol" Tech Demo

62

SUMMARY

Page 63: Path Tracing in ParaView-OptiX: RTX for Scientific Visualization · 2019. 3. 29. · Unreal Engine "Reflections" Tech Demo (Star Wars) - GDC 2018 44 „Project Sol" Tech Demo

63

“Ray tracing is the future

and ever will be.”

Page 64: Path Tracing in ParaView-OptiX: RTX for Scientific Visualization · 2019. 3. 29. · Unreal Engine "Reflections" Tech Demo (Star Wars) - GDC 2018 44 „Project Sol" Tech Demo

64

CONCLUSION

RTX path tracing in ParaView/VTK available soon!

Physically-based and interchangeable materials via MDL

Stream interactively from your supercomputer!

VisRTX NvPipe

https://github.com/NVIDIA/VisRTX https://github.com/NVIDIA/NvPipe

We want to help you solve your large-scale vis problems on NVIDIA!

Tim Biedert Mathias [email protected] [email protected]

Page 65: Path Tracing in ParaView-OptiX: RTX for Scientific Visualization · 2019. 3. 29. · Unreal Engine "Reflections" Tech Demo (Star Wars) - GDC 2018 44 „Project Sol" Tech Demo