Hey @JGG!
When I put your map in my mapper, I am seeing three things on a basic 1D preview:
- First, the pixel order seems to be correct - one strip is reversed so they flow correctly in this 1D pattern.
- The strips do not actually meet at a point in 3d space. The point where they should meet seems to have a jump in its Y coordinate from one segment to the next.
- Their placement in 3D space is mostly on the X-Z plane, but I think you’d want to start with the X-Y plane so that most
render2D(index, x, y)
functions look good.
A few ideas:
- If you exported from CAD, try flipping your coordinate system or rotating the model till the output is mostly varying in X-Y.
- Try making your map from two calls to an arbitrary line-interpolation map generator instead of using coordinates. This will also help you fix the disconnect between segments.
- Manually swap all Z and Y coordinates in the map
- As a quick fix to verify how much this X-Z plane thing is a problem right now, add this in the 2D-only renderers to use Z for Y:
export function render3D(index, x, y, z) {
render2D(index, x, z)
}
And use this in the 3D ones:
export function render3D(index, x, y, z) {
// Insert this line only
var tmp = z; z = y; y = tmp
}