"3D waveform"
Hi everybody,
I would like to have a waveform picture captured by [jit.cacth~] to be "transformed/modified" via a combination of [jit.expr] and [jit.gl.mesh] objects, inspired by a great tutorial by Andrew Benson.
I can't find a solution to connect correctly the different parts of the patch so that the waveform would be 'integrated" in the [jit.gl.mesh] operations.
Thanks for any help !
Nakatano.
jit.gl.graph is a 3D geometric shape. if you want to apply it to a jit.gl.mesh as a texture, you have to capture it to the texture.
the best way to do this is to bind the jit.gl.graph to a jit.gl.node @capture 1
the gl.node will output a texture that can be applied to the gl.mesh.
Hi Robert,
Thanks !
Just one more question: is there any way/attribute to "erase" (or make invisible) the background geometrical form so I could have the waveform only onscreen. That way, for example, using the third mathematical message (jit.expr), I would have the "rotating" waveform only ?
I took a look at the reference pages for the [jit.gl.node] and [jit.gl.graph] objects but didn't find any solution.
two options.
either remove the @erase_color attribute from the jit.gl.node box. this will clear the erase_color overide of jit.gl.node, meaning it's erase_color will match that of the jit.gl.render (the background color).
or set the alpha (transparency) value of the jit.gl.node @erase_color to 0, and set @blend_enable 1 and @depth_enable 0 on your jit.gl.mesh.
this will allow you to actually see through the mesh shape.
Works great !
I begin to understand the logig of jit.gl objects...
Thanks a lot !