PRT: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Updated with Nem's info from Talk:PTS)
m (→‎See also: clean up, replaced: See Also → See also)
 
(6 intermediate revisions by 5 users not shown)
Line 1: Line 1:
A '''p'''o'''rt'''al (.prt) file is a list of the portals in your .[[bsp]], generated by [[vbsp]] and then used by [[vvis]] to perform visibility calculations.  It is a simple ASCII file and its format is as follows:
A '''p'''o'''rt'''al (.prt) file is a list of the portals in your .[[BSP]], generated by [[VBSP]] and then used by [[VVIS]] to perform visibility calculations.  It is a simple ASCII file and its format is as follows:


<code>
<pre>
PRT1
PRT1
<Leaf Count>
<Leaf Count>
<Portal Count>
<Portal Count>
<Vertex Count> <Leaf A> <Leaf B> (X Y Z) (X Y Z) (X Y Z) (X Y Z)...
<Vertex Count> <Leaf A> <Leaf B> (X Y Z) (X Y Z) (X Y Z) (X Y Z)...
<Vertex Count> <Leaf A> <Leaf B> (X Y Z) (X Y Z) (X Y Z) (X Y Z)...
<Vertex Count> <Leaf A> <Leaf B> (X Y Z) (X Y Z) (X Y Z) (X Y Z)...
<Vertex Count> <Leaf A> <Leaf B> (X Y Z) (X Y Z) (X Y Z) (X Y Z)...
<Vertex Count> <Leaf A> <Leaf B> (X Y Z) (X Y Z) (X Y Z) (X Y Z)...
...</code>
...
</pre>


The PRT1 signature is specific to [[Source]], older tools don't generate it.  You can view these files in [[GLView]].
The PRT1 signature is specific to [[Source]], older tools don't generate it.  You can view these files in [[GLView]] or {{hammer|2}}.


== See Also ==
==See also==
*[[.pts]] files are generated by VBSP in the event of a map [[leak]], and can be used to identify its approximate location.


* [[PTS|.pts]] files are generated by [[vbsp]] in the event of a map leak, and can be used to identify its approximate location.
[[Category:Level Design]]
[[Category:Plain text formats]]
[[Category:Source]]

Latest revision as of 03:01, 4 January 2024

A portal (.prt) file is a list of the portals in your .BSP, generated by VBSP and then used by VVIS to perform visibility calculations. It is a simple ASCII file and its format is as follows:

PRT1
<Leaf Count>
<Portal Count>
<Vertex Count> <Leaf A> <Leaf B> (X Y Z) (X Y Z) (X Y Z) (X Y Z)...
<Vertex Count> <Leaf A> <Leaf B> (X Y Z) (X Y Z) (X Y Z) (X Y Z)...
<Vertex Count> <Leaf A> <Leaf B> (X Y Z) (X Y Z) (X Y Z) (X Y Z)...
...

The PRT1 signature is specific to Source, older tools don't generate it. You can view these files in GLView or Hammer Hammer.

See also

  • .pts files are generated by VBSP in the event of a map leak, and can be used to identify its approximate location.