Loading...
Logo
Processing Forum

GLSL and 32 bit textures?

in General Discussion  •  Other  •  1 year ago  
I have just been fiddling around with processing 2.0's PShader capabilities (Awesome stuff!) and was wondering if it is possible to create textures with a higher bit depth for data manipulation? Using PImage for this is quite limited with 8 bit images. Ideally I would like 16 or 32 bit textures but don't really know where to look for creating and manipulating these in processing. Can anyone point me towards some resources to look at for this?

Cheers,
Ben 





Replies(1)

Hi,

there is an interesting tutorial about this here.  http://www.mathematik.uni-dortmund.de/~goeddeke/gpgpu/tutorial.html

As you can see, there are several texture formats that fit the need for representing 32 bit data. I guess it would be necessary to inspect PShader source code to find if it is possible to access or change that.

Anyway, wouldn't it be a valid workaround to pack your 32 bit data into the four 8 bit channels (ARGB) of a PImage and unpack them in the shader code?

Maybe now the PShader API is done more documentation is on the way, it is a really interesting topic.

Cheers