Point devshot camera: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Robot: fixing template case.)
(Added "basic usage" section)
Line 13: Line 13:
*'''FOV'''
*'''FOV'''
:<integer> FOV of this camera.
:<integer> FOV of this camera.
==Basic Usage==
Place a point_devshot_camera entity in your map and give it a name, the name of the area it looks at is a good name. If you want you can make sure the angle and location are good by using spectate ingame and using getpos in the console to find your co-ordinates and angle. Adjust the FOV to match what you're using ingame if you wish and that's all the entity itself needs.
Next, open up your compile options and either in the input bar at the bottom of the normal mode add -makedevshots or in the $game_exe section of the expert mode add the same thing. Make sure you remove options such as -dev so that your screenshots don't have the console in them!
Once you have compiled your map the mod will load up and just let it be, it will load the map and take the screenshots automatically. The screenshots will be saved to <mod>/screenshots/<mapname>/<cameraname> as .tga files.
[http://www.teamfortress.com/post.php?id=2754 An example of what can be achieved with these from Team Fortress 2]

Revision as of 17:08, 22 August 2009

Template:Wrongtitle Template:Base point

Entity Description

An entity used by the -makedevshots system, which automatically takes screenshots at the position of every devshot camera in the level.

Template:In code

Keyvalues

Pitch Yaw Roll (Y Z X) (angles) <QAngle>
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.
  • cameraname
<string> Used as the name of the directory to store screenshots from this camera. Must be unique within the level.
  • FOV
<integer> FOV of this camera.

Basic Usage

Place a point_devshot_camera entity in your map and give it a name, the name of the area it looks at is a good name. If you want you can make sure the angle and location are good by using spectate ingame and using getpos in the console to find your co-ordinates and angle. Adjust the FOV to match what you're using ingame if you wish and that's all the entity itself needs.

Next, open up your compile options and either in the input bar at the bottom of the normal mode add -makedevshots or in the $game_exe section of the expert mode add the same thing. Make sure you remove options such as -dev so that your screenshots don't have the console in them!

Once you have compiled your map the mod will load up and just let it be, it will load the map and take the screenshots automatically. The screenshots will be saved to <mod>/screenshots/<mapname>/<cameraname> as .tga files.

An example of what can be achieved with these from Team Fortress 2