Jitter-Lua 3dTexture read / write problem


    Nov 23 2016 | 4:49 pm
    We are trying to get 3d textures in Lua but we have no success.
    There is an example file attached with a Lua script and two shaders (one is writing to texture and the other one is reading the texture).
    The output should be red. Sure I'm missing something obvious...
    Any help will be much appreciated!!
    Thanks

    • Nov 23 2016 | 6:55 pm
      I've noticed that if you turn high_res in jit.gl.world on/off the result is as expected (red)...
      No clue what's going on.
    • Nov 23 2016 | 7:08 pm
      Oh.. and we are on win10 btw
    • Dec 02 2016 | 6:12 pm
      Just in case someone wants to test this on apple. Here is an opengl 120 version .
    • Dec 02 2016 | 6:15 pm
      for some reason the forum doesn't allow me to upload a rar file. Here is a zip version..
    • Dec 02 2016 | 7:11 pm
      hi Luca.
      i'm sorry to say, but Jitter does not support capturing to a 3D texture. currently, the only way to write to a 3D texture is via matrix input.
    • Dec 06 2016 | 10:04 am
      Thanks Rob, but thats a bummer.
      I can't really understand why this isnt implemented. I mean, if c74 include the read functionallity for 3d Textures, why not also the write function? We are talking about a few more lines of code here...
    • Feb 09 2017 | 4:10 pm
      Hi Rob! Is it possible to generate a texture (maybe with jit.gl.pix) and convert it to an image? And then use the image as input for a jit.gl.cubemap? Thanks in advance!
    • Feb 09 2017 | 5:27 pm
      sure, you can either readback to matrix by sending the texture to a jit.matrix object, or using jit.gl.asyncread. depends on your specific needs what will work better for you.