OSVR / OSVR-Unity

Package for authoring OSVR experiences with Unity.
Apache License 2.0
99 stars 38 forks source link

Copy image effects/components to each VRSurface camera. #75

Closed DuFF14 closed 8 years ago

DuFF14 commented 9 years ago

Currently, the camera component on DisplayController.cs (VRDisplayTracked prefab) is coped to each VRSurface camera. This should be extended to copy any other effects/components that should be attached to each eye.

DuFF14 commented 8 years ago

Continuing discussion from https://github.com/OSVR/OSVR-Unity/issues/101...

Perhaps adding one VREye and VRSurface to the prefab hierarchy (make VREye a sibling of VRViewer, with a VRSurface child) could work as a solution. This would work for cases with one eye and one surface, and any additional eyes can be duplicates of the original.

DuFF14 commented 8 years ago

Here is what I meant with the previous comment: https://github.com/OSVR/OSVR-Unity/pull/111 Seems to be working, but I haven't tested it in a game with image effects yet. @ImperialPenguin do you think this could work?

DuFF14 commented 8 years ago

Fixed by #111