PRT: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(PRT moved to PTS)
 
(Updated with Nem's info from Talk:PTS)
Line 1: Line 1:
#REDIRECT [[PTS]]
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>
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)...
...</code>
The PRT1 signature is specific to [[Source]], older tools don't generate it.  You can view these files in [[GLView]].
== See Also ==
* [[PTS|.pts]] files are generated by [[vbsp]] in the event of a map leak, and can be used to identify its approximate location.

Revision as of 02:37, 14 August 2006

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.

See Also

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