Page 1 of 1
error message I've never seen before ...
Posted: Sat Mar 14, 2009 12:17 am
by delic

[/img]
Any idea ?
How do I see in blender which UV index blendigo will export ?
thx
Posted: Sat Mar 14, 2009 12:36 am
by seregost
In a material you have textures that starts from index 1 instead index 0. If tou have an albedo map, a bump map and a specular map, them must have index 0,1,3.
Re:
Posted: Mon Apr 20, 2009 8:33 pm
by delic
seregost wrote:In a material you have textures that starts from index 1 instead index 0. If tou have an albedo map, a bump map and a specular map, them must have index 0,1,3.
Ok, thx.
I looked in the indigo mat file, tried to change the indexes where it's not 0,1,3, but got this error instead :
The mat file is like this, but I tried with albedo 0, bump 1, exponent 3, same error :
Code: Select all
<uv_set>uv</uv_set>
<exponent>2.200000</exponent>
<a>0</a>
<b>0.005</b>
<c>0</c>
</texture>
<diffuse_albedo>
<texture>
<texture_index>0</texture_index>
</texture>
</diffuse_albedo>
<exponent>
<texture>
<texture_index>1</texture_index>
</texture>
</exponent>
<bump>
<texture>
<texture_index>2</texture_index>
</texture>
</bump>
</phong>
</material>
What should I do to correct this, and why does blendigo export this ?
thx
Re: Re:
Posted: Mon Apr 20, 2009 8:41 pm
by SmartDen
delic wrote:
What should I do to correct this, and why does blendigo export this ?
thx
can you post me the scene? i think i did no tests with shaders on multiple material mesh.
Re: error message I've never seen before ...
Posted: Mon Apr 20, 2009 8:47 pm
by suvakas
How many different textures you have there? Can't see it cause you only included the bottom part of the material. Those indexes are zero based and are referring to what texture file to use. Textures inside material are defined like this:
<texture>
path to your 1st texture file
</texture>
<texture>
path to your 2nd texture file
</texture>
etc..
And now when you want to use for example your 1st texture, then the counting starts from 0. (1st one defined = 0 , 2nd one = 1 and etc.) So to use 1st texture you have to use <texture_index>0</texture_index>. You can use it multiple times..like for albedo or bump or whatever. You always use texture_index 0 when you refer to that 1st texture.
That's the system

Re: error message I've never seen before ...
Posted: Mon Apr 20, 2009 9:32 pm
by delic
suvakas wrote:How many different textures you have there? Can't see it cause you only included the bottom part of the material. Those indexes are zero based and are referring to what texture file to use. Textures inside material are defined like this:
<texture>
path to your 1st texture file
</texture>
<texture>
path to your 2nd texture file
</texture>
etc..
And now when you want to use for example your 1st texture, then the counting starts from 0. (1st one defined = 0 , 2nd one = 1 and etc.) So to use 1st texture you have to use <texture_index>0</texture_index>. You can use it multiple times..like for albedo or bump or whatever. You always use texture_index 0 when you refer to that 1st texture.
That's the system

Aaaaaah, ok, textures only have different indexes if using a different image ?
Thx
I tried setting all indexes to 0, since I use the same image for albedo, bump and exponent, but it gives the same message as in the first post.
But if I remove the exponent map in blendigo, it goes through.
Re: error message I've never seen before ...
Posted: Mon Apr 20, 2009 10:04 pm
by suvakas
UV set is a different thing. It refers to the name of the UV coordinates of the model. You should use the same UV set name inside your texture definition and inside your model definition. It basically tells Indigo what UV coordinates to use for that particular texture. If the names are different, then you get an error cause Indigo can't find such coordinates from model. There obviously is a bug in Blendigo.
For now you could check out what's the name of your UV coords of your model and use that name inside your texture definition. (between the <uv_set> tags.)
Re: error message I've never seen before ...
Posted: Mon Apr 20, 2009 11:35 pm
by delic
For uv's it's ok now, I set everything in blender and blendigo to "uv".
For the index pb, I sent the file to smartden, but the .blend is freaking, hope he'll not waste his time because a big mistake from me.
thx anyway.
Re: error message I've never seen before ...
Posted: Mon Apr 20, 2009 11:37 pm
by SmartDen
delic, i need your sofware versions.
Re: error message I've never seen before ...
Posted: Mon Apr 20, 2009 11:48 pm
by delic
I use blendigo 1.1.14, and indigo 1.1.18.
And blender 2.48a x64, on XP64 !