objTo3d-tiles
objTo3d-tiles copied to clipboard
gerented bounding volume(region) has reversed dimension and direction
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)
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.
it works well, thanks