]> de.git.xonotic.org Git - xonotic/netradiant.git/blob - regression_tests/q3map2/disappearing_sliver3/NOTES.txt
::zerowing-base=428
[xonotic/netradiant.git] / regression_tests / q3map2 / disappearing_sliver3 / NOTES.txt
1 Random notes for Rambetter, don't expect to understand this:
2 ============================================================
3
4 Brush 0 is the problem.
5
6 Side 0 is the problem (under surf tri).
7 Side 1 is the +y 4-face.
8 Side 2 is the -x 4-face.
9 Side 3 is the -y 4-face.
10 side 4 is the +z tri.
11
12 (6144, 16122) -> (6784, 16241)
13 x "climb" of side 1 is 6784 - 6144 = 640.
14 y "climb" of side 1 is 16241 - 16122 = 119.
15
16 x/y "climb rate" of side 1 is 640 / 119 = 5.378151261.
17
18 After clipping side 0 against side 1, we get
19 ************
20 **** (-262144, -33762.8125) -> (262144, 63722)
21 ************
22 The slope of that is (262144 + 262144) / (63722 + 33762.8125) = 5.378150571. 
23
24 (-262144, y) -> (6784, 16241)
25 So (6784 + 262144) / (16241 - y) = 640 / 119
26 So y = 16241 - ((119 * (6784 + 262144)) / 640) = -33762.8
27
28 (6144, 16122) -> (262144, y)
29 So (262144 - 6144) / (y - 16122) = 640 / 119
30 So y = 16122 + ((119 * (262144 - 6144)) / 640) = 63722
31
32 After clipping side 0 against side 1 should have
33 ************
34 **** (-262144, -33762.8) -> (262144, 63722)
35 ************
36
37 Random notes for Rambetter, don't expect to understand this:
38 ============================================================
39
40 Brush 0 is the problem.
41
42 Side 0 is the problem (under surf tri).
43 Side 1 is the +y 4-face.
44 Side 2 is the -x 4-face.
45 Side 3 is the -y 4-face.
46 side 4 is the +z tri.
47
48 (6144, 16122) -> (6784, 16241)
49 x "climb" of side 1 is 6784 - 6144 = 640.
50 y "climb" of side 1 is 16241 - 16122 = 119.
51
52 x/y "climb rate" of side 1 is 640 / 119 = 5.378151261.
53
54 After clipping side 0 against side 1, we get
55 ************
56 **** (-262144, -33762.8125) -> (262144, 63722)
57 ************
58 The slope of that is (262144 + 262144) / (63722 + 33762.8125) = 5.378150571. 
59
60 (-262144, y) -> (6784, 16241)
61 So (6784 + 262144) / (16241 - y) = 640 / 119
62 So y = 16241 - ((119 * (6784 + 262144)) / 640) = -33762.8
63
64 (6144, 16122) -> (262144, y)
65 So (262144 - 6144) / (y - 16122) = 640 / 119
66 So y = 16122 + ((119 * (262144 - 6144)) / 640) = 63722
67
68 After clipping side 0 against side 1 should have
69 ************
70 **** (-262144, -33762.8) -> (262144, 63722)
71 ************
72