Point camera: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Technical limitations)
No edit summary
Line 4: Line 4:
Camera entity. The view of this camera can be output in realtime to a [[func_monitor]]'s monitor surface, or altenately (using [[info_camera_link]]) to any named brush entity using the correct monitor texture.
Camera entity. The view of this camera can be output in realtime to a [[func_monitor]]'s monitor surface, or altenately (using [[info_camera_link]]) to any named brush entity using the correct monitor texture.


== Keys ==
==Keyvalues==
*{{kv targetname}}
*{{kv parentname}}


*{{kv angles}}


'''Parent parentname <target_destination>''' The name of this entity's parent in the movement hierarchy. Entities with parents move with their parent.
*'''FOV <float>'''
:Field of view in degrees. 90 is a good starting point for a decent view. Lower value is narrower and a larger value is a wider view.


'''Pitch Yaw Roll (Y Z X) angles <angle>''' This entity's orientation in the world. Pitch is rotation around the Y axis, yaw is the rotation around the Z axis, roll is the rotation around the X axis.
*'''UseScreenAspectRatio'''  
:<boolean>


'''spawnflags spawnflags <flags>'''  
*'''fogEnable'''  
:<boolean>


'''Name targetname <target_source>''' The name that other entities refer to this entity by. This is the value used for a [[func_monitor]]'s Camera name key to bind its view.
*'''fogColor'''
 
:<color255> Fog Color
'''FOV FOV <float>''' Field of view in degrees. 90 is a good starting point for a decent view. Lower value is narrower and a larger value is a wider view.
 
'''Screen Aspect Ratio UseScreenAspectRatio <choices>'''
 
'''Fog Enable fogEnable <choices>'''
 
'''Fog Color fogColor <color255>'''
 
'''Fog Start fogStart <float>''' The near fog plane.
 
'''Fog End fogEnd <float>''' The far fog/clipping plane.


*'''fogStart'''
:<float> The near fog plane.


*'''fogEnd'''
:<float> The far fog/clipping plane.


== Inputs ==
== Inputs ==


'''SetParent <string>''' Changes the entity's parent in the movement hierarchy.
*{{i targetname}}
 
*{{i parentname}}
'''SetParentAttachment <string>''' Change this entity to attach to a specific attachment point on its parent. Entities must be parented before being sent this input. The parameter passed in should be the name of the attachment.
 
'''ClearParent''' Removes this entity from the the movement hierarchy, leaving it free to move independently.
 
'''ChangeFOV <string>''' Changes camera's FOV over time
 
'''SetOnAndTurnOthersOff''' Turn the camera on, and turn all other cameras off.


'''SetOn''' Turn the camera on.
*'''ChangeFOV <string>'''
:Changes camera's FOV over time


'''SetOff''' Turn the camera off.
*'''SetOnAndTurnOthersOff'''
:Turn the camera on, and turn all other cameras off.


*'''SetOn'''
:Turn the camera on.


----
*'''SetOff'''
''See Also''
:Turn the camera off.


[[List of entities]]
[[Category:Entities]]

Revision as of 21:43, 9 July 2005

Template:Wrongtitle

Entity Description

Camera entity. The view of this camera can be output in realtime to a func_monitor's monitor surface, or altenately (using info_camera_link) to any named brush entity using the correct monitor texture.

Keyvalues

  • FOV <float>
Field of view in degrees. 90 is a good starting point for a decent view. Lower value is narrower and a larger value is a wider view.
  • UseScreenAspectRatio
<boolean>
  • fogEnable
<boolean>
  • fogColor
<color255> Fog Color
  • fogStart
<float> The near fog plane.
  • fogEnd
<float> The far fog/clipping plane.

Inputs

  • ChangeFOV <string>
Changes camera's FOV over time
  • SetOnAndTurnOthersOff
Turn the camera on, and turn all other cameras off.
  • SetOn
Turn the camera on.
  • SetOff
Turn the camera off.