How to fade to black on headset rotation?
Im aware this may already be on the forums but i just cant find it :(
what im trying to do is just fade the view to black when the player roates his head either past 90 or -90 degrees from 0.
i did this as a guess but im way out of my depth and as you can see it just applies the exposure immediately to the world regardless of headset rotation.
Any help is appreciated!
asked Nov 12 '17 at 11:03 PM in VR
Start by handling only the Yaw rotation (=rotation around the Z axis, which is the vertical axis straight out of the HMD) since Pitch and Roll will very likely never exceed 90 degrees unless someone throws themeselves on the floor or stand upside down on their hands.
Assuming Yaw = 0 is the player looking straight ahead (depends on how you do your calibration), take the Absolute value of the Yaw angle (ABS node) and, with a Branch, check whether it is > 90. If it is (True output), apply the fade to black. If not (False output), remove the fade to black.
Regarding the fade, instead of modifying Post Processing properties, you can also use Start Camera Fade: https://docs.unrealengine.com/latest/INT/BlueprintAPI/CameraFades/StartCameraFade/
Follow this question
Once you sign in you will be able to subscribe for any updates here