Anim8or Community

Please login or register.

Login with username, password and session length
Advanced search  

News:

An update to Anim8or, v1.00b, is available with a few bug fixes. Get your copy HERE. See the "ReadMe" file for details.

Author Topic: Material Attributes - Getting them right  (Read 2114 times)

Itinaeroa

  • Newbie
  • *
  • Posts: 13
    • View Profile
Material Attributes - Getting them right
« on: February 15, 2014, 05:15:42 am »

Hi there, I'm currently playing around with the material attributes. See attachment.

I called the blue object's attribute 'specular' and the string 'phong' (didn't seem to do anything)

I called the red object's attribute 'specular' and the string 'reflection' (gave a nice reflection)

I called the green object's attribute 'class' and the string 'dialectric' (it's seems to have worked the way I expected)

I called the last object's attribute 'class' and the string 'transparent' (It's meant to be yellow and transparent)

My question is, why is the last object seem to be fully reflective and not transparent yellow?

Thanks for your help.
Logged

kreator

  • Hero Member
  • *****
  • Posts: 1116
  • Anim8or, Blender, & Carrara. A Great Combination!
    • View Profile
    • Anim8orWorld
Re: Material Attributes - Getting them right
« Reply #1 on: February 15, 2014, 07:51:01 am »

Did you add an IOR attribute to the Transparency class ?
Logged
O

Itinaeroa

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: Material Attributes - Getting them right
« Reply #2 on: February 15, 2014, 07:25:39 pm »

Hmmm...

I'm not sure how to do IOR.

I made an attribute called IOR but I don't know where to put the value?







Logged

kreator

  • Hero Member
  • *****
  • Posts: 1116
  • Anim8or, Blender, & Carrara. A Great Combination!
    • View Profile
    • Anim8orWorld
Re: Material Attributes - Getting them right
« Reply #3 on: February 16, 2014, 06:34:19 pm »

Attributes

New..class
string: transparency
New
IOR
float: 1.33   

IOR = Index of Refraction  tables for these can be looked up on the internet.


ANIM8ORWORLD.com        FACEBOOK GROUP      FACEBOOK PAGE         COMPETITIONS

« Last Edit: February 16, 2014, 07:02:05 pm by kreator »
Logged
O

Itinaeroa

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: Material Attributes - Getting them right
« Reply #4 on: February 16, 2014, 08:41:08 pm »

I saw the excel spreadsheet on this forum too, read it, and tried to implement it but just couldn't get it right. Thanks for the help!
Logged

ENSONIQ5

  • Sr. Member
  • ****
  • Posts: 929
    • View Profile
    • Mission Backup Earth
Re: Material Attributes - Getting them right
« Reply #5 on: February 17, 2014, 06:50:37 am »

I find this (http://www.anim8or.com/learn/raytracer/index.html) to be the best reference for ART materials.  I render in Anim8or rarely and often need a reminder!
Logged

Itinaeroa

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: Material Attributes - Getting them right
« Reply #6 on: February 17, 2014, 02:52:29 pm »

Thanks ensoniq5. As a novice I found it difficult to understand. Kreators simple format was much easier.

New..class
string: transparency
New
IOR
float: 1.33   

I think dielectric has the better 'look' for what I'm after but will keep experimenting :)
Logged

Steve

  • Administrator
  • Hero Member
  • *****
  • Posts: 1546
    • View Profile
Re: Material Attributes - Getting them right
« Reply #7 on: February 22, 2014, 10:17:46 pm »

I got lazy and never finished adding the chapter on Ray Traced materials to the on-line manual.  Here's the section on attribute "class" = "transparent":

Class transparent
This transparent class is a simple model for diffraction of light through transparent materials. There is also a slight reflection off the surface. The amount of transparency is set with the normal transparency value for a material. It has one additional attribute:
   IOR - the index of refraction. This represents how much light is bent as it enters or leaves a transparent material. Useful values include 1.0 (air - no difference than outside of a material), 1.33 (glass), 1.49 (Plexiglas) and 2.42 (diamond).
Rendering transparent materials can take a very long time. Each primary ray (from the camera) can trigger tens or even hundreds of rays since each interaction generates up to two child rays, the reflected ray and the transparent ray.
The image below show 5 spheres with and IOR of 1.0, 1.1, 1.2, 1.3 and 1.5, and a transparency of 0.1:
 
And take a look at the files linked off of the ART Ray Tracer notes that are posted if you haven't already.  The example file to make this image is there. http://www.anim8or.com/learn/raytracer/index.html
« Last Edit: February 22, 2014, 10:25:17 pm by Steve »
Logged