Offset Texture with Vertex Color Attribute
Posted: Tue May 03, 2022 11:30 am
Hey Juanjo,
I've got the following issue: I would like to use the colour attribute of the underlying geometry, to drive the offset for a texture I intend to use in the material for this geometry. In my case, I'd like these colour values to affect the texture offset for each little bar of wood.
In both Redshift and even Unreal Engine, piping a colour value into a transform/translate input means that it will use the red and green channels for X and Y, therefore giving me a different texture offset for each piece of wood.
In Octane, I've tried piping the Color Vertex Attribute node into the translation input of a Transform 2D node (that controls the albedo texture), but unfortunately it doesn't work.
I then tried to find any utility nodes that would let me turn the Color Vertex Attribute node's colour output somehow into the 3float input the Transform 2D node expects, but there doesn't seem to be any combination that can do that either.
Would you have any idea, how I would be able to use those colour values I've got on my geometry to drive the texture offset as described? That'd be great!
I've got the following issue: I would like to use the colour attribute of the underlying geometry, to drive the offset for a texture I intend to use in the material for this geometry. In my case, I'd like these colour values to affect the texture offset for each little bar of wood.
In both Redshift and even Unreal Engine, piping a colour value into a transform/translate input means that it will use the red and green channels for X and Y, therefore giving me a different texture offset for each piece of wood.
In Octane, I've tried piping the Color Vertex Attribute node into the translation input of a Transform 2D node (that controls the albedo texture), but unfortunately it doesn't work.
I then tried to find any utility nodes that would let me turn the Color Vertex Attribute node's colour output somehow into the 3float input the Transform 2D node expects, but there doesn't seem to be any combination that can do that either.
Would you have any idea, how I would be able to use those colour values I've got on my geometry to drive the texture offset as described? That'd be great!