![]() |
AirControl
1.3.0
Open Source, Modular, and Extensible Flight Simulator For Deep Learning Research
|
Camera switching and capture functionality More...


Classes | |
| struct | CapturePass |
Public Types | |
| enum | ReplacementMode { ObjectId = 0, CatergoryId = 1, DepthCompressed = 2, DepthMultichannel = 3, Normals = 4 } |
Public Member Functions | |
| void | CreateCamera () |
| Create hidden capture camera for each schene camera More... | |
| void | ScreenToBytes (Camera cam, Camera mainCamera, int width, int height, bool supportsAntialiasing, bool needsRescale, ref byte[] screencapture) |
| Capture and return the screen as byte array More... | |
| void | selectCamera (int cameraId) |
| select scene cameras More... | |
| void | OnSceneChange () |
| Deprecated Not used with API This fucntion was used to switch the screen manually More... | |
| void | OnCameraChange (Camera activeCamera) |
| Refresh capture camera when active scene camera switch happens More... | |
Public Attributes | |
| AC_BaseAirplane_Input | input |
| List< CapturePass > | CapturePassList = new List<CapturePass>() |
| int | startCameraIndex =1 |
| Shader | uberReplacementShader |
| Shader | opticalFlowShader |
| float | opticalFlowSensitivity = 1.0f |
| bool | saveImage = true |
| bool | saveIdSegmentation = true |
| bool | saveLayerSegmentation = true |
| bool | saveDepth = true |
| bool | saveNormals = true |
| bool | saveOpticalFlow =true |
| CapturePass[] | capturePasses |
Protected Member Functions | |
| virtual void | SwitchCamera () |
| Switch camera More... | |
Camera switching and capture functionality
Definition at line 14 of file AC_Airplane_CameraController.cs.
|
inline |
Create hidden capture camera for each schene camera
Definition at line 99 of file AC_Airplane_CameraController.cs.
|
inline |
Refresh capture camera when active scene camera switch happens
| activeCamera | Active scene camera |
Definition at line 416 of file AC_Airplane_CameraController.cs.
|
inline |
Deprecated Not used with API This fucntion was used to switch the screen manually
Definition at line 397 of file AC_Airplane_CameraController.cs.
|
inline |
Capture and return the screen as byte array
| cam | Hidden capture camera |
| mainCamera | Any of scene camera |
| width | Width of the capture |
| height | height of the capture |
| supportsAntialiasing | Antialiasing Property |
| needsRescale | Rescale property |
| screencapture | reference screencapture |
Definition at line 226 of file AC_Airplane_CameraController.cs.
|
inline |
select scene cameras
| cameraId |
Definition at line 348 of file AC_Airplane_CameraController.cs.
|
inlineprotectedvirtual |
| CapturePass [] AirControl.AC_Airplane_CameraController.capturePasses |
Definition at line 39 of file AC_Airplane_CameraController.cs.