0.7 does not support IOR?

General questions about Indigo, the scene format, rendering etc...
Post Reply
6 posts • Page 1 of 1
mrCarnivore
Posts: 517
Joined: Sun Mar 04, 2007 6:20 am
Location: Stuttgart, Germany

0.7 does not support IOR?

Post by mrCarnivore » Wed Mar 07, 2007 1:50 am

I downloaded 0.7 test 5 and tried some of the tests that come with it.

However, it seems to not work with any materials that have an IOR, is that a bug or a feature? ;-)

User avatar
Kram1032
Posts: 6649
Joined: Tue Jan 23, 2007 3:55 am
Location: Austria near Vienna

Post by Kram1032 » Wed Mar 07, 2007 2:04 am

Strange.
It's neither, nor: IOR works fine, at least to me...
Do you use the new exporters for 0.7.5?
If not, you should, some of the code completely has changed ;)

User avatar
fused
Developer
Posts: 3648
Joined: Fri Sep 22, 2006 7:19 am
Location: Berlin, Germany
3D Software: Cinema 4D

Post by fused » Wed Mar 07, 2007 2:16 am

have a look at the manual :)

mrCarnivore
Posts: 517
Joined: Sun Mar 04, 2007 6:20 am
Location: Stuttgart, Germany

Post by mrCarnivore » Wed Mar 07, 2007 3:26 am

@Kram1032: I used no exporter at all as I used the examples, that come with Indigo itself.

@fused: Was that comment for me? If so, where do yo want me to look exactly? Can you pls be a little bit more specific...

User avatar
fused
Developer
Posts: 3648
Joined: Fri Sep 22, 2006 7:19 am
Location: Berlin, Germany
3D Software: Cinema 4D

Post by fused » Wed Mar 07, 2007 3:32 am

ok, sry. didnt want to be unpolite.

the indigo manual explains how to use materials/mediums in the right way. it is very helpful.

it is included in the indigo download and can be found in the indigo folder.

User avatar
Kram1032
Posts: 6649
Joined: Tue Jan 23, 2007 3:55 am
Location: Austria near Vienna

Post by Kram1032 » Wed Mar 07, 2007 3:38 am

Yes, that's the problem, I guess...
You use xml-tags from 0.6, but you need those from 0.7...
Especially for transparent stuff, you have to be careful ;)
Transparent mats do need a medium-tag now, where IOR is specified...
In material-tags, you just have to set the type of the mat, the exponent, the name and, if it's transparent, the medium, that should be used!

an example:

Code: Select all

<medium>   
      <name>Window Glass</name>   
      <precedence>10</precedence>   
      <basic>   
            <ior>1.52</ior>   
            <cauchy_b_coeff>0.0</cauchy_b_coeff>   
            <absorption_coefficient_spectrum>   
                  <rgb>   
                        <rgb>0.1 0.06 0.08</rgb>   
                  </rgb>   
            </absorption_coefficient_spectrum>   
      </basic>   
</medium> 

<material> 
      <name>Window Glass</name> 
      <specular> 
            <transparent>true</transparent> 
            <internal_medium_name>Window Glass</internal_medium_name> 
      </specular> 
</material>

Post Reply
6 posts • Page 1 of 1

Who is online

Users browsing this forum: No registered users and 35 guests