Fixed bug(? kinda) with plane clipping points being too close together for gtkradiant's liking.

This commit is contained in:
chronokun 2015-07-22 15:32:02 +12:00
parent a2456a46f5
commit 3148eec685
2 changed files with 42 additions and 2 deletions

View File

@ -32,10 +32,10 @@ TPlanePoints GetPlanePoints(const TVector3f* _kpPoints, const size_t _kNumPoints
const TVector3f kCenter = ScalarMultiply(TVector3f(), Temp, (1.0f / (float)_kNumPoints));
// Find Tangent
const TVector3f kTangent = Normalize(TVector3f(), Subtract(TVector3f(), _kpPoints[1], _kpPoints[0]));
const TVector3f kTangent = ScalarMultiply(TVector3f(), Normalize(TVector3f(), Subtract(TVector3f(), _kpPoints[1], _kpPoints[0])), 128.0f);
// Find BiTangent
const TVector3f kBiTangent = Normalize(TVector3f(), CrossProduct(TVector3f(), kNormal, kTangent));
const TVector3f kBiTangent = ScalarMultiply(TVector3f(), Normalize(TVector3f(), CrossProduct(TVector3f(), kNormal, kTangent)), 128.0f);
PlanePoints.m_A = Add(TVector3f(), kCenter, kBiTangent);
PlanePoints.m_B = kCenter;

40
ReflexToQ3/testout.map Normal file
View File

@ -0,0 +1,40 @@
reflex map version 6
entity
type WorldSpawn
brush
vertices
-256.000000 0.000000 256.000000
256.000000 0.000000 256.000000
256.000000 0.000000 -256.000000
-256.000000 0.000000 -256.000000
-256.000000 -16.000000 256.000000
256.000000 -16.000000 256.000000
256.000000 -16.000000 -256.000000
-256.000000 -16.000000 -256.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5
brush
vertices
-64.000000 64.000000 256.000000
64.000000 64.000000 256.000000
64.000000 0.000000 128.000000
-64.000000 0.000000 256.000000
-64.000000 0.000000 128.000000
64.000000 0.000000 256.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 3 0 4
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 4
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 3 5
0.000000 0.000000 1.000000 1.000000 0.000000 3 4 2 5
entity
type PlayerSpawn
entity
type CameraPath
UInt8 posLerp 2
UInt8 angleLerp 2