Error import .igm

Announcements, requests and support regarding the Blender Indigo export script
Post Reply
5 posts • Page 1 of 1
Harlock
Posts: 5
Joined: Tue Jan 16, 2007 7:00 am

Error import .igm

Post by Harlock » Tue Nov 20, 2007 8:05 am

Hi, I've an error when import an external material.
For example I've found in material library a material called milk. I've create a file milk.igm :

<materialdata>
<medium>
<name>milk</name>
<precedence>9</precedence>
<basic>
<ior>1.33</ior>
<cauchy_b_coeff>0</cauchy_b_coeff>
<absorption_coefficient_spectrum>
<rgb>
<rgb>0.055 0.0656786 0.086</rgb>
</rgb>
</absorption_coefficient_spectrum>
<subsurface_scattering>
<scattering_coefficient_spectrum>
<rgb>
<rgb>500 580.001 800</rgb>
</rgb>
</scattering_coefficient_spectrum>
<phase_function>
<uniform/>
</phase_function>
</subsurface_scattering>
</basic>
</medium>

<material>
<name>materialShader</name>
<specular>
<transparent>true</transparent>
<internal_medium_name>milk</internal_medium_name>
</specular>
</material>
</materialdata>

When I export the scene there is a follows error in the picture.

Any Idea ?

Thanks

Blender 2.45 under Linux (wine)
Blendingo 1.0.1.
Attachments
errore.png
errore.png (13.62 KiB) Viewed 2036 times

User avatar
suvakas
3rd Place Winner
Posts: 2613
Joined: Mon Sep 04, 2006 11:08 pm
Location: Estonia
Contact:

Post by suvakas » Tue Nov 20, 2007 8:17 am

Try to use <scenedata> instead of <materialdata>.

Wedge
Posts: 441
Joined: Sun Jan 14, 2007 11:33 am
Location: East Coast, USA

Post by Wedge » Tue Nov 20, 2007 8:27 am

Yea I don't think materialdata tag was ever created in Indigo it was only sort of unofficially created in a forum thread.

Edit: Well I found the original IGM thread (in the Indigo News forum) and Radiance said it was official. But what I mean is that I don't think Indigo understands the materialdata tag. I may be wrong since I haven't worked with IGM in a number of months.

When you use an include you use scenedata tag that Suvakas showed above. And of course nothing but the material if you write it into the main scene file.
Content contained in my posts is for informational purposes only and is used at your own risk.

Harlock
Posts: 5
Joined: Tue Jan 16, 2007 7:00 am

Post by Harlock » Tue Nov 20, 2007 9:13 am

Ok, thank I've changed <materialdata> with <scenedata> but there is another error.
Look the new picture.
Probably the structure of the material is changed fron the library to the current version of the script but I'm the only person who have this problem ?
Nobody use the external material ?

Thank
Attachments
errore1.png
errore1.png (15.82 KiB) Viewed 2011 times

Wedge
Posts: 441
Joined: Sun Jan 14, 2007 11:33 am
Location: East Coast, USA

Post by Wedge » Tue Nov 20, 2007 10:47 am

While helpful, the material library and IGM thing were created too early in the developement process and yes the structure of the materials has changed a little bit.

You will need a <gamma> tag in all of your <rgb> tags.

So for example:

Code: Select all

<rgb>
    <rgb>0.7 0.5 0.5</rgb>
    <gamma>2.2</gamma>
</rgb>
Content contained in my posts is for informational purposes only and is used at your own risk.

Post Reply
5 posts • Page 1 of 1

Who is online

Users browsing this forum: No registered users and 24 guests