New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PRT file viewing #1157
Comments
Can you attach a map file with one prt file in each format? Also is there a description or spec of these files? |
I support this. The info from a prt file may be cluttered visually, but it my2cents Maik 2016-01-11 22:25 GMT+01:00 Eric Wasylishen notifications@github.com:
|
I didn't find a spec after doing a quick search, but I can prepare a test map + a PRT in each format, and a description of how to parse them. They're pretty simple formats; each line describes a polygon with the number of verts and the x/y/z coordinates of each vertex. |
Great, please do. If it's that simple, I'll add it right away. |
Here's the sample map + 3 types of prt file: portaltest.zip The PRT1 format is: (my comments wrapped in C-style comments)
Also, the vertex coordinates can be floats. PRT2 (used by tyrutils) is the same, except there is an extra line in the header to ignore (number of clusters):
This is the format used by txqbsp-xt. It's the same as PRT2, except the header order is different, and the cluster/leaf mapping after the portals is different, but that's not needed to render the portals.
Let me know if anything is unclear :-) |
* 1157: Portal file loading Fixes #1157 * 1157: PrimitiveRenderer: disable depth writes when drawing transparent objects * 1157: Tweak portal file rendering * 1157: add a PortalFileTest * 1157: finish tests * 1157: use std::unique_ptr for m_pointFile and m_portalFile * 1157: PrimitiveRenderer: fix broken operator< implementations * 1157: PrimitiveRenderer: render opaque objects first, within a given PrimitiveRenderer
Just a wishlist thing, but it would be cool to have rendering of portals from PRT files. I imagine having "Load PRT" and "Unload PRT" menu items, similar to the ones for PTS files.
Also nice would be supporting the vanilla PRT1 format + the extended formats used by tyrutils and txqbsp-xt when detail brushes are in use.
The text was updated successfully, but these errors were encountered: