Values

  • May 10, 2020
  • 71 Downloads
  • 8 Likes
  • Blender 2.8x
  • Render: Cycles
  • Creator: billhails
  • License: CC-0
You must be logged in to download.

Description:

Values

A collection of re-useable values of various types:

  • IOR values for a large number of materials.
  • Black body temperatures for common light sources.
  • Equivalent black body colors.
  • Gemstone colors.
  • Standard LED colors
  • Metal colors, both facing and edge-tint
  • Pre-baked edge-tinted metal textures
  • A node to calculate the correct specular value from an IOR value.

Instructions

From another blender file, choose File > Link and browse to this file. Go in to "Node Tree" and select "Values" to link.

Back in your original file, with the node editor open on a material that requires an IOR value (i.e. a Fresnel Node,) select Add > Group and choose "Input IOR".

You will see a large node with a number of common materials. Choose an appropriate material and connect that to your IOR input.

Some IOR values exist as a range. Those values are indicated by an asterisk (*) after the name. For those values only, the "Range" slider will allow you to vary between the minimum and maximum IOR value for that material.

The "Input IOR" node only exposes commonly used values. If you can't find what you're looking for there, go again to Add > Group and look at the other "IOR -" groups. They are arranged by material type, and have many more values to choose from.

The list is by no means exhaustive, but might save someone a bit of searching.

Tip: In Blender you can toggle visibility of unused inputs and outputs of a node with Ctrl-h.

Improvements in Version 2

  • Added a few more IOR values.
  • Fixed a bad IOR value (Agate).
  • Added common metal and gemstone colors.
  • Added common blackbody colors.

So there are three new node groups you can link, as per the instructions above: "Colors - Metals", "Colors - Gemstones", and "Colors - Blackbody".

The gemstone colors are just approximate values from various sources, mostly Wikipedia.

The metal colors are calculated using refractiveindex.info, and have both facing color and edge tint values. For a good explaination of how to calculate your own, see here. For an even better explaination of how to use them, see Cynicat Pro's excellent set of video tutorials about PBR on YouTube.

The metal colors include a gamma slider. The calculated values are I guess based on an input light intensity of 1 and are not gamma corrected. The slider allows you to gamma correct all of the color values equivalently in one place. I find a value of 2.4 works well, but the default remains set at 1 [edit. changed to 2.4 in v3].

The blackbody colors are intended as inputs to the color of an emission shader, the source for the various values, after some searching, was unsurprisingly Wikipedia. As with ior values, where the color temperature was reported as a range, the output name is suffixed with an asterisk and for those outputs only the range slider allows you to vary between the lowest and highest value.

I've also used refractiveindex.info to verify the rather odd values of IOR for Gold and Silver, they both come out as less than 1, which would seem an impossibility since 1 is the IOR of a vacuum, but that's what they seem to be nonetheless, and it corresponds with various posted values for gold and silver around the web.

Version 3

  • Added LED wavelengths and equivalent colors node groups, source Impact Lighting Inc.
  • Defaulted Metal Colors Gamma to 2.4.
  • Simplified pure data node groups.
  • Separated out Blackbody Temperatures to its own group used by Blackbody Colors.
  • Created top-level "Values" group to contain all node groups.
  • Amended the examples to use the Pricipled BSDF shader.
  • Added Edge Tinted Metals node group that combines IOR, Facing and Edge Tint with a Fresnel node to produce more realistic metal colours.
  • Added a specular node that calculates the correct specular value for a given IOR. Source Blender Manual.

Comments:

  • billhails profile picture
    billhails

    By the way, there is an older version of this elsewhere on the site, but I've lost access to that account and I've had to create this new account to upload version 3.

    Written May 10, 2020
  • billhails profile picture
    billhails

    I realised a mistake in the LED colours group, it wasn't properly exposing colour values on its outputs, fixed now.

    Written June 07, 2020
  • mckeephoto profile picture
    mckeephoto

    This is a truly amazing resource. Thank you for this. Would you happen to have an IOR for Zinc Selenide handy?

    Written July 13, 2020