Documentation OBS and Player Publishing

smallarrows.GIF

Use a PC for this Section
The Macs are not running Vive Headsets

Transfer Your Project Between Mac and PC
Move the entire project over to the PC or Mac.
Open Unity Hub
Under Projects, select ADD
Select your folder

Start the project from the list of Projects
If it asks you to upgrade or downgrade  you must answer CONFIRM
     (
If the versions are close enough it should work.)
Answer Switch Target

At this point you might consider making a backup.

A message window from SteamVR may pop up:

It looks like you haven't generated actions for SteamVR Input yet.
Would you like to open the SteamVR Input window?
     PC: Answer Yes a lot
     Select Save and generate on the bottom of the page
     Close the Save and Generate window

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Change the Color of the Chaperone to transparent

Put on the headset
.

Open SteamVR.
Press the
Home button on the hand held controller  to open the SteamVR menu
Navigate to the
Settings gear icon located on the bottom right of the screen.
(Make sure not to confuse this with the Steam settings in the top right-hand side of the screen.)

Next, navigate to Chaperone.

Adjusting the Bounds opacity slider to the left for transparent.
Select Developer
so the Chaperone is completely transparent.

In Steam  Get Rid of Chaperone Square on the ground
Place the headset in the middle of the floor area
Open SteamVR from the taskBar
Open the Menu steam_menu
Select Settings
Select Developer
Change Room and Tracking to Gigantic Space
Hit Quick Calibrate
(The Room Setup adds Chapperone boundaries you can not get rid of.)


::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

In Unity

Fix the shadows on your light
All these settings can effect performance.
Edit->Project Settings->Quality
    
In the Inspector tab
     Uncheck all Levels except Ultra
     Anti Aliasing    8x Multi Sampling
    
Change Shadow Resolution to Very High Resolution
     If the shadow does not appear when you make a Player
          decrease Shadow distance to 40

Select Window->Rendering->Lighting Settings
     Lightmapping Settings
          Lightmap Resolution 100 or 200 default 40
          Lightmap Size
2048    default 1024
     Select Ambient Occlusion (This will slow down the publish build.)
     Close


Select your Directional Light
Change Bias to .02               default .05
Change Normal Bias to .02      watch for artifacts, default .4


Baked Shadows
Select all objects that do not move or interact.
Select Static in the Inspector, upper right.
You may want to select small objects and turn off shadows to save publish rendering time.
The light rendering will be pre-calculated and nicer for these objects.


Wider View Angle for Vive Head Set Camera
Select the Player from the Hierarchy
Select the arrow, open Player open SteamVRObjects, select VRCamera
In the Inspector, change Field of View to 90   (default 60)


Remove the Dismembered Hands
In the Assets folder, Assets->SteamVR->InteractionSystem->Prefabs there are some hand prefabs.
Select LeftRenderModel Slim (default hand)
Uncheck DisplayHand by Default
toggle in the Inspector.
Select Display Controller By Default
Do this for the Right hand too.


Fix Up Teleporting (if you are using this)
Open Teleporting from the Hierarchy
Select DestinationReticle
     Deselect Mesh Renderer in the Inspector
Open InvalidReticle
     Select TeleportDestination_Invalid
          Deselect Mesh Renderer in the Inspector
Select all objects with Teleport Area Scripts
     Deselect Mesh Renderer in the Inspector


Save
File->Save Scene As
your Unity project if this is the first time saving.
     otherwise use File->Save


::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Build your project in Unity to run on its own,
Make a Player

Build your project to run on it's own without Unity on a PC

Select
File Build Settings...
     Uncheck Scenes/SampleScene    if you see this
     Select
PC, Mac & Linux stand-alone
     Select Build & Run
          Select your Platform
          Select Build And Run button
          Create a new folder outside of your Unity project
          Save to the folder...   wait a minute, longer for static, baked ambient occlusion

Alt F4 exits the player on a PC   (Command Q exits a player on a Mac)

Exit Unity, Maya and all extra software


::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

Monitor Display settings 1920x1080
Right Mouse on Desktop background
Select Display Settings
     Set Change the size of text, apps, and other items to 100%
     Select Advanced display settings
          Change the Resolution to 1920 x 1080
          Hit Apply and then confirm the change.


::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
OBS on a PC

Start OBS Studio 64 bit
The software will remember your settings from last time.

If an optimization window pops up, select Optimize just for recording, no streaming

File->Settings
Output (side menu)
     Output Mode  Advanced
          Recording tab
             Recording Path  Desktop  or external drive
             Recording Format  mp4
     Video
          Change the Base (Canvas) Resolution to 1920x1080
          Change the Output (Scaled) Resolution to 1920x1080
          Common FPS Values 30
     Hotkeys
         
Set up Start Recording  to F1 for your screen grab (hit F1 key)
         
Set up Stop Recording  to F1
          (Do not set up for Streaming. Hotkeys will not work if you select this option for streaming)
Click
OK


Click + under Sources below to add a Display Capture,
     delete other captures if you have any
Double click to open the
properties
     De-select Capture Cursor
     Click OK


Start your Unity build player
It is in the folder you saved to
Alt F4 exits the player

Hit
F1 to record OBS and F1 to stop

Move super slow when you look around the VR


There will be an mp4 file on your desktop,
Edit this with After Effects or Premiere.

Put the exercise mp4 files in the drop folder with your name as part of the file name.


::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
File Transfer

All assignments will be turned in on the web.
Mac use Filezilla
, PC use WinSCP to transfer
     Host: file.design.ucla.edu  (port 22)
     User ID: Your login
     /data/classes/Fall19/156/drop
     or  /home/users/yourlogin/myClasses/Fall19-156/drop

Any movies 1080HD


Screen Capture all your VR Projects with OBS Studio, edit with Premiere or After Effects

winscp

By default WinSCP starts at your home directory  /home/users/yourname
Select the link to MyClasses
Select the link to Fall19-156  AKA /data/classes/Fall19/156
Select drop
Select the correct folder for the assignment
Make sure your name is part of the file name.