question

Ahmed Khaled avatar image
Ahmed Khaled asked ·

How can I connect a thin film shader to an ramp float with the colors?

I only get black and white values, I'm trying to get rgb outputs from the float.

shadersshadingcolor
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

James McDermid avatar image
James McDermid answered ·

Was doing a similar thing the other day.. use facingratio to drive transmission colour and cutout opacity, each via their own rgb_float.. (if this is what you mean?)


Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Zeno Pelgrims avatar image
Zeno Pelgrims answered ·

If you want to use a custom ramp you'll have to use something other than the thin film shader. The thin film shader is designed to produce colour values based on the thickness of the film and accepts values in nanometres.

You can kind of fake it by combining a noise and the facingratio, which you can then pipe into your custom ramp coordinates.

Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Carlos Dordelly avatar image
Carlos Dordelly answered ·

@Ahmed Khaled What do you want to do with the thin film colors? The ramp float it's only for remap float information (0-1 values) not rgb values.


Maybe other node works for you. And also, remember that the thin film shader will be removed at some point. You can recreate it with a ramp_rgb shader.

Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Welcome to the Arnold Answers community.

This is the place for Arnold renderer users everywhere to ask and answer rendering questions, and share knowledge about using Arnold, Arnold plugins, workflows and developing tools with Arnold.

If you are a new user to Arnold Answers, please first check out our FAQ and User Guide for more information.

When posting questions, please be sure to select the appropriate Space for your Arnold plugin and include the plugin version you are using.

Please include images, scene and log files whenever possible as this helps the community answer your questions.

Instructions for generating full verbosity log files are available for MtoA, MaxtoA, C4DtoA, HtoA, KtoA, and Kick.

If you are looking for Arnold Documentation and Support please visit the Arnold Support site.

To try Arnold please visit the Arnold Trial page.

Bottom No panel present for this section.