Scripted graphs can be used to simulate other types of material nodes. The following script simulates a metal using its complex index of refraction.
First a note about the index of refraction. The index input on a specular material is a real value, which can be used to simulate dielectric materials. For instance common glass has an IOR around 1.45 and water has 1.33.
For metals you may also find an IOR, for instance you may find Gold has an IOR of 0.47. This number alone is useless, as metals have a complex index of refraction. You should get two values, called N and K. These are the real and imaginary parts of the IOR. For gold these values are around 0.47 and 2.25.
Also for some metals, like gold, the IOR is dependent on the wavelength. The script assumes the given IOR is for green light (around 550 nm).
Download here:
Using the script:
The scripted node has two inputs determining the glossy reflectance:
The color can be used to give the metal some color. The brightness of the color will be changed according to the IOR. Most metals will be gray, so you can leave the color input white. Only RGB colors and greyscale colors are supported.
The index of refraction are the n and k values you find for the metal.
The rest of the inputs are the same as the inputs on glossy materials.
Metal material scripted node
Win 11 64GB | NVIDIA RTX3060 12GB
- Elvissuperstar007
- Posts: 2506
- Joined: Thu May 20, 2010 8:20 am
- Location: Ukraine/Russia
- Contact:
better to add this feature in octane
win 7 /64x C2Quad 6600 2.4/ Nvidia 9800 GX2 1gb 512 bit + Asus 480 GTX/ DDR2 8Gb / NVIDIA 460 GTX 2GB/2x NVIDIA 580 GTX 3GB
Page octane render " В Контакте " http://vkontakte.ru/club17913093
Page octane render " В Контакте " http://vkontakte.ru/club17913093
- Jaberwocky
- Posts: 976
- Joined: Tue Sep 07, 2010 3:03 pm
I can't seem to get this to work in V1.55 Standalone
Is this because it uses a scripted Nodes?
If this is the case, any chance of a version for 1.55 ?
Cheers ...Jaba
Is this because it uses a scripted Nodes?
If this is the case, any chance of a version for 1.55 ?
Cheers ...Jaba

CPU:-AMD 1055T 6 core, Motherboard:-Gigabyte 990FXA-UD3 AM3+, Gigabyte GTX 460-1GB, RAM:-8GB Kingston hyper X Genesis DDR3 1600Mhz D/Ch, Hard Disk:-500GB samsung F3 , OS:-Win7 64bit
wow thanks for sharing, Lua scripted graph nodes are unbelievably powerfull
ciao beppe

ciao beppe
- stratified
- Posts: 945
- Joined: Wed Aug 15, 2012 6:32 am
- Location: Auckland, New Zealand
Scripted nodegraphs is a 2.x feature -- it won't work in 1.55.Jaberwocky wrote:I can't seem to get this to work in V1.55 Standalone
Is this because it uses a scripted Nodes?
If this is the case, any chance of a version for 1.55 ?
Cheers ...Jaba
cheers,
Thomas
- Jaberwocky
- Posts: 976
- Joined: Tue Sep 07, 2010 3:03 pm
stratified wrote:Scripted nodegraphs is a 2.x feature -- it won't work in 1.55.Jaberwocky wrote:I can't seem to get this to work in V1.55 Standalone
Is this because it uses a scripted Nodes?
If this is the case, any chance of a version for 1.55 ?
Cheers ...Jaba
cheers,
Thomas
Ok, thanks Thomas...I suspected as much.
CPU:-AMD 1055T 6 core, Motherboard:-Gigabyte 990FXA-UD3 AM3+, Gigabyte GTX 460-1GB, RAM:-8GB Kingston hyper X Genesis DDR3 1600Mhz D/Ch, Hard Disk:-500GB samsung F3 , OS:-Win7 64bit
You can use the indices in this list in the specular material node for things like glass or liquids. The values for metals are not useful because it doesn't include the K values.
--
Roeland