Using xml files with Blendigo
Using xml files with Blendigo
Okay, I would like to use a material I found online(xml format) for one of my models. How do I do it in Blendigo? I've seached and read things and still can't figure it out. Could someone give me a step by step outline on how to do it or point me to a site that does? I'm new to Indigo so I don't know too much about it yet.
Thanks.
Thanks.
- Borgleader
- Posts: 2149
- Joined: Mon Jun 16, 2008 10:48 am
Okay, maybe it's not xml, I though I saw that somewhere or read it. How would I say, put use this material.
http://www.elqx.com/indmatdb/?s=Material&id=56
http://www.elqx.com/indmatdb/?s=Material&id=56
- Borgleader
- Posts: 2149
- Joined: Mon Jun 16, 2008 10:48 am
Oh that's really simple actually. It's nk data. In the previous versions 1.1.5 and such all you had to do was create a phong material, and in the nk data box type down ***.nk (in this case. Au.nk iirc).
But I think it's broken in 1.1.7? or was that 1.1.6? I forget.
Another way to use such materials would be to open notepad copy the text inside it save it to (something).igm and set your material (inside the exporter) to "external" and then patch in the file path (remember to set the name of the material in blender/blendigo to the SAME THING as what is written between the <name></name> tags in the .igm file)
I hope that was the least bit clear.
But I think it's broken in 1.1.7? or was that 1.1.6? I forget.
Another way to use such materials would be to open notepad copy the text inside it save it to (something).igm and set your material (inside the exporter) to "external" and then patch in the file path (remember to set the name of the material in blender/blendigo to the SAME THING as what is written between the <name></name> tags in the .igm file)
I hope that was the least bit clear.
benn hired a mercenary to kill my sig...
Ok, thanks, I'll give it a try. Really cleared some things up for me.
EDIT:
When I did the Au.nk, it worked fine. When I went onto the database however and found a material that wasn't nk, saved it, and loaded it up like you said, I got an error box.
It said:
IndigoDriverExcep: SceneLoaderExcep: could not find root 'scenedata' element (In element 'include', around line 95, column 5)
Any ideas if I'm doing something wrong or how to fix it?
EDIT:
When I did the Au.nk, it worked fine. When I went onto the database however and found a material that wasn't nk, saved it, and loaded it up like you said, I got an error box.
It said:
IndigoDriverExcep: SceneLoaderExcep: could not find root 'scenedata' element (In element 'include', around line 95, column 5)
Any ideas if I'm doing something wrong or how to fix it?
See what's need to be included, if it's there in material code but it's not there on your system. Then that could be a problem.nadaklan wrote: IndigoDriverExcep: SceneLoaderExcep: could not find root 'scenedata' element (In element 'include', around line 95, column 5)
You might need the texture specified in material code also. Let's look at the "Funky Wallpaper" from the site you use.
Code: Select all
<materialdata>
<version>0.7</version>
<test_release>7</test_release>
<material>
<name>a</name>
<phong>
<diffuse>0 0 0</diffuse>
<nk_data>nkdata/au.nk</nk_data>
<exponent>100000</exponent>
<fresnel_scale>1</fresnel_scale>
</phong>
</material>
....................
....................
....................
<blend_map>
<uv_set>default</uv_set>
<path>pattern003.jpg</path>
<exponent>1.0</exponent>
</blend_map>
</blend>
</material>
<materialdata>
Cheers,
Q9550 2.83 GHz, Geforce 9400 GT, 4 GB ram, XP 32/Vista 64
Q9550 2.83 GHz, Geforce 9400 GT, 4 GB ram, XP 32/Vista 64
- Borgleader
- Posts: 2149
- Joined: Mon Jun 16, 2008 10:48 am
Who is online
Users browsing this forum: No registered users and 2 guests