Page 1 of 1
Found unexpected element 'specular_reflectivity' in element
Posted: Wed Sep 17, 2008 8:39 pm
by delle
Hi, when I use the following material, I get this error:
Fatal Error: IndigoDriverExcep: SceneLoaderExcep: Found unexpected element 'specular_reflectivity' in element 'phong'
What is wrong?
Thanks
<material>
<name>Material_16</name>
<phong>
<specular_reflectivity>
<constant>
<rgb>
<rgb>0.3 0.3 0.3</rgb>
<gamma>2.2</gamma>
</rgb>
</constant>
</specular_reflectivity>
<exponent>3000</exponent>
<fresnel_scale>1</fresnel_scale>
</phong>
</material>
Posted: Wed Sep 17, 2008 8:46 pm
by fused
which exporter do you use?
looks like its mixing up old and new style mats. the ior is missing, too.
i think correct is:
Code: Select all
<material>
<name>Material_16</name>
<phong>
<ior>1.35</ior>
<specular_reflectivity>
<constant>
<rgb>
<rgb>0.3 0.3 0.3</rgb>
<gamma>2.2</gamma>
</rgb>
</constant>
</specular_reflectivity>
<exponent>
<constant>62.5</constant>
</exponent>
</phong>
</material>
Posted: Wed Sep 17, 2008 9:47 pm
by Zom-B
A classic issue of uncompatible Indigo & exporter versions...

Posted: Wed Sep 17, 2008 10:08 pm
by pixie
So cliche!

Posted: Wed Sep 17, 2008 11:55 pm
by delle
Hi, I'm trying to write an exporter for my program.
So I'm trying to simulate my materials with Indigo materials.
Doing so, I'm using info from everywhere (Indigo Manual, Google, Material database, ...)
Thank you!
Posted: Wed Sep 17, 2008 11:56 pm
by PureSpider
Which program?

Posted: Thu Sep 18, 2008 12:15 am
by delle
This program...
Realtime OpenGL preview on a GeForce 6600

Posted: Thu Sep 18, 2008 2:30 am
by fused
nice! if you need any help just ask!
about the materials: i'd stick to the specs defined in the latest manual.
i'd also be careful with the materials in the matdb - they are not validated in any way.
Posted: Thu Sep 18, 2008 2:32 am
by pixie
Mine are... they indigo stamp of quality (they are pigmed on indigo)
Posted: Thu Sep 18, 2008 2:40 am
by fused
true. pigms packed by indigo should be correct.
Re: Found unexpected element 'specular_reflectivity' in element
Posted: Mon Apr 06, 2020 5:00 am
by easyarchitect
Fixed my exporter !
...after so may years...
Bye
Antonio
Code: Select all
<material> <!-- IgsMaterialType : "IgsSpecular" -->
<name>Material_50_Reflectivity</name>
<phong>
<specular_reflectivity>
<constant>
<rgb>
<rgb>1 1 1</rgb>
<gamma>2.2</gamma>
</rgb>
</constant>
</specular_reflectivity>
<exponent>
<constant>990040</constant>
</exponent>
<texture>
<!-- TextureMap[0] : "Mappa riflessi ambientali" -->
<uv_set>default</uv_set>
<path>.\CUCINA BRICCOLA 2\PALOALTO_GRAY_ALPHA1.bmp</path>
<exponent>2.2</exponent>
<b>1</b>
<c>0</c>
</texture>
<diffuse_albedo>
<constant>
<rgb>
<rgb>1 1 1</rgb>
<gamma>2.2</gamma>
</rgb>
</constant>
</diffuse_albedo>
<ior>1.820000</ior>
<exponent><constant>990040</constant></exponent>
<fresnel_scale>0.900000</fresnel_scale>
</phong>
</material>
<material>
<name>Material_50</name>
<blend>
<a_name>Material_50_Specular</a_name>
<b_name>Material_50_Reflectivity</b_name>
<blend>
<constant>0.640000</constant>
</blend>
<step_blend>false</step_blend>
</blend>
</material>