[Gtkradiant] r416 - in GtkRadiant/trunk: libs libs/mathlib tools/quake3/common tools/quake3/q3map2
svn-noreply at zerowing.idsoftware.com
svn-noreply at zerowing.idsoftware.com
Mon Jan 10 00:15:47 CST 2011
Author: rambetter
Date: Mon Jan 10 00:15:47 2011
New Revision: 416
Modified:
GtkRadiant/trunk/libs/mathlib.h
GtkRadiant/trunk/libs/mathlib/mathlib.c
GtkRadiant/trunk/tools/quake3/common/polylib.c
GtkRadiant/trunk/tools/quake3/common/polylib.h
GtkRadiant/trunk/tools/quake3/q3map2/brush.c
GtkRadiant/trunk/tools/quake3/q3map2/map.c
GtkRadiant/trunk/tools/quake3/q3map2/q3map2.h
Log:
Importing code changes for q3map2 from Rambetter-math-fix-experiments branch
into trunk. Right now all the new code that fixes problems is turned off.
There are three new #defines in q3map2.h:
EXPERIMENTAL_HIGH_PRECISION_MATH_Q3MAP2_FIXES, EXPERIMENTAL_SNAP_NORMAL_FIX,
and EXPERIMENTAL_SNAP_PLANE_FIX. All of these are currently set to 0, which
means don't enable that new code. You can easily edit these to be 1 in order
to enable the new code.
There are very very minor changes to the code even with these three #defines
disabled. They are as follows.
- In PlaneEqual() in map.c, now considering deltas equal to given epsilon
values as "far enough to be different". Previously, the '<=' operation was
used, now '<' is being used.
- In FindFloatPlane() in map.c, considering delta equal to distanceEpsilon
(for plane distance) to be sufficiently far away. Before, delta had to be
strictly greater than distanceEpsilon.
- VectorNormalize() in mathlib.c is more accurate now. This change itself
causes at least one regression test to succeed. The previous implementation
of VectorNormalize() caused excessive errors to be introduced due to sloppy
arithmetic.
Note, the epsilon changes account for the possibility that the epsilons
are set to 0.0 on the command-line.
Modified: GtkRadiant/trunk/libs/mathlib.h
Url: http://zerowing.idsoftware.com/viewcvs/radiant/GtkRadiant/trunk/libs/mathlib.h?view=diff&rev=416&p1=GtkRadiant/trunk/libs/mathlib.h&r1=415&p2=GtkRadiant/trunk/libs/mathlib.h&r2=416
==============================================================================
Modified: GtkRadiant/trunk/libs/mathlib/mathlib.c
Url: http://zerowing.idsoftware.com/viewcvs/radiant/GtkRadiant/trunk/libs/mathlib/mathlib.c?view=diff&rev=416&p1=GtkRadiant/trunk/libs/mathlib/mathlib.c&r1=415&p2=GtkRadiant/trunk/libs/mathlib/mathlib.c&r2=416
==============================================================================
Modified: GtkRadiant/trunk/tools/quake3/common/polylib.c
Url: http://zerowing.idsoftware.com/viewcvs/radiant/GtkRadiant/trunk/tools/quake3/common/polylib.c?view=diff&rev=416&p1=GtkRadiant/trunk/tools/quake3/common/polylib.c&r1=415&p2=GtkRadiant/trunk/tools/quake3/common/polylib.c&r2=416
==============================================================================
Modified: GtkRadiant/trunk/tools/quake3/common/polylib.h
Url: http://zerowing.idsoftware.com/viewcvs/radiant/GtkRadiant/trunk/tools/quake3/common/polylib.h?view=diff&rev=416&p1=GtkRadiant/trunk/tools/quake3/common/polylib.h&r1=415&p2=GtkRadiant/trunk/tools/quake3/common/polylib.h&r2=416
==============================================================================
Modified: GtkRadiant/trunk/tools/quake3/q3map2/brush.c
Url: http://zerowing.idsoftware.com/viewcvs/radiant/GtkRadiant/trunk/tools/quake3/q3map2/brush.c?view=diff&rev=416&p1=GtkRadiant/trunk/tools/quake3/q3map2/brush.c&r1=415&p2=GtkRadiant/trunk/tools/quake3/q3map2/brush.c&r2=416
==============================================================================
Modified: GtkRadiant/trunk/tools/quake3/q3map2/map.c
Url: http://zerowing.idsoftware.com/viewcvs/radiant/GtkRadiant/trunk/tools/quake3/q3map2/map.c?view=diff&rev=416&p1=GtkRadiant/trunk/tools/quake3/q3map2/map.c&r1=415&p2=GtkRadiant/trunk/tools/quake3/q3map2/map.c&r2=416
==============================================================================
Modified: GtkRadiant/trunk/tools/quake3/q3map2/q3map2.h
Url: http://zerowing.idsoftware.com/viewcvs/radiant/GtkRadiant/trunk/tools/quake3/q3map2/q3map2.h?view=diff&rev=416&p1=GtkRadiant/trunk/tools/quake3/q3map2/q3map2.h&r1=415&p2=GtkRadiant/trunk/tools/quake3/q3map2/q3map2.h&r2=416
==============================================================================
More information about the Gtkradiant
mailing list