Commit graph

23 commits

Author SHA1 Message Date
Randy Heit
8e785ba3b1 - Update writing of normal nodes for the new MapNodeEx structure.
SVN r3983 (trunk)
2012-12-08 02:30:50 +00:00
Randy Heit
732d9bc710 - Added a new node format (ZGL3/XGL3) which allows node splitters to have fractional precision.
This can only happen with UDMF, and since UDMF is restricted to GL nodes, there's no need for a
  non-GL version of these nodes.
- Added additional debug output.
- Remove the outdated zdbsp.vcproj project file.

SVN r3981 (trunk)
2012-12-07 06:19:25 +00:00
Randy Heit
9c389f90c8 - Fixed: ZDBSP wrote uninitialized data for normal segs.
SVN r2630 (trunk)
2010-08-29 04:04:37 +00:00
Randy Heit
2de2b094ec ZDBSP:
- Add headers to generated CMake projects.
- Made SSELevel global so that ClassifyLineBackpatch can see it without being part of
  FNodeBuilder. With backpatching enabled, it's rather pointless to have a different one
  per nodebuilder instance, anyway.
- Change ClassifyLineBackpatch so it doesn't need any inline assembly to do its magic.
- Change the ClassifyLine functions to be extern "C" linkage.

SVN r2410 (trunk)
2010-07-04 21:11:25 +00:00
Randy Heit
594e1fd562 - Bumped ZDBSP version to 1.16.
- Fixed: ZDBSP stored seg vertices in 16-bit words, so it failed to write proper nodes for
  maps that ended up with more than 65536 vertices after node building, even though it can
  write formats that could support it.
- Sync debugging output between ZDBSP and ZDoom's internal node builder.

SVN r2388 (trunk)
2010-06-27 20:05:28 +00:00
Randy Heit
c9406fbd45 - Fixed: FProcessor::WriteGLVertices() used the normal vertices array instead of the GL one.
SVN r2335 (trunk)
2010-05-25 02:38:41 +00:00
Christoph Oelckers
478ecd5178 - fixed GLv2 nodes writing.
SVN r2290 (trunk)
2010-04-18 20:12:12 +00:00
Christoph Oelckers
b6c764a94b - added new option to ZDBSP to write an uncompressed version of the compressed node format.
SVN r2286 (trunk)
2010-04-17 20:47:09 +00:00
Randy Heit
c512b642a8 - ZDBSP update:
* Fixed: Polyobject detection was disabled for UDMF maps due to an incorrect
    namespace check.
  * Fixed: The polyobject spawn type PO_SPAWNHURT_TYPE (9303) was not recognized
    as a valid spawn spot, so split avoidance would not be enabled for any polyobjects
    that used them.
  * Added a -c (--comments) command line option to write entity numbers in comments
    next to each entity in UDMF maps (ala the upcoming Doom Builder 2).

SVN r1702 (trunk)
2009-07-04 00:12:14 +00:00
Randy Heit
a7fc2fc96c - Fixed: ZDBSP wrote broken VERTEXES lumps.
SVN r1484 (trunk)
2009-03-17 03:33:04 +00:00
Randy Heit
034d7ab10a - Added ZGL2 output support to ZDBSP for maps with more than 65534 lines.
- Fixed some GCC warnings.



SVN r1483 (trunk)
2009-03-17 02:02:58 +00:00
Christoph Oelckers
bf47221046 - UDMF implementation for ZDBSP.
SVN r1482 (trunk)
2009-03-15 12:18:25 +00:00
Christoph Oelckers
9f300f1b06 - Started implementing UDMF support for ZDBSP: Fixed all data structures to hold UDMF data.
SVN r1466 (trunk)
2009-03-07 20:35:13 +00:00
Randy Heit
c51e49f02f For ZDBSP:
- Fixed the OrgSectorMap generation in FLevel::RemoveExtraSectors().
- Added a version of ClassifyLine compiled with SSE (but not SSE2) optimization
  for people with Pentium 3/Athlon XPs to use.
- Added ClassifyLine backpatching for the GCC Windows build. The first time a
  function calls ClassifyLine, it has to check which version to use and jump
  to the appropriate one. After that, it calls the desired one straight away.

SVN r227 (trunk)
2006-06-26 20:39:57 +00:00
Randy Heit
06d1bf0354 - Added a reject fixer to correct the reject when sectors are removed instead
of just throwing it away.

SVN r174 (trunk)
2006-06-06 22:38:27 +00:00
Randy Heit
6a1a0e007a - Added runtime detection of SSE2 so that ZDBSP can select either the regular
ClassifyLine routine or a version compiled with SSE2 optimizations. This
  pretty much removes any reason to do a separate SSE2 build, since most of
  the time is spent in ClassifyLine, so using SSE2 in just that one function
  helps the most.

SVN r172 (trunk)
2006-06-06 19:15:39 +00:00
Randy Heit
6d799f0a1c - Added a "vertex map" for ZDBSP's vertex selection. (Think BLOCKMAP for
vertices instead of lines.) On large maps, this can result in a very
  significant speed up. (In one particular map, ZDBSP had previously
  spent 40% of its time just scanning through all the vertices in the
  map. Now the time it spends finding vertices is immeasurable. Now 68%
  of its time on that map is spent inside ClassifyLine--because that
  routine is called more than 16 million times, which suggests that even
  a minor speedup in that routine should have a big impact--if I could
  just think of how that might happen.) On small maps, this won't make
  much of a difference, because the number of vertices to search was so
  small to begin with.

SVN r167 (trunk)
2006-06-06 02:45:48 +00:00
Randy Heit
dd6f2eab90 - Fixed writing of v5 GL segs in ZDBSP.
- Fixed ZDBSP compilation under Linux, including support
  for 64-bit architectures.


SVN r162 (trunk)
2006-06-01 17:32:32 +00:00
Randy Heit
21aeec0e3a - Added support for creating v5 GL nodes to ZDBSP.
SVN r159 (trunk)
2006-06-01 01:05:24 +00:00
Randy Heit
938f25e39b Added a Makefile for building ZDBSP with GCC and SSE configurations for VC.
SVN r156 (trunk)
2006-05-31 20:25:20 +00:00
Randy Heit
1a979de350 ZDBSP fixes:
- AddIntersection() should convert to doubles before subtracting the vertex
  from the node, not after, to avoid integer overflow. (See cah.wad, MAP12
  and MAP13.) A simpler dot product will also suffice for distance calculation.
- Splitters that come too close to a vertex should be avoided. (See cata.wad.)
- Red-Black Tree implementation was broken and colored every node red.
- Moved most of the code for outputting degenerate GL subsectors into another
  function.
- Removed forgotten debugging file dump from WriteSSectors2().
- Enabled reference optimization and COMDAT folding in the linker for a slightly
  smaller executable.

SVN r155 (trunk)
2006-05-31 15:39:58 +00:00
Christoph Oelckers
714383b6c0 - Fixed: To prevent the pointer cleanup code from crashing numsectors has
to be set to 0 when the sectors array is deleted.


SVN r64 (trunk)
2006-04-23 00:03:32 +00:00
Randy Heit
24d4f0b45c Initial commit of zdbsp.
SVN r12 (trunk)
2006-02-24 05:17:19 +00:00