Glass material or a more detailed documentation ?

Feature requests, bug reports and related discussion
Alain
Posts: 101
Joined: Thu Aug 23, 2007 11:44 pm

Glass material or a more detailed documentation ?

Post by Alain » Sun Aug 26, 2007 1:41 am

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
Attachments
Glass_Error.png
Glass_Error.png (3.09 KiB) Viewed 3651 times
Windows.png
Windows.png (304.82 KiB) Viewed 3651 times
Last edited by Alain on Sun Aug 26, 2007 1:46 am, edited 1 time in total.

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

Post by Kram1032 » Sun Aug 26, 2007 1:46 am

"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?

SimonLarsen
Posts: 289
Joined: Wed Apr 18, 2007 1:52 am
Location: Odense, Denmark

Post by SimonLarsen » Sun Aug 26, 2007 1:47 am

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.

Alain
Posts: 101
Joined: Thu Aug 23, 2007 11:44 pm

Post by Alain » Sun Aug 26, 2007 2:01 am

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

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

Post by Kram1032 » Sun Aug 26, 2007 2:04 am

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 :)

Alain
Posts: 101
Joined: Thu Aug 23, 2007 11:44 pm

Post by Alain » Sun Aug 26, 2007 2:10 am

@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 ?

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

Post by Kram1032 » Sun Aug 26, 2007 2:13 am

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)

User avatar
Zom-B
1st Place 100
Posts: 4701
Joined: Tue Jul 04, 2006 4:18 pm
Location: ´'`\_(ò_Ó)_/´'`
Contact:

Post by Zom-B » Sun Aug 26, 2007 2:17 am

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!
polygonmanufaktur.de

Alain
Posts: 101
Joined: Thu Aug 23, 2007 11:44 pm

Post by Alain » Sun Aug 26, 2007 2:17 am

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>

User avatar
Zom-B
1st Place 100
Posts: 4701
Joined: Tue Jul 04, 2006 4:18 pm
Location: ´'`\_(ò_Ó)_/´'`
Contact:

Post by Zom-B » Sun Aug 26, 2007 2:20 am

Also take care to use the last Cindigo Exporter 0.9 beta 1_2
polygonmanufaktur.de

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

Post by Kram1032 » Sun Aug 26, 2007 2:22 am

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>

Alain
Posts: 101
Joined: Thu Aug 23, 2007 11:44 pm

Post by Alain » Sun Aug 26, 2007 2:28 am

do I have to change that for both materials ?

anyway, if I change it for both I get this errormessage (see below).
Attachments
Errormessage2.png
Errormessage2.png (2.95 KiB) Viewed 3605 times

Alain
Posts: 101
Joined: Thu Aug 23, 2007 11:44 pm

Post by Alain » Sun Aug 26, 2007 2:48 am

@Kram1032

btw, which xml editor do you suggest to edit the igs- files ?

SimonLarsen
Posts: 289
Joined: Wed Apr 18, 2007 1:52 am
Location: Odense, Denmark

Post by SimonLarsen » Sun Aug 26, 2007 2:50 am

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. :D

edit: Whoops, forgot the url:
http://www.indigorenderer.com/joomla/fo ... hlight=xml

Alain
Posts: 101
Joined: Thu Aug 23, 2007 11:44 pm

Post by Alain » Sun Aug 26, 2007 3:16 am

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

Post Reply
28 posts

Who is online

Users browsing this forum: No registered users and 3 guests