How does one obtain the jit.gl.text texture?
Hello!
I'm trying to create a custom shader for rendering jit.gl.text objects (in 2d mode). But there seems to be no way for my GLSL code to access the texture containing the text?
How can I find the texture that's used by this object? I'd be happy also to just know what the name is of the internal texture object so I could project that onto a videoplane with my shader attached to it, as a workaround
!t
Hi TARIK, is jit.gl.node @capture 1 an option for you, something like here:
https://cycling74.com/forums/how-to-make-those-stunning-videogame-glitches-!/replies/1#reply-5ce70f7771e603431be84946 ?
yeah I think capturing to a texture via jit.gl.node is your best option. the internal texture atlas containing the font glyphs is not something we can expose to the object.
Kay, thanks to you both!
Hello Tarik, did you manage to make a texture out of jit.gl.text?
I need this patch in order to send it to syphon. I'm trying but I'm fully lost... Can some body help me? thx
I ended up going 'ah whatever' and just rendering and drawing the text every single frame, rather than storing anything in textures. But if you're generally wondering how to get textures out of max msp into syphon, you can download the syphon package (file->show package manager->search for 'syphon') and look at the help file for 'jit.gl.syphonserver'.
If your question is more about how to render a scene to texture, take a look at the 'jit.gl.node' helpfile.
I believe a combination of whats in those two helpfile (and perhaps that of 'jit.gl.text') should give you the info you need