Extract RGBA channel informations from texture

   3660   2   0
User Avatar
Member
4 posts
Joined: Dec. 2016
Offline
Hi thanks for stopping by !

I'm currently making a Terrain. I have used the heightfield tool to create maps in order to texture my terrain. The “heightfield output” node generates packed textures. Each terrain layer(beckrock, sediment, water, flow) is stored inside a color channel. I want to extract the color information from my texture.

How would you go about extracting color information(R,G,B,A) from a texture map inside the material tab ?

I tried modifying the channel parameter inside a texture node but it didn't work.

Thank you for your time.

ElPolloLoco6498
Edited by ElPolloLoco6498 - May 22, 2019 07:24:58

Attachments:
texture_channel.PNG (527.0 KB)
packed_raster.PNG (77.8 KB)
SneferTileExplain.jpg (1.0 MB)

User Avatar
Member
8551 posts
Joined: July 2007
Offline
Texture Channel parm is to specify the AOV or layer in your image (for image formats that can hold image layers like .exr, .rat, …)
you can leave it blank for beauty layer

the clr output on your Texture VOP is Vector4 and contains RGBA channels for your layer (Texture Channel)
so just append Vector4-to-float VOP to split it to float R,G,B,A values

clr can also be Vector3 if the signature is RGB Values instead of RGBA Values, in that case you can use Vector-to-float
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
4 posts
Joined: Dec. 2016
Offline
Thanks a lot it works ! i'm going to continue my terrain now
  • Quick Links