simple way to create a texture map into cube ?


    Jun 17 2013 | 6:47 am
    Hello, I would like to apply 6 jpegs to 6 faces of my cube, how could I do that ? thanks

    • Jun 17 2013 | 6:57 pm
      you could possibly use jit.gl.cubemap, with jit.gl.skybox @infinite 0, @cull_face 2, but this has some limitations, such as fixing the position of the skybox at the world origin.
      otherwise, simply create 6 of gl.gridshape @shape plane, and give each a texture, position, and orientation to form a cube.
    • May 01 2017 | 10:51 am
      It's a bit an old thread but I'm having the same question as AD.
      I would like to use only one image containing all the faces, like this one
      Possible ??
      Thanks,
      Yoann
    • May 01 2017 | 11:25 am
      ...I found the answer in this thread:
      Why does it work with plato and not with gridshape ?