XML code.

General questions about Indigo, the scene format, rendering etc...
Post Reply
5 posts • Page 1 of 1
victorphellipe
Posts: 13
Joined: Sun May 11, 2008 5:37 am

XML code.

Post by victorphellipe » Sun Mar 08, 2009 7:51 am

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.

User avatar
Borgleader
Posts: 2149
Joined: Mon Jun 16, 2008 10:48 am

Post by Borgleader » Sun Mar 08, 2009 1:21 pm

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.
Attachments
im1236474090.jpg
im1236474090.jpg (466.19 KiB) Viewed 4999 times
benn hired a mercenary to kill my sig...

victorphellipe
Posts: 13
Joined: Sun May 11, 2008 5:37 am

Post by victorphellipe » Sun Mar 08, 2009 2:08 pm

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:

User avatar
CTZn
Posts: 7240
Joined: Thu Nov 16, 2006 4:34 pm
Location: Paris, France

Post by CTZn » Sun Mar 08, 2009 8:23 pm

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.
obsolete asset

victorphellipe
Posts: 13
Joined: Sun May 11, 2008 5:37 am

Post by victorphellipe » Mon Mar 09, 2009 1:32 am

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

Post Reply
5 posts • Page 1 of 1

Who is online

Users browsing this forum: Google [Bot] and 37 guests