05-09-2010, 05:22 PM,
|
|
NaN
Posting Freak
|
Posts: 2,024
Threads: 120
Joined: Jan 2010
|
|
To draw the patches:
Replace lines 38-41 in roadpatch.cpp with:
Code: MATHVECTOR <float, 3> v0 = patch.GetPoint(0,0);
MATHVECTOR <float, 3> v1 = patch.GetPoint(0,3);
MATHVECTOR <float, 3> v2 = patch.GetPoint(3,3);
MATHVECTOR <float, 3> v3 = patch.GetPoint(3,0);
And color vdrift-data\textures\effects\racingline.png completely red.
Enable racingline.
|
|
05-09-2010, 05:56 PM,
|
|
NaN
Posting Freak
|
Posts: 2,024
Threads: 120
Joined: Jan 2010
|
|
To see the separate patches:
Modify lines 74-76:
Code: uvs[5] = 1;//(v2-v1).Magnitude();
uvs[6] = 0;
uvs[7] = 1;//(v2-v1).Magnitude();
Use a color gradient for racingline.png.
|
|
05-09-2010, 07:02 PM,
|
|
NaN
Posting Freak
|
Posts: 2,024
Threads: 120
Joined: Jan 2010
|
|
I was able to fix the last patch at rouen by using the third point row as first.
Original(third point row(lines 9-12) doesn't fit):
Code: -583.278 43.9189 212.332
-579.998 43.9189 211.711
-576.718 43.9189 211.089
-573.438 43.9189 210.468
-583.213 43.9202 212.661
-579.935 43.9202 212.038
-576.657 43.9202 211.416
-573.379 43.9202 210.794
-584.023 43.8964 208.364
-580.749 43.8964 207.74
-577.475 43.8964 207.116
-574.201 43.8964 206.491
-583.084 43.9227 213.318
-579.81 43.9227 212.694
-576.535 43.9227 212.069
-573.261 43.9227 211.445
Modified:
Code: -584.023 43.8964 208.364
-580.749 43.8964 207.74
-577.475 43.8964 207.116
-574.201 43.8964 206.491
-583.278 43.9189 212.332
-579.998 43.9189 211.711
-576.718 43.9189 211.089
-573.438 43.9189 210.468
-583.213 43.9202 212.661
-579.935 43.9202 212.038
-576.657 43.9202 211.416
-573.379 43.9202 210.794
-583.084 43.9227 213.318
-579.81 43.9227 212.694
-576.535 43.9227 212.069
-573.261 43.9227 211.445
The question is why the first row of the last patch is set as third?
|
|
|