Forums > Jitter

Sending colour data to jit.gl.mesh from jit.gl.pix


Feb 07 2017 | 3:01 am

Hi,

I’m getting on a bit further with my exploration of jit.gl.pix and the power this has for things like particle systems. I’m able to send vertex data to a jit.gl.mesh as a texture, which enables me to have systems running smoothly with over 1/4 million particles: however, what I’d like to be able to do now is have individual colour data for each particle. I’m keeping colour data in a second texture alongside the texture that contains particle position, but I’m struggling to work out how to pass this into the jit.gl.mesh without bringing this texture back onto the CPU and feeding into input 4 of the mesh as a matrix – which slows the whole thing down.

Does anybody have any suggestions as to whether or how this might be possible?

Many thanks

Tom

Feb 07 2017 | 5:02 am

It turns out that one possible solution is to use multi texturing on the jit.gl.mesh – in case it is of any use to anybody here, I’m uploading an example to illustrate…

— Pasted Max Patch, click to expand. —
Viewing 2 posts - 1 through 2 (of 2 total)

Forums > Jitter