objTo3d-tiles icon indicating copy to clipboard operation
objTo3d-tiles copied to clipboard

gerented bounding volume(region) has reversed dimension and direction

Open CrashedBboy opened this issue 7 years ago • 2 comments

https://github.com/PrincessGod/objTo3d-tiles/blob/0e0d32fa3a8cca0a07bd782945cc333690f433e8/lib/obj2Tileset.js#L31

the indice of Height and Y are wrong.

Line 31 should be minmaxPoint.max[1] - minmaxPoint.min[1]; Line 35 should be var offsetY = height / 2 + minmaxPoint.min[1]; Line 40, 41 should be minmaxPoint.min[2] and minmaxPoint.max[2]

https://github.com/PrincessGod/objTo3d-tiles/blob/0e0d32fa3a8cca0a07bd782945cc333690f433e8/lib/createSingleTileset.js#L62

Line 62 should be + offsetY / tileHeight * latitudeExtent; Line 64 should be + offsetY / tileHeight * latitudeExtent; (use plus sign instead of minus sign)

CrashedBboy avatar Sep 06 '18 02:09 CrashedBboy

My output seems to be tilted 90 degrees on the roll axis. I tried your patch but it seems it did not make a difference.

petergerten avatar Jul 13 '19 10:07 petergerten

it works well, thanks

hy785737396 avatar May 25 '21 01:05 hy785737396