Found unexpected element 'specular_reflectivity' in element

General questions about Indigo, the scene format, rendering etc...
Post Reply
11 posts • Page 1 of 1
User avatar
delle
Posts: 175
Joined: Fri Apr 13, 2007 11:32 pm
Location: Italy

Found unexpected element 'specular_reflectivity' in element

Post by delle » Wed Sep 17, 2008 8:39 pm

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>

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 Sep 17, 2008 8:46 pm

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>

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

Post by Zom-B » Wed Sep 17, 2008 9:47 pm

A classic issue of uncompatible Indigo & exporter versions... :roll:
polygonmanufaktur.de

User avatar
pixie
Indigo 100
Posts: 2332
Joined: Sat Dec 29, 2007 4:54 am
Location: Away from paradise
3D Software: Cinema 4D
Contact:

Post by pixie » Wed Sep 17, 2008 10:08 pm

So cliche! :lol:

User avatar
delle
Posts: 175
Joined: Fri Apr 13, 2007 11:32 pm
Location: Italy

Post by delle » Wed Sep 17, 2008 11:55 pm

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, ...)

:oops:

Thank you!

User avatar
PureSpider
Posts: 1459
Joined: Tue Apr 08, 2008 9:37 am
Location: Karlsruhe, BW, Germany
Contact:

Post by PureSpider » Wed Sep 17, 2008 11:56 pm

Which program? ;)

User avatar
delle
Posts: 175
Joined: Fri Apr 13, 2007 11:32 pm
Location: Italy

Post by delle » Thu Sep 18, 2008 12:15 am

This program...

Realtime OpenGL preview on a GeForce 6600

:lol:
Attachments
EasyArchitect3D.JPG
EasyArchitect3D.JPG (98.56 KiB) Viewed 95262 times

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

Post by fused » Thu Sep 18, 2008 2:30 am

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.

User avatar
pixie
Indigo 100
Posts: 2332
Joined: Sat Dec 29, 2007 4:54 am
Location: Away from paradise
3D Software: Cinema 4D
Contact:

Post by pixie » Thu Sep 18, 2008 2:32 am

Mine are... they indigo stamp of quality (they are pigmed on indigo)

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

Post by fused » Thu Sep 18, 2008 2:40 am

true. pigms packed by indigo should be correct.

easyarchitect
Posts: 47
Joined: Fri Jan 12, 2007 1:49 am

Re: Found unexpected element 'specular_reflectivity' in element

Post by easyarchitect » Mon Apr 06, 2020 5:00 am

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>
Attachments
Test_Cucina_Briccola.png

Post Reply
11 posts • Page 1 of 1

Who is online

Users browsing this forum: No registered users and 28 guests