MerdCamera - vr4vet/Blue-Sector GitHub Wiki
Merd Camera
Usage
- Place down an instance of the MerdCamera prefab into the scene.
- Place down an instance of the MerdCameraHost prefab into the scene.
- Select the MerdCameraHost in the inspector, expand the Merd Camera Controller script, expand the Cameras array, drag the MerdCamera into the camera array.
Rendering the Camera
In order to render the outputs of the camera, apply the MerdCameraTexture to a mesh renderer. The MerdCameraHost prefab has this texture pre-applied.
Controlling the Camera
Place down an instance of the MerdCameraJoystick prefab. This prefab contains a desk, a monitor, and a control panel for switching between and manipulating the camera. This prefab has some extra functionality specifically related to the fish feeding scenario, e.g., FishFeedingHints and FishFeedingStructuredTutorial, however, these are not required in order to use the camera.
The selected camera is controlled by the Merd Camera Controller script. Merd Camera Controller also contains methods for manipulating the position of the selected camera.