TextureToArray_v3 Op

TextureToArray

extract colors from a texture


This op will take an incoming texture and convert each color pixel value to an Array 4 (RGBA).

When using 32bit textures your array values will be in the range of 0.0-1.0.
8bit textures will have values of 0-255.

Be careful with using high resolution textures. For example a texture of only 100x100 pixel will result in 40,000 values.


Full Name
  • Ops.Gl.TextureToArray_v3
Visibility
  • Core Op - Official cables op
License
  • MIT
Authorgithub








No op example found on this server

INPUT PORTS


update (Trigger)

Trigger the op

texture (Object)

texture in to turn into an array. Beware of high resolutions.

OUTPUT PORTS


trigger (Trigger)

Trigger out

Colors (Array)

Outputs the RGBA arrays as one large array

Floating Point (boolean Number)

If HDR is enable on Image compose this will be true else false

Num Pixel (Number)

Patches using TextureToArray_v3

  • Examples
  • Public
  • My Patches

Changelog


cloned op from Ops.Gl.Texture2ColorArrayuser avatarpandur - 2023-02-03 15:35
bugfixFix problem with floating point texturesuser avatarpandur - 2024-08-09 14:47
improvementAdd option to not always output floating point numbersuser avatarpandur - 2024-08-30 11:31
bugfixFix outputing wrong amount of valuesuser avatarpandur - 2024-09-04 07:57
improvementReduce complexity of op, remove channel conversion and bytes to float. just output the pixel values if possibleuser avatarpandur - 2024-09-04 08:22
renameOps.Gl.TextureToColorArray_v3 renamed to Ops.Gl.TextureToArray_v3user avatarpandur - 2024-10-30 08:30