Sampling Redshift Materials
-
Hello, I've just started to dive into Redshift materials and I was wondering if there is a way to sample them like a Standard material?
I've had some success with Standard materials with using BaseShader::Sample() and BaseChannel::Sample() to get the values of specific shaders at given positions. I can't find a similar way to sample a Redshift material.
Dan
-
Hi Dan,
Unfortunatelly there's no similar functionality you can use to achieve the same result.
The closest opportunity for you could be using the ExchangeMapper, which is able to map some material type (Redshift in your case) to some portbundle material representation (e.g. portbundle viewport).
Please note, that using the exchange mapper implies lossy conversion, meaning that the output material representation can (and will) be lacking some initial information as there's normally no 1-to-1 mapping between different material types. Another point to mention is that the exchange mapper produces material attributes or/and textures, rather than doing any material sampling.
Cheers,
Ilia -
Hi Ilia,
At this point this seems a bit over my head, but it seems to be what I need, thanks!
Dan