Difference between revisions of "Camera Creation Guide"

From Octodad Workshop
Jump to navigation Jump to search
(Created page with "Camera Use Cases Breakdown * Default Camera * Default camera is supplied when no override camera is active. * Legs camera allows A/D to move the camera around left & right. * ...")
 
Line 1: Line 1:
Camera Use Cases Breakdown
+
== Camera Use Cases Breakdown ==
 
* Default Camera
 
* Default Camera
 
* Default camera is supplied when no override camera is active.
 
* Default camera is supplied when no override camera is active.
Line 5: Line 5:
 
* Arms camera will zoom in to provide a closer view.
 
* Arms camera will zoom in to provide a closer view.
  
Trigger Camera Volume
+
CameraTriggerVolume
* Set Camera Trigger Event
+
* '''Set Camera''' Trigger Event
 
* Currently is a part of TriggerObject, could be spun into it's own object in the future.
 
* Currently is a part of TriggerObject, could be spun into it's own object in the future.
 
:Indented line
 
:Indented line
* PRACTICALLY REQUIRED to set these properties true to behave properly:
+
* '''PRACTICALLY REQUIRED''' to set these properties true to behave properly:
* UndoOnTriggerRevert - Properly registers this camera on the push/pop stack.   
+
* '''UndoOnTriggerRevert''' - Properly registers this camera on the push/pop stack.   
* Reverts to the last camera when exiting the trigger volume (if still an active candidate, otherwise returns to default.
+
Reverts to the last camera when exiting the trigger volume (if still an active candidate, otherwise returns to default.
 
* This allows having specialized camera trigger zones inside other camera trigger zones.
 
* This allows having specialized camera trigger zones inside other camera trigger zones.
* CreateSkin - Expands the size of the trigger on condition met (collision).
+
* '''CreateSkin''' - Expands the size of the trigger on condition met (collision).
 
* This reduces oscillating between two camera trigger volumes.
 
* This reduces oscillating between two camera trigger volumes.
 
* For best results, trigger zones must fill all traversable areas.
 
* For best results, trigger zones must fill all traversable areas.
Line 26: Line 26:
 
* This makes the camera override event last only as long until another override camera is set.  
 
* This makes the camera override event last only as long until another override camera is set.  
  
Camera Modes
+
== Camera Modes ==
 
* Stationary
 
* Stationary
 
* Camera does not move and is in the absolute position of the CameraObject in editor.
 
* Camera does not move and is in the absolute position of the CameraObject in editor.
Line 35: Line 35:
 
* Movement corresponds to time value on both.
 
* Movement corresponds to time value on both.
  
Camera Targets
+
== Camera Targets ==
 
* Default - direction it is pointing in editor.
 
* Default - direction it is pointing in editor.
 
* Octodad - at Octodad.
 
* Octodad - at Octodad.
 
* Object - at Object, specified by ID.
 
* Object - at Object, specified by ID.
  
PhysicsObject Interaction
+
== PhysicsObject Interaction ==
 
The camera will try to clip in front of any static object by default.  Walls, chests, furniture, may all need properties adjusted.
 
The camera will try to clip in front of any static object by default.  Walls, chests, furniture, may all need properties adjusted.
  

Revision as of 20:07, 23 November 2013

Camera Use Cases Breakdown

  • Default Camera
  • Default camera is supplied when no override camera is active.
  • Legs camera allows A/D to move the camera around left & right.
  • Arms camera will zoom in to provide a closer view.

CameraTriggerVolume

  • Set Camera Trigger Event
  • Currently is a part of TriggerObject, could be spun into it's own object in the future.
Indented line
  • PRACTICALLY REQUIRED to set these properties true to behave properly:
  • UndoOnTriggerRevert - Properly registers this camera on the push/pop stack.

Reverts to the last camera when exiting the trigger volume (if still an active candidate, otherwise returns to default.

  • This allows having specialized camera trigger zones inside other camera trigger zones.
  • CreateSkin - Expands the size of the trigger on condition met (collision).
  • This reduces oscillating between two camera trigger volumes.
  • For best results, trigger zones must fill all traversable areas.
  • If there is a gap too far apart, you will often see it try to transition back to default camera.
  • They can slightly overlap with other camera trigger volumes, since CreateSkin helps account for this.
  • You can use PriorityLevel in CameraObject to prevent lesser cameras from usurping more important ones.
  • 0 is default, higher is more important.

Triggered Camera Event

  • Set Camera Trigger Event
  • The difference between this and previous camera is that you do NOT use UndoOnTriggerRevert.
  • This makes the camera override event last only as long until another override camera is set.

Camera Modes

  • Stationary
  • Camera does not move and is in the absolute position of the CameraObject in editor.
  • FixedAngle
  • The camera will try to stay a set distance from Octodad, in a specific direction (based on rotation of CameraObject in editor)
  • Spline - Based on Octodad's position along 2 PathObjects (with time values 0 and 1),
  • move the camera along the spline generated by SplineObjects (ordered by time value, from 0 to 1, multiple is allowed).
  • Movement corresponds to time value on both.

Camera Targets

  • Default - direction it is pointing in editor.
  • Octodad - at Octodad.
  • Object - at Object, specified by ID.

PhysicsObject Interaction

The camera will try to clip in front of any static object by default. Walls, chests, furniture, may all need properties adjusted.

You can prevent this by setting the ClipObject property to false. This will enable ClipTransparent to appear. Setting this to true will have the object fade out if it's between Octodad and the camera.