Correction Mapping Cube

Tags: #<Tag:0x00007f703671cae8>

Hi,

pandur implemented the mapping function into the Cube OP for Cubed in cables (https://cables.gl/p/WmbX-X). Unfortunately some faces of the Cube are flipped and changed.

To visualize the problem I made a patch in which I corrected the OP code: https://cables.gl/p/5e020265284f556ca3475812

You have to change the orientation for Left, Right and Bottom (line 96-110)

        // Bottom face
        nx, ny,  z,
        x, ny,  z,
        x, ny, nz,
        nx, ny, nz,
        // Right face
        x,  y, z,
        x, y, nz,
        x, ny, nz,
        x, ny, z,
        // Left face
        nx,  y, nz,
        nx,  y,  z,
        nx, ny,  z,
        nx, ny, nz

And switch the Left and Right Face (line 174-183)

          // Right face
          sx*2+bias, sy+bias,
          sx*3-bias, sy+bias,
          sx*3-bias, sy*2-bias,
          sx*2+bias, sy*2-bias,
           // Left face
          sx*0+bias, sy+bias,
          sx*1-bias, sy+bias,
          sx*1-bias, sy*2-bias,
          sx*0+bias, sy*2-bias,

I hope that helps and maybe you can update the op with the next version update of cables.

Cheers,
dino

Hi Dino,
Thanks for the report and the fix!
We’ll make sure to implement it in the next update.