problem with jit.gl.texture and jit.gl.gridshape


    Feb 20 2007 | 11:57 am
    i seemingly have been very little luck getting this object to work for me!
    i have a texture in jit.gl.texture assigned to jit.gridshape... it works as expected with blend_enable switched off, but as soon as i switch it on the object disappears?
    maybe i'm missing something obvious?
    any help appreciated, patch below.
    [system info]
    mbp 2.16ghz / 1gb ram
    osx.4.8 + recent updates
    maxmsp 4.6.2 +incremental updates / jitter 1.6b2
    justin

    • Feb 20 2007 | 3:11 pm
      Quote: justin wrote on Tue, 20 February 2007 12:57
      ----------------------------------------------------
      > i seemingly have been very little luck getting this object to work for me!
      >
      > i have a texture in jit.gl.texture assigned to jit.gridshape... it works as expected with blend_enable switched off, but as soon as i switch it on the object disappears?
      >
      > maybe i'm missing something obvious?
      Yes you are ;-) Your gradient goes from 0. 0. 0. 0. to 0. 1. 1. 1., so when you turn on the blend your alpha channel kicks in at 0., no matter what.
      If you want a "blend gradient" I guess a 0. 0. 0. 0. to 1. 0. 0. 0. gradient is what you should do?
      (caveat: I could be wrong too ;) )
      Cheers,
      Andreas.
    • Feb 20 2007 | 3:40 pm
      oops thanks for pointing that one out : )
      forgot about the alpha layer within the rgb values!
      cheers.