How do you convert a Texture2D channel to a float

Post your questions here and we'll all try to help.
Post Reply
JBroadway
Posts: 14
Joined: Wed Nov 29, 2023 07:17

How do you convert a Texture2D channel to a float

Post 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

User avatar
Arvol
Posts: 2893
Joined: Thu Jun 18, 2015 17:36
Location: Oklahoma, USA

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

Post 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)

JBroadway
Posts: 14
Joined: Wed Nov 29, 2023 07:17

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

Post 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.

User avatar
Arvol
Posts: 2893
Joined: Thu Jun 18, 2015 17:36
Location: Oklahoma, USA

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

Post by Arvol »

That requires GPU to CPU communication. It's on the roadmap.

Post Reply