Page 1 of 1

How do you convert a Texture2D channel to a float

Posted: Wed Dec 13, 2023 00:26
by JBroadway
How do you convert a Texture 2D channel into a float?

Image

I'm trying to unpack a video source colors into it's respective RGBA values, then merge it back together.
I went through the Wire documentation under Texture2D channels and TextureRGBA channels and was unable to find anything (unless I'm missing something).
https://resolume.com/support/en/wire-da ... 2d-channel

Re: How do you convert a Texture2D channel to a float

Posted: Wed Dec 13, 2023 00:46
by Arvol
I don't think you can. What are you trying to get? A float value for each pixel, or do you want to add some logic to a texture? (You can add/multiply/etc a texture with a float value)

Re: How do you convert a Texture2D channel to a float

Posted: Wed Dec 13, 2023 01:45
by JBroadway
Arvol wrote: Wed Dec 13, 2023 00:46 I don't think you can. What are you trying to get? A float value for each pixel, or do you want to add some logic to a texture? (You can add/multiply/etc a texture with a float value)
I guess more so a float value for each pixel so I can manipulate individual RGBA value for creative effects. I'd imagine you could create some really cool stuff if you could do that.

Re: How do you convert a Texture2D channel to a float

Posted: Wed Dec 13, 2023 03:01
by Arvol
That requires GPU to CPU communication. It's on the roadmap.