noggit3 icon indicating copy to clipboard operation
noggit3 copied to clipboard

Script Brushes: Gaps between chunks or adts

Open ihm-tswow opened this issue 4 years ago • 0 comments
trafficstars

Transferred from https://github.com/tswow/noggit3/issues/41 Originally by https://github.com/gratural

I been playing with script functions in 0.0.3 and find that our favorite gaps have reason - different xy coordinate precision of points who living in various chunks and adt's. As i see, FixAllGaps() func when merging pick only of 2 vertices from 4. And any action, like raise, bloor and fixGaps dont changed xy coords - only z. As we know, between near each two grid edge 533.33333 / 16 / 8 = 4.16666... units. (Interesing, why not 512=4.0?)

Is possible changing FixAllGaps work algoryth - to set xy positions edged (boundary) vertices еxactly by 4.66666666666666666666666666666 * cell units? Or even, make special function, which recalculate and move all existing lanscape by right coords?

adt chunk wmc_vert_tool.lua.txt

ihm-tswow avatar Aug 09 '21 12:08 ihm-tswow