vr bestpractices

31
Best practices in virtual reality

Upload: jaroslav-stehlik

Post on 08-Jan-2017

30 views

Category:

Software


0 download

TRANSCRIPT

Page 1: VR bestpractices

Best practicesin virtual reality

Page 2: VR bestpractices

Jaroslav Stehlík

Lead programmer

DIVR Labs

@jaroslavstehlik

Page 3: VR bestpractices

Divr Labs

First Czech VR game company

Working on a sci-fi horror shooter Blue Effect

for Oculus Rift, HTC Vive, Playstation VR

http://divrlabs.com

Page 4: VR bestpractices

Virtual Reality?

So, what is the virtual reality?

Page 5: VR bestpractices

What was Virtual Reality?

early 1991

slow/huge hardware

expensive components

people were more interested in the internet

Page 6: VR bestpractices

What is Virtual Reality?

2012

Oculus reinvented VR

Valve invented absolute positional tracking

Now every hardware manufacturer has it's own Head-mounted display

Page 7: VR bestpractices

Perception of reality

Why does the brain think that something is real?

Page 8: VR bestpractices

Perception of reality

Depth perception

Stereoscopic vision works only in short range distances and not everyone sees in stereo.

Actual head movements give us much more information than stereo vision.

Page 9: VR bestpractices

Perception of reality

Measure

People do compare everything to everything.

Scale matters a lot in VR.

If something is off, the perceived reality often breaks.

Page 10: VR bestpractices

Perception of reality

Textures

Every surface has microstructures "texture" which our brain is possessed with.

Without detailed texture, there is almost no perception of depth and motion as well.

Page 11: VR bestpractices

Immersion

What drives immersion and what breaks it?

Page 12: VR bestpractices

What drives immersion

emotions

memorable moments

physical world

gameplay

graphics

sound

Page 13: VR bestpractices

Designed immersion

Design

If everything in the virtual space has it's clear purpose and is fully interactive, people get easily immersed by every item, tool placed in your virtual world.

Page 14: VR bestpractices

Motion sickness

What causes motion sickness?

Page 15: VR bestpractices

Motion sickness

It is not clear how many people suffers from motion sickness but from reported cases, it is clear that it is not a minor problem.

Most people get sick when their body starts moving without perceiving actual physical movement.

Page 16: VR bestpractices

Motion sickness

Velocity changes

Twist and rotation

Moving ground or large part of the world

This discomfort can leave a really bad experience

Does not affect everyone the same

What is safe: constant linear movement or teleportation :-/

Page 17: VR bestpractices

Graphics

How to prepare graphical assets for VR?

Page 18: VR bestpractices

Graphical assets

How to prepare cool 3d assets?

Keep your units straight! 1m in 3D editor = 1m in 3D engine!

Always prepare assets for PBR "Physically based shading"

Constantly check your assets in VR!

Even, if you model by blueprints it is highly probable that

you will make a mistake which can be noticeable in VR.

Page 19: VR bestpractices

Scanning assets

Most realistic assets are scanned physical objects.

They have proper shape, size, material properties and because they are real, they have some purpose in our physical world.

https://megascans.se

Page 20: VR bestpractices

Optimise assets!

Your assets are rendered in stereo. That is min. 2x per frame.

The best looking VR games do render twice the native resolution!

The game has to run always smooth 90 FPS - that is 11ms per frame!

Keep your polycount minimal as possible!

Reuse materials and textures as possible, use texture atlases.

Page 21: VR bestpractices

PBR Physical materials

http://www.marmoset.co/toolbag/learn/pbr-practice

Page 22: VR bestpractices
Page 23: VR bestpractices
Page 24: VR bestpractices

PBR Physical materials

At DIVR Labs we use Substance Painter. It is not about the software but about the result.

Keep your albedo / metalness / roughness near physical values

Page 25: VR bestpractices

PBR Physical materials

Be extremely careful with normal maps in VR.

They tend to create shimmer artefacts which can be perceived as aliasing and cannot be solved with a regular antialiasing method.

Valve does not fake geometry with normal maps!

Page 26: VR bestpractices

PBR Physical materials

What workflow to use?

Depends on your model.

Metalness can create nasty artefacts around blending from metal to non-metal.

Specular has bigger memory overhead on your VRAM.

Page 27: VR bestpractices

How does it look in Unity?

Page 28: VR bestpractices
Page 29: VR bestpractices

How to showcase VR?

Page 30: VR bestpractices

Mixed reality

Green screen your player

Buy a third Vive controller to act as a camera motion tracker.

Mount controller on the camera and render the game instead of the green screen.

Awesome results!

http://www.kertgartner.com/making-mixed-reality-vr-trailers-and-videos/

Page 31: VR bestpractices

Thanks...

Thank you for your attention!

Now is the right time to ask me any question.

Do not hesitate to try out our demo today.

Also, we are hiring: http://divrlabs.com