Pfm getting started

From Pragma
Revision as of 16:30, 10 October 2019 by Silverlan (talk | contribs)
Jump to: navigation, search

Loading Source engine assets

Pragma is capable of automatically converting Source engine assets into equivalent Pragma engine formats and loading them. In general this process is completely automatic, but in some cases some manual input is required.
If the assets you want to import are part of one of your installed source engine games, you generally do not have to copy them, Pragma will be able to locate the files automatically in most cases. If Pragma fails to locate the files, you can just copy them into a new directory inside "addons" temporarily and remove them once Pragma has converted the assets.


To import a Source engine map, simply open up the console (by pressing the "`"-key) and type "map <mapName>" (e.g. "map cs_italy"). Depending on the map size and complexity, this may take a while the first time (don't worry, it's not stuck!).
All assets associated with the map (models, materials, textures, sounds, etc.) will automatically be converted as well. Note that this conversion process will continue even after the map has been loaded, which can cause the game to run very slow and graphics to look odd until the conversion has been fully completed!


Taking raytraced screenshots

To take a raytraced screenshot, simply run the following command from the console (or bind a key to it):

screenshot -mode raytracing -samples 64 -denoise -width 512 -height 512


  • mode: The screenshot mode to use. If the mode is omitted, a regular in-game screenshot will be taken.
  • samples: The sample count effectively defines the quality of the screenshot. The higher the sample count, the longer the screenshot will take to render, but if the sample count is too low, your screenshot will look "painted" and details will be washed out. A sample count of 1024 is usually a good compromise between speed and quality.
  • denoise: Optional, but should always be set unless you intend to use a custom denoiser.
  • width/height: The resolution of the screenshot. If no resolution is specified, the current render resolution of the game will be used.

You can move around while the screenshot is being rendered, but you mustn't close the game until it is complete, or it will be discarded!