News:

Be sure your post is relevant to the current discussion.  Create a new topic within the appropriate board if you are unsure.

Main Menu
TurboCAD 2026 Platinum box
Now available

TurboCAD 2026.2

The latest update for TurboCAD 2026. It installs over any 2026 build and keeps your activation, drawings and settings. Get it from the Start Page or Help > Check for Update.

RedSDK Materials - Index Of Refraction (IOR)

Started by Darrel Durose, May 15, 2014, 01:13:10 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Darrel Durose

I have trolled the web trying to get a better understanding on the Index Of Refraction (IOR) and this I think is important to use for certain materials when using RedSDK Quality rendering.

I had it in my head that IOR what just for semi/transparent materials like glass etc but have realised that this is not the case.

Plastics I have found "3" to be good for me.

This webpage was helpful and a good guide to what different materials required - http://www.pixelandpoly.com/ior.html
Daz...
V2020 & V2022 Plat 64bit, Lenovo P72 Laptop, Window 10 Pro for Workstations, Intel Xeon E-2186 CPU @ 2.90 Ghz (6 cores/12 threads), 64GB RAM, Nvidia P5200 c/w Max=Q Design GPU, Display UHD 3840x2160 pixels
TurboCAD user since V3 and Turbocad 3D V1.

John R

John R.

V17—V21, 2015—2025
Designer, Deluxe, (Basic, Expert, Professional), Platinum
RedSDK enabled
Windows 11 Pro (25H2), 64-bit

Darrel Durose

Yeah John....I thought of you and your plastic material trials  :P.... It is a major key I think for realistic materials with RedSDK!
Daz...
V2020 & V2022 Plat 64bit, Lenovo P72 Laptop, Window 10 Pro for Workstations, Intel Xeon E-2186 CPU @ 2.90 Ghz (6 cores/12 threads), 64GB RAM, Nvidia P5200 c/w Max=Q Design GPU, Display UHD 3840x2160 pixels
TurboCAD user since V3 and Turbocad 3D V1.

Orion20036

Excellent Darrel, just what I have been looking for for quite some time, and so many materials encompassed.

Thank You!.



jasbrou

Now that we are sort of forced into RED SDK, let's not forget this tip from Darrel. I know very little about RED, but maybe this site will help with materials.

Henry Hubich

Thanks for that, Daz. I missed this when it was first posted. Reminds me of two comments/questions that have bothered me for some time...

1. For many materials, if not most, the index of refraction is different for different colors/wavelengths. This variation produces the "fire" exhibited by many gemstones. I wonder when some rendering engine will take this into account.

2. I have yet to find an explanation for Index of Refraction as applied to opaque materials.

Henry H

Darrel Durose

#6
Yes Henry.

With RedSDK the IOR is important for both Reflection and Refraction. According to Redway it is best to follow the actual values stated but we can also experiment with different ones.

Just done a search and this is interesting for Non Transparent materials and why sometimes having high values is useful:

"This is not related to Vray specifically, it's the nature or IOR itself. As it's interpreted by the renders, high IoR numbers basically simulate "sheen" or shine in a non-transparent surface. One thing you'll run into without using high IORs is a lack of the polishy-shiny you see in real life, no matter how close you get otherwise. Reflections are really quite literally just refractions which bounce back and not through. Modern shaders take this into account and give you control over both.

The Fresnel effect is actually the "correct" way to handle most reflections. Custom BRDF curves were introduced to simulate certain types of shading, certain "looks" that were difficult to achieve in previous, less flexible shader structures. But with the more potent Vray materials or, say, the mia_material_x for mental ray, the Fresnel effect combined with a high IOR can make a much more realistic metal shader than previously possible. Although there are still times when custom BRDF curves sure come in handy!"



So I try to use the official guide and as you say the colour has an impact on this.

The Reflection/Frensel option maybe take care of it Henry as a Black material has a low reflectance and a White material Has a High reflectance. We then play with the Glossiness/IOR to get the material to look highly reflective or very matt etc.

I have been using IOR of 20 for Chrome which the "correct" value is around 2.7-2.970    :o

Attached is a image showing just the IOR value changed for each sphere: John R also did a good example...maybe he would like to share!  :o
Daz...
V2020 & V2022 Plat 64bit, Lenovo P72 Laptop, Window 10 Pro for Workstations, Intel Xeon E-2186 CPU @ 2.90 Ghz (6 cores/12 threads), 64GB RAM, Nvidia P5200 c/w Max=Q Design GPU, Display UHD 3840x2160 pixels
TurboCAD user since V3 and Turbocad 3D V1.

Henry Hubich

I was really wondering about a definition of Index of Refraction as applied to real-life materials. I know it affects the appearance of objects rendered in TCad -- specifically, with materials having "Conductor" Reflectance, which allows different values of Refraction for Red, Green, and Blue. Here's a clipping from my 2002 book on Materials...

Henry H

Darrel Durose

#8
Henry

I am no expert on this subject but I have found this which may help on Wikipedia:

"If the electrons emit a light wave which is 180° out of phase with the light wave shaking them, it will destructively interfere with the original light to reduce the total light intensity. This is light absorption in opaque materials and corresponds to an imaginary refractive index."

Wiki - Refractive index

Edit: Are you going to make another Material book Henry based on RedStuff?   :o ;D

Edit 2: Another find on the imaginary Refractive index:
"The real and imaginary parts of the complex refractive index are related through use of the Kramersâ€"Kronig relations. For example, one can determine a material's full complex refractive index as a function of wavelength from an absorption spectrum of the material."

Found here: http://physics.wikia.com/wiki/Refractive_index

Daz...
V2020 & V2022 Plat 64bit, Lenovo P72 Laptop, Window 10 Pro for Workstations, Intel Xeon E-2186 CPU @ 2.90 Ghz (6 cores/12 threads), 64GB RAM, Nvidia P5200 c/w Max=Q Design GPU, Display UHD 3840x2160 pixels
TurboCAD user since V3 and Turbocad 3D V1.

Henry Hubich

Thanks, Daz. Very interesting articles.

"Edit: Are you going to make another Material book Henry based on RedStuff?"

No way. Even Lightworks materials have gotten too complex for me to consider a book just for LW. A couple of years ago I offered to do that if somebody would volunteer to co-author. There were no takers, and I'm too burned-out now to renew the offer. And Redstuff is a whole 'nother world.

Henry H

Darrel Durose

#10
I understand where you are coming from Henry and thanks for all your help now and over the past years when I have got stuck with TC problems and questions.  :)


Redstuff is still very raw in TC. Anyway we should have Redway's manual soon.  ::) :o

I would like to see more automation in our Render Manager as really when we either pick a colour or texture we need to the pick it's reflectance from it's colour like I have mentioned.

I have thought of adding tabs to the Texture size calculator that holds this kind of info....Maybe if their was 25 hours in a day eh... ;D



Daz...
V2020 & V2022 Plat 64bit, Lenovo P72 Laptop, Window 10 Pro for Workstations, Intel Xeon E-2186 CPU @ 2.90 Ghz (6 cores/12 threads), 64GB RAM, Nvidia P5200 c/w Max=Q Design GPU, Display UHD 3840x2160 pixels
TurboCAD user since V3 and Turbocad 3D V1.