vr bestpractices
TRANSCRIPT
![Page 1: VR bestpractices](https://reader035.vdocuments.site/reader035/viewer/2022081604/58718dfc1a28ab2c198b6dad/html5/thumbnails/1.jpg)
Best practicesin virtual reality
![Page 2: VR bestpractices](https://reader035.vdocuments.site/reader035/viewer/2022081604/58718dfc1a28ab2c198b6dad/html5/thumbnails/2.jpg)
Jaroslav Stehlík
Lead programmer
DIVR Labs
@jaroslavstehlik
![Page 3: VR bestpractices](https://reader035.vdocuments.site/reader035/viewer/2022081604/58718dfc1a28ab2c198b6dad/html5/thumbnails/3.jpg)
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](https://reader035.vdocuments.site/reader035/viewer/2022081604/58718dfc1a28ab2c198b6dad/html5/thumbnails/4.jpg)
Virtual Reality?
So, what is the virtual reality?
![Page 5: VR bestpractices](https://reader035.vdocuments.site/reader035/viewer/2022081604/58718dfc1a28ab2c198b6dad/html5/thumbnails/5.jpg)
What was Virtual Reality?
early 1991
slow/huge hardware
expensive components
people were more interested in the internet
![Page 6: VR bestpractices](https://reader035.vdocuments.site/reader035/viewer/2022081604/58718dfc1a28ab2c198b6dad/html5/thumbnails/6.jpg)
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](https://reader035.vdocuments.site/reader035/viewer/2022081604/58718dfc1a28ab2c198b6dad/html5/thumbnails/7.jpg)
Perception of reality
Why does the brain think that something is real?
![Page 8: VR bestpractices](https://reader035.vdocuments.site/reader035/viewer/2022081604/58718dfc1a28ab2c198b6dad/html5/thumbnails/8.jpg)
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](https://reader035.vdocuments.site/reader035/viewer/2022081604/58718dfc1a28ab2c198b6dad/html5/thumbnails/9.jpg)
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](https://reader035.vdocuments.site/reader035/viewer/2022081604/58718dfc1a28ab2c198b6dad/html5/thumbnails/10.jpg)
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](https://reader035.vdocuments.site/reader035/viewer/2022081604/58718dfc1a28ab2c198b6dad/html5/thumbnails/11.jpg)
Immersion
What drives immersion and what breaks it?
![Page 12: VR bestpractices](https://reader035.vdocuments.site/reader035/viewer/2022081604/58718dfc1a28ab2c198b6dad/html5/thumbnails/12.jpg)
What drives immersion
emotions
memorable moments
physical world
gameplay
graphics
sound
![Page 13: VR bestpractices](https://reader035.vdocuments.site/reader035/viewer/2022081604/58718dfc1a28ab2c198b6dad/html5/thumbnails/13.jpg)
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](https://reader035.vdocuments.site/reader035/viewer/2022081604/58718dfc1a28ab2c198b6dad/html5/thumbnails/14.jpg)
Motion sickness
What causes motion sickness?
![Page 15: VR bestpractices](https://reader035.vdocuments.site/reader035/viewer/2022081604/58718dfc1a28ab2c198b6dad/html5/thumbnails/15.jpg)
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](https://reader035.vdocuments.site/reader035/viewer/2022081604/58718dfc1a28ab2c198b6dad/html5/thumbnails/16.jpg)
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](https://reader035.vdocuments.site/reader035/viewer/2022081604/58718dfc1a28ab2c198b6dad/html5/thumbnails/17.jpg)
Graphics
How to prepare graphical assets for VR?
![Page 18: VR bestpractices](https://reader035.vdocuments.site/reader035/viewer/2022081604/58718dfc1a28ab2c198b6dad/html5/thumbnails/18.jpg)
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](https://reader035.vdocuments.site/reader035/viewer/2022081604/58718dfc1a28ab2c198b6dad/html5/thumbnails/19.jpg)
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](https://reader035.vdocuments.site/reader035/viewer/2022081604/58718dfc1a28ab2c198b6dad/html5/thumbnails/20.jpg)
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](https://reader035.vdocuments.site/reader035/viewer/2022081604/58718dfc1a28ab2c198b6dad/html5/thumbnails/21.jpg)
PBR Physical materials
http://www.marmoset.co/toolbag/learn/pbr-practice
![Page 22: VR bestpractices](https://reader035.vdocuments.site/reader035/viewer/2022081604/58718dfc1a28ab2c198b6dad/html5/thumbnails/22.jpg)
![Page 23: VR bestpractices](https://reader035.vdocuments.site/reader035/viewer/2022081604/58718dfc1a28ab2c198b6dad/html5/thumbnails/23.jpg)
![Page 24: VR bestpractices](https://reader035.vdocuments.site/reader035/viewer/2022081604/58718dfc1a28ab2c198b6dad/html5/thumbnails/24.jpg)
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](https://reader035.vdocuments.site/reader035/viewer/2022081604/58718dfc1a28ab2c198b6dad/html5/thumbnails/25.jpg)
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](https://reader035.vdocuments.site/reader035/viewer/2022081604/58718dfc1a28ab2c198b6dad/html5/thumbnails/26.jpg)
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](https://reader035.vdocuments.site/reader035/viewer/2022081604/58718dfc1a28ab2c198b6dad/html5/thumbnails/27.jpg)
How does it look in Unity?
![Page 28: VR bestpractices](https://reader035.vdocuments.site/reader035/viewer/2022081604/58718dfc1a28ab2c198b6dad/html5/thumbnails/28.jpg)
![Page 30: VR bestpractices](https://reader035.vdocuments.site/reader035/viewer/2022081604/58718dfc1a28ab2c198b6dad/html5/thumbnails/30.jpg)
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](https://reader035.vdocuments.site/reader035/viewer/2022081604/58718dfc1a28ab2c198b6dad/html5/thumbnails/31.jpg)
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