PRT: Difference between revisions
Jump to navigation
Jump to search
TomEdwards (talk | contribs) m (link fixes) |
(general improvements. noticed that the <pre> box text was displaying gray which made it harder to read. i wonder if the recent wiki update changed that.) |
||
Line 1: | Line 1: | ||
A '''p'''o'''rt'''al (.prt) file is a list of the portals in your .[[BSP]], generated by [[ | 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: | ||
< | <pre> | ||
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)... | |||
... | |||
</pre> | |||
The PRT1 signature is specific to [[Source]], older tools don't generate it. You can view these files in [[ | The PRT1 signature is specific to [[Source]], older tools don't generate it. You can view these files in [[GLView]]. | ||
== 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. | |||
* [[ | |||
[[Category:Level Design]] [[Category:Glossary]] | [[Category:Level Design]] [[Category:Glossary]] |
Revision as of 18:11, 6 July 2018
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.