Coating material thread
Coating material thread
This thread is for information, questions about, and renders of the new coating material.
Re: Coating material thread
How about XML for the coating material and the double-side material?OnoSendai wrote:This thread is for information, questions about, and renders of the new coating material.
Re: Coating material thread
Coating XML:
By the way you can always see the XML by saving out an IGM material and checking that out
Code: Select all
<material>
<name>default</name>
<coating>
<ior>1.5</ior>
<substrate_material_uid>1000</substrate_material_uid>
<exponent>
<constant>
10000
</constant>
</exponent>
<thickness>
<shader>
<shader>
<![CDATA[
def thickness_um() real : 3.0 + 6.0 * fbm(
getTexCoords(0) +
vec2(
fbm(getTexCoords(0) * 40.0, 3),
fbm(getTexCoords(0) * 50.0, 3)
) * 0.1
,
1)
def eval(vec3 pos) real :
0.000001 * thickness_um()
]]>
</shader>
</shader>
</thickness>
</coating>
</material>
By the way you can always see the XML by saving out an IGM material and checking that out
Re: Coating material thread
But I need to know NOW!! I'm at work and away from my Indigo...OnoSendai wrote: By the way you can always see the XML by saving out an IGM material and checking that out
Thx ono
Re: Coating material thread
Ha okWhaat wrote:But I need to know NOW!! I'm at work and away from my Indigo...OnoSendai wrote: By the way you can always see the XML by saving out an IGM material and checking that out
Thx ono
-
- Posts: 512
- Joined: Wed May 02, 2007 11:34 am
Re: Coating material thread
Hi Ono,
is there an alternate way to define the substrate material, other than referencing the material_uid? could material name be used instead (sort of like you would do for a blend material - defining the substrate material first and then using it within the coated material definition)? as it is you can't save a material and then re-use it later.
is there an alternate way to define the substrate material, other than referencing the material_uid? could material name be used instead (sort of like you would do for a blend material - defining the substrate material first and then using it within the coated material definition)? as it is you can't save a material and then re-use it later.
Re: Coating material thread
Hi FakeShamus,
Some of the new features coming with 3.6 beta are not finalized yet, please check out Ono's answer to suvakas on the matter:
http://www.indigorenderer.com/forum/vie ... 18#p119118
Some of the new features coming with 3.6 beta are not finalized yet, please check out Ono's answer to suvakas on the matter:
http://www.indigorenderer.com/forum/vie ... 18#p119118
obsolete asset
-
- Posts: 512
- Joined: Wed May 02, 2007 11:34 am
Re: Coating material thread
ah, I see.
thanks
thanks
Re: Coating material thread
Hi FakeShamus,FakeShamus wrote:Hi Ono,
is there an alternate way to define the substrate material, other than referencing the material_uid? could material name be used instead (sort of like you would do for a blend material - defining the substrate material first and then using it within the coated material definition)? as it is you can't save a material and then re-use it later.
We're generally moving towards a UID based approach, instead of binding by name.
Re: Coating material thread
Is there any info available about the UID ?
Like how to use it inside Indigo mesh?
Suv
Like how to use it inside Indigo mesh?
Suv
Re: Coating material thread
Hi Suv,suvakas wrote:Is there any info available about the UID ?
Like how to use it inside Indigo mesh?
Suv
UIDs just have to be different (unique) for every node in the scene.
The material UIDs are not stored in the mesh - they are stored in the model2 element in the scene XML. Try serialising a scene with the Indigo GUI (saving a scene) and check out the model2 XML.
nick
Re: Coating material thread
Hey Nick,
Ok, good idea. Will do so.
But wasn't there a list of used materials also inside igmesh file?
Suv
Ok, good idea. Will do so.
But wasn't there a list of used materials also inside igmesh file?
Suv
Re: Coating material thread
Yeah, there used to be a list of material names inside the igmesh file. But it was a bad idea to store the material names in the meshsuvakas wrote:Hey Nick,
Ok, good idea. Will do so.
But wasn't there a list of used materials also inside igmesh file?
Suv
-
- Posts: 1828
- Joined: Mon Sep 04, 2006 3:33 pm
Re: Coating material thread
When using a texture to control coating thickness, the input field could use a couple more decimal places! It's not possible to enter 0.0000001, for example... Perhaps a multiplier?
Re: Coating material thread
It's in micrometres, you don't need a value that smallStompinTom wrote:When using a texture to control coating thickness, the input field could use a couple more decimal places! It's not possible to enter 0.0000001, for example... Perhaps a multiplier?
EDIT: Ah, the texture scale (b) control is in metres.
Who is online
Users browsing this forum: No registered users and 91 guests