The '''InteractiveCamera''' component is used in the resonite default camera and is a way of easily taking pictures.
The '''InteractiveCamera''' component is used in the resonite default camera and is a way of easily taking pictures.
See [[Camera]] for more up to date info.
== Fields ==
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|CameraMode|'''[[#Mode|Mode]]'''|TypeAdv0=true| The mode the camera is in for taking pictures.
|CameraMode|'''[[#Mode|InteractiveCamera.Mode]]'''|TypeAdv0=true| The mode the camera is in for taking pictures.
|PreviewWidth|Int| The width in pixels of the preview image on the camera screen.
|PreviewWidth|Int| The width in pixels of the preview image on the camera screen.
|PreviewHeight|Int| The height in pixels of the preview image on the camera screen.
|PreviewHeight|Int| The height in pixels of the preview image on the camera screen.
Line 23:
Line 25:
|PreviewTexture|'''[[Component:RenderTextureProvider|RenderTextureProvider]]'''|TypeAdv14=true| The texture that is being rendered to for the camera screen preview on the back of the camera.
|PreviewTexture|'''[[Component:RenderTextureProvider|RenderTextureProvider]]'''|TypeAdv14=true| The texture that is being rendered to for the camera screen preview on the back of the camera.
|DisplayMaterial|IStereoMaterial| The material being used to display the camera preview.
|DisplayMaterial|IStereoMaterial| The material being used to display the camera preview.
|Format|'''[[#EncodeFormat|EncodeFormat]]'''|TypeAdv16=true| In what image type to take pictures in.
|Format|'''[[#EncodeFormat|InteractiveCamera.EncodeFormat]]'''|TypeAdv16=true| In what image type to take pictures in.
|Quality|Float| The quality encoding for taken pictures.
|Quality|Float| The quality encoding for taken pictures.
|SpawnPhotoInWorld|Bool| Whether to spawn taken photos into the world.
|SpawnPhotoInWorld|Bool| Whether to spawn taken photos into the world.
Line 39:
Line 41:
|TimerCountdownFastPlayer|'''[[Component:AudioClipPlayer|AudioClipPlayer]]'''|TypeAdv30=true| The audio to play as the timer for the photo countdown timer is reaching completion.
|TimerCountdownFastPlayer|'''[[Component:AudioClipPlayer|AudioClipPlayer]]'''|TypeAdv30=true| The audio to play as the timer for the photo countdown timer is reaching completion.
|TimerCountdownSlowOutput|'''[[Component:AudioOutput|AudioOutput]]'''|TypeAdv31=true| The audio output component that plays the <code>TimerCountdownSlowPlayer</code>.
|TimerCountdownSlowOutput|'''[[Component:AudioOutput|AudioOutput]]'''|TypeAdv31=true| The audio output component that plays the <code>TimerCountdownSlowPlayer</code>.
|TimerCountdownFastOutput|'''[[Component:AudioOutput|AudioOutput]]'''|TypeAdv32=true| The audio output component that plays the <code>TimerCountdownFastPlayer</code>.
|TimerCountdownFastOutput|'''[[Component:AudioOutput|AudioOutput]]'''|TypeAdv32=true| The audio output component that plays the <code>TimerCountdownFastPlayer</code>.
|PreviewScale|{{RootFieldType|RawOutput`1|[[Type:Float2|Float2]]}}|TypeAdv33=true| How big the preview display above the camera should be.
|PreviewScale|{{RootFieldType|RawOutput`1|[[Type:Float2|Float2]]}}|TypeAdv33=true| How big the preview display above the camera should be.
|CameraModelOverride|String| Overrides the text for what kind of camera took a photo generated by this component in the metadata.
|CameraModelOverride|String| Overrides the text for what kind of camera took a photo generated by this component in the metadata.
Line 46:
Line 48:
|DefaultFarClip|Float| The default farclip to be used with the camera.
|DefaultFarClip|Float| The default farclip to be used with the camera.
|_frustumPosition|{{RootFieldType|FieldDrive`1|[[Type:Float3|Float3]]}}|TypeAdv38=true| The field to drive with position of the fustrum visual.
|_frustumPosition|{{RootFieldType|FieldDrive`1|[[Type:Float3|Float3]]}}|TypeAdv38=true| The field to drive with position of the fustrum visual.
|_frustumRotation|{{RootFieldType|FieldDrive`1|[[Type:FloatQ|FloatQ]]}}|TypeAdv39=true| The field to drive with the rotation of the fustrum visual.
|_frustumRotation|{{RootFieldType|FieldDrive`1|[[Type:FloatQ|FloatQ]]}}|TypeAdv39=true| The field to drive with the rotation of the fustrum visual.
|_frustumVerticalFOV|{{RootFieldType|FieldDrive`1|[[Type:Float|Float]]}}|TypeAdv40=true| The field to drive with the vertical field view angle of the fustrum mesh.
|_frustumVerticalFOV|{{RootFieldType|FieldDrive`1|[[Type:Float|Float]]}}|TypeAdv40=true| The field to drive with the vertical field view angle of the fustrum mesh.
|_frustumHorizontalFOV|{{RootFieldType|FieldDrive`1|[[Type:Float|Float]]}}|TypeAdv41=true| The field to drive with the horizontal field view angle of the fustrum mesh.
|_frustumHorizontalFOV|{{RootFieldType|FieldDrive`1|[[Type:Float|Float]]}}|TypeAdv41=true| The field to drive with the horizontal field view angle of the fustrum mesh.
Line 75:
Line 77:
|Distance|Float| How far away to stay from a subject during auto tracking.
|Distance|Float| How far away to stay from a subject during auto tracking.
|HeightOffset|Float| How much offset to add to targeting a user's head vertically.
|HeightOffset|Float| How much offset to add to targeting a user's head vertically.
|FirstPersonPitch|Float| The current first person rotation transform pitch.
|FirstPersonPitch|Float| The current first person rotation transform pitch.
|FirstPersonRoll|Float| The current first person rotation transform roll.
|FirstPersonRoll|Float| The current first person rotation transform roll.
|FirstPersonOffset|Float| The offset forward or backwards in first person currently.
|FirstPersonOffset|Float| The offset forward or backwards in first person currently.
Line 102:
Line 104:
== Sync Delegates ==
== Sync Delegates ==
{{Table ComponentTriggers
{{Table ComponentTriggers
|Trigger()|[[Type:Action|Action]]| Tells camera to take photo as if the user pressed the picture button themselves.
|Trigger:[[Type:Action|Action]]|[[Type:Action|Action]]|false| Tells camera to take photo as if the user pressed the picture button themselves.
|Capture()|[[Type:Action|Action]]| Tells the camera to instantly take a photo.
|Capture:[[Type:Action|Action]]|[[Type:Action|Action]]|false| Tells the camera to instantly take a photo.