Page 1 of 2
Glass material or a more detailed documentation ?
Posted: Sun Aug 26, 2007 1:41 am
by Alain
Hallo everyone
I try to get a glass material for a window.
Please don't kill me, I'm sure this has been asked a tousand times before but I can't find any helpfuil information in the forum or documentations.
Is there a detailed "how to setup materials" documentation ?
My settings:
Material typ: Specular
Transparent: True
Texture Exponent: Default
Bump Expnent: Default
Bump Size: Default
Medium Typ: Basic
Rest of it: Default
This settings give me the errormessage below (see Glass_Error.png) when I load the file into indigo 0.9 test 6.
If I choose "Dermis" instead of "Basic" as Medium Type then I get just a black area at the place where the glass material should be (see Windows.png).
What do I do wrong ?
Regards
Alain
Posted: Sun Aug 26, 2007 1:46 am
by Kram1032
"Rest of it Default"
so, you've set precedence to 10, IoR to 1?
IoR should be 1.52

percedence should be higher than 1, which already is the standard setting.
then, the gamma tag seems to be in the wrong position for one material...
which exporter which app?
Posted: Sun Aug 26, 2007 1:47 am
by SimonLarsen
Does your glass have thickness?
If not, it should. And then, make sure all your normals are pointing outwards.
And the IOR should be about 1.5 too.
Posted: Sun Aug 26, 2007 2:01 am
by Alain
Wow you guys are fast !
@Kram1032
I tried those settings yet, found it on another website.
I use Cinema 4d 9.1, Cindigo 0.9.1 and Indigo 0.9 Test 6 to render.
What is the "gamma tag" ? Is it a tag in cinema ? where can I find it and how do I set it to the right position ?
@SimonLarsen
The glass has no thickness, just a polygone plane. I will change that.
Regards
Alain
Posted: Sun Aug 26, 2007 2:04 am
by Kram1032
ok, cindigo...
there was a post, recently, where someone reported a bug with that exporter:
the "gamma" tag in the materials has the wrong position....
you have to handedit the igs/xml file - you need an xml editor, for that... (you can use notepad, but it's easier with an editor)
Edit: oh, sorry, it mas a maxigo bug....
anyway, you have to handedit the igs

Posted: Sun Aug 26, 2007 2:10 am
by Alain
@Kram1032
ok, there is a <gamma>2.2</gamma> in the igs- file. I tried to delete it but there is still the same errormessage.
what value do I have to enter for gamma ?
Posted: Sun Aug 26, 2007 2:13 am
by Kram1032
NO not delete xD
it's just in the wrong position!
post the whole mat and I'll show you, how to correct it
(2.2 should be fine, except you're using physically calculated values... there, you need gamma 1.0)
Posted: Sun Aug 26, 2007 2:17 am
by Zom-B
Hey Alain...
Cindigo is still in Beta status, so not everything works perfect atm!
Check
here for a Bug overview for the last Cindigo release.
I think I'll have to start a Cindigo "Bug Thread".
New users somehow don't care about reading the Cindigo release threads and after they archive problems with this Beta software they start threads before reading existing ones first
Your black glass problem is related to a Cindigo Bug, that flips ALL normals at export,
So you'll have to check that ALL your normals are facing inwards to work with the last release...
Some parameters don't get the gamma tag exported, so you'll have to edit the igs by hand!
Posted: Sun Aug 26, 2007 2:17 am
by Alain
It is in 2 materials.
The first is this one:
<material>
<name>Parkett</name>
<diffuse>
<albedo_spectrum>
<rgb>
<rgb>0.85000 0.85000 0.85000</rgb>
<gamma>2.2</gamma>
</rgb>
</albedo_spectrum>
<albedo_texture>
<uv_set>default</uv_set>
<path>basic019.jpg</path>
<exponent>2.2</exponent>
</albedo_texture>
<bump_map>
<uv_set>default</uv_set>
<path>basic019.jpg</path>
<b>0.001</b>
<exponent>1</exponent>
</bump_map>
</diffuse>
</material>
Second one:
<material>
<name>defaultMat</name>
<diffuse>
<albedo_spectrum>
<rgb>
<rgb>0.85 0.85 0.85</rgb>
<gamma>2.2</gamma>
</rgb>
</albedo_spectrum>
</diffuse>
</material>
<material>
Posted: Sun Aug 26, 2007 2:20 am
by Zom-B
Also take care to use the last
Cindigo Exporter 0.9 beta 1_2
Posted: Sun Aug 26, 2007 2:22 am
by Kram1032
I'm not entirely sure, but I think, you should edit it, looking like this:
Code: Select all
<albedo_spectrum>
<rgb>
<rgb>r g b</rgb>
</rgb>
<gamma>2.2</gamma>
</albedo_spectrum>
Posted: Sun Aug 26, 2007 2:28 am
by Alain
do I have to change that for both materials ?
anyway, if I change it for both I get this errormessage (see below).
Posted: Sun Aug 26, 2007 2:48 am
by Alain
@Kram1032
btw, which xml editor do you suggest to edit the igs- files ?
Posted: Sun Aug 26, 2007 2:50 am
by SimonLarsen
Alain wrote:@Kram1032
btw, which xml editor do you suggest to edit the igs- files ?
Eman has made a java-based xml editor, but i would just use notepad if i was you.
edit: Whoops, forgot the url:
http://www.indigorenderer.com/joomla/fo ... hlight=xml
Posted: Sun Aug 26, 2007 3:16 am
by Alain
okey!
I found it out now.
I just added a gamma tag, value 2.2, in line 2618 of my igs- file.
Added Thickness to the geometrie of the glass, and set the normals outward but in another case it worked only if I set them inward...
It it renders well now !
I guess this is a bug in the cindigo exporter ?
@Kram1032 and SimonLarsen
I found a good editor for me. Makes it easier to find line Nr. 2618
Regards
Alain