Page 1 of 1

XML code.

Posted: Sun Mar 08, 2009 7:51 am
by victorphellipe
Hi everybody,
I'm making a scene (Remaking) and my floor's scene is a parquet. And I saw a tutorial here in the site who teach you how to make a nice material, using exponent, bump and diffuse. Here is it:
http://www.indigorenderer.com/joomla/co ... _tutorial/
And I trying to understand a couple of things and I hope you can help me!
<material>
<name>stone_phong</name>
<phong>
<ior>1.5</ior>
<texture>
<uv_set>default</uv_set>
<path>texture_diffuse.png</path>
<exponent>2.2</exponent> First question!
</texture>
<diffuse_albedo>
<texture>
<texture_index>0</texture_index> Second question!
</texture>
</diffuse_albedo>
<texture>
<uv_set>default</uv_set>
<path>texture_bump.png</path>
<a>0</a>
<b>0.001</b>
<c>0</c>
<exponent>1</exponent>
</texture>
<bump>
<texture>
<texture_index>1</texture_index>
</texture>
</bump>
<texture>
<uv_set>default</uv_set>
<path>texture_specular.png</path>
<a>0</a>
<b>100</b>
<c>0</c>
<exponent>1</exponent>
</texture>
<exponent>
<texture>
<texture_index>2</texture_index>
</texture>
</exponent>
</phong>
</material>
First question:
What "exponent" represent in the script (1.1.13)?
Second one:
What about texture_index?

Thanks!
Regards,
Victor.

Posted: Sun Mar 08, 2009 1:21 pm
by Borgleader
I do believe the texture index refers to the ndex blender gives to your textures when you create them, 0 being the first (reallly NOT sure)

and the exponent, has to do with huh....how to say....ahhhh screw this...

The two spheres have EXACTLY the same material settings except for the exponent. The one on the left has an exponent of 1 and the one on the right has an exponent of 10 000.

Posted: Sun Mar 08, 2009 2:08 pm
by victorphellipe
Thanks bro. About the exponent I already know about it... But my doubt was 'cause the exponent is on <texture> tag... In my mind, exponent come right behind the <ior> tag or something and not inside this tag.
About the texture_index...
Maan, Ndex? Where and what is this? At Blender, I know, but in what tab or panel I say!
Regards,
Victor.

Sorry about the wrong way to use on, at, inside... My english teacher is a sh** and I'm still confusing about that! Sorry! :oops:

Posted: Sun Mar 08, 2009 8:23 pm
by CTZn
This exponent for the textures is better known as the "gamma" setting, I'm sure you're set now :)

texture_index refers to the internal Indigo referencing system for textures, per material; borgleader, that's correct ;) This setting depends on the order the textures are declared into the material, nothing you need to mess with if you use blendigo I bet. Material parameters are calling textures by that index rather than by their respective names, or paths (once the texture has been declared); it's the internal name for a texture. You can edit it manually if you want a parameter to use another texture declared inside the material tag without going through the exporting process again.

Posted: Mon Mar 09, 2009 1:32 am
by victorphellipe
Thanks CTZn!
Since I saw that code, I already distrustful about the exponent be the gamma on the script. But always is better be sure!
And now I know what is the texture_index, thanks one more time...