Talk:PTS: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
 
No edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
Someone please fix this (don't have time at the moment).  A portal (.prt) file is not used to find leaks, it is simply a list of the portals in your .bsp.  Its a simple ASCII file and its format is as follows (off the top of my head - added support for this format to Craft the other day):
Someone please fix this (don't have time at the moment).  A portal (.prt) file is not used to find leaks, it is simply a list of the portals in your .bsp.  Its a simple ASCII file and its format is as follows (off the top of my head - added support for this format to Craft the other day):


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)...
...
...


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.
Line 13: Line 13:
A point file (.pts) is used for finding leaks.  It is a list of points which can be used to generate lines as the author suggests.  Its format is as follows:
A point file (.pts) is used for finding leaks.  It is a list of points which can be used to generate lines as the author suggests.  Its format is as follows:


X Y Z
X Y Z
X Y Z
X Y Z
X Y Z
X Y Z
...
...


--[[User:Nem|Nem]] 00:56, 14 Aug 2006 (PDT)
--[[User:Nem|Nem]] 00:56, 14 Aug 2006 (PDT)
Is PTS still a used format? I've never heard of this, only LIN. [[User:Pinsplash|Pinsplash]] ([[User talk:Pinsplash|talk]]) 20:44, 15 May 2018 (UTC)

Latest revision as of 13:44, 15 May 2018

Someone please fix this (don't have time at the moment). A portal (.prt) file is not used to find leaks, it is simply a list of the portals in your .bsp. Its a simple ASCII file and its format is as follows (off the top of my head - added support for this format to Craft the other day):

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.

A point file (.pts) is used for finding leaks. It is a list of points which can be used to generate lines as the author suggests. Its format is as follows:

X Y Z
X Y Z
X Y Z
...

--Nem 00:56, 14 Aug 2006 (PDT)

Is PTS still a used format? I've never heard of this, only LIN. Pinsplash (talk) 20:44, 15 May 2018 (UTC)