Precedence... again (and sorry for that)!

General discussion about Indigo Materials - material requests, material developement, feedback, etc..
User avatar
zeitmeister
2nd Place 100
Posts: 2010
Joined: Tue Apr 22, 2008 4:11 am
Location: Limburg/Lahn, Germany
Contact:

Precedence... again (and sorry for that)!

Post by zeitmeister » Thu Nov 18, 2010 1:20 am

Hi,

could you please explain again the precedence value?

My example:
- I've got a glass mesh.
- Inside there, I've got a liquid mesh.
- Inside there, I've got some ice cube meshes.
- Inside them, I've got some "air bubbles" meshes.
- Inside the glass mesh bottom, 'Ive got another air bubble mesh.

Which precedence values do I have to specify so that Indigo renders that one correctly?

Thank you very much; I think this could help other n00b users. :mrgreen:
Cheers, David



DAVIDGUDELIUS // 3D.PORTFOLIO
·
Indigo 4.4.15 | Indigo for C4D 4.4.13.1 | C4D R23 | Mac OS X 10.13.6 | Windows 10 Professional x64

User avatar
Zom-B
1st Place 100
Posts: 4700
Joined: Tue Jul 04, 2006 4:18 pm
Location: ´'`\_(ò_Ó)_/´'`
Contact:

Re: Precedence... again (and sorry for that)!

Post by Zom-B » Thu Nov 18, 2010 1:59 am

the highest precedence for intersections wins!

so glass vs water, where the glass gives the border it wins!
icecubes vs water the icecubes are "stronger" and win.
In the icecube the bubbles win
in the glass the bubbles win too
...

so here some copy past numbers:

glass 10
water 9
icecube 10
bubbles 11
polygonmanufaktur.de

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

Re: Precedence... again (and sorry for that)!

Post by CTZn » Thu Nov 18, 2010 3:44 am

Zom-B is correct !

However it is safer to add one degree to ice and bubbles, in order to avoid conflicts if ice comes across the glass a bit (as they are supposed to use different mediums).
obsolete asset

User avatar
zeitmeister
2nd Place 100
Posts: 2010
Joined: Tue Apr 22, 2008 4:11 am
Location: Limburg/Lahn, Germany
Contact:

Re: Precedence... again (and sorry for that)!

Post by zeitmeister » Fri Nov 19, 2010 9:56 pm

Wonderful,

this makes things much clearer for me... thanks a lot!
Cheers, David



DAVIDGUDELIUS // 3D.PORTFOLIO
·
Indigo 4.4.15 | Indigo for C4D 4.4.13.1 | C4D R23 | Mac OS X 10.13.6 | Windows 10 Professional x64

User avatar
dakiru
Indigo 100
Posts: 747
Joined: Mon Jun 22, 2009 6:51 am

Re: Precedence... again (and sorry for that)!

Post by dakiru » Sat Nov 20, 2010 11:57 pm

I've made a small test and here are the numbers that worked for me:

EDIT:No, I posted the wrong numbers :oops: . These are correct:
Glass: 90
Tea: 60
Ice: 70
Glass bubbles: 100
Tea bubbles: 80
Ice bubbles: 85
precedence_test.jpg

User avatar
zeitmeister
2nd Place 100
Posts: 2010
Joined: Tue Apr 22, 2008 4:11 am
Location: Limburg/Lahn, Germany
Contact:

Re: Precedence... again (and sorry for that)!

Post by zeitmeister » Sun Nov 21, 2010 4:44 am

Looks great!
Why did you choose such high values?
Do they cause more samples?
Cheers, David



DAVIDGUDELIUS // 3D.PORTFOLIO
·
Indigo 4.4.15 | Indigo for C4D 4.4.13.1 | C4D R23 | Mac OS X 10.13.6 | Windows 10 Professional x64

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

Re: Precedence... again (and sorry for that)!

Post by Borgleader » Sun Nov 21, 2010 4:55 am

I'll take a glass of that :wink:
benn hired a mercenary to kill my sig...

User avatar
Zom-B
1st Place 100
Posts: 4700
Joined: Tue Jul 04, 2006 4:18 pm
Location: ´'`\_(ò_Ó)_/´'`
Contact:

Re: Precedence... again (and sorry for that)!

Post by Zom-B » Sun Nov 21, 2010 5:09 am

zeitmeister wrote:Looks great!
Why did you choose such high values?
Do they cause more samples?
The value of the precedence is a simple ranking stat!
No difference between 10 vs 100000 and 10 vs 11, the 10 value is smaller... thats the whole point ;)
Choosing such high numbers is more about personal preference...
polygonmanufaktur.de

User avatar
zeitmeister
2nd Place 100
Posts: 2010
Joined: Tue Apr 22, 2008 4:11 am
Location: Limburg/Lahn, Germany
Contact:

Re: Precedence... again (and sorry for that)!

Post by zeitmeister » Sun Nov 21, 2010 5:30 am

Alrighto,

thanks a lot!
Cheers, David



DAVIDGUDELIUS // 3D.PORTFOLIO
·
Indigo 4.4.15 | Indigo for C4D 4.4.13.1 | C4D R23 | Mac OS X 10.13.6 | Windows 10 Professional x64

User avatar
dakiru
Indigo 100
Posts: 747
Joined: Mon Jun 22, 2009 6:51 am

Re: Precedence... again (and sorry for that)!

Post by dakiru » Sun Nov 21, 2010 8:03 am

zeitmeister wrote:Looks great!
Why did you choose such high values?
Do they cause more samples?
No, just like Zom-B wrote it's more like a personal preference. Inside me I think it will work better with the wider range between the mediums :lol: But also I know that technically it doesn't work like that :)
Borgleader wrote:I'll take a glass of that :wink:
I tried to make it like hibiscus tea and hibiscus tea is yummy :)

User avatar
zeitmeister
2nd Place 100
Posts: 2010
Joined: Tue Apr 22, 2008 4:11 am
Location: Limburg/Lahn, Germany
Contact:

Re: Precedence... again (and sorry for that)!

Post by zeitmeister » Tue Nov 23, 2010 12:55 am

Alright...

now coming my two cent concerning bubbles in media.
Bubbles are air in the media, aren't they? Exactly: they lack in the mesh of the media.
So to stay physically correct, I don't have to give them an extra material, right? I have to invert the normals of the bubbles and collapse them with the mesh they do belong: the glass, the liquid, or the ice cubes.
Right?

But:
If I do so with the ice cubes swimming in the liquid, Indigo thinks that the liquid is being computed inside the ice-cube-bubbles, right?

So what should I do now?
Working with precedence, which is some kind of hack in my eyes, or do I have to substract the ice cube meshes from the liquid mesh to stay physically correct?

Questions over questions.
Cheers, David



DAVIDGUDELIUS // 3D.PORTFOLIO
·
Indigo 4.4.15 | Indigo for C4D 4.4.13.1 | C4D R23 | Mac OS X 10.13.6 | Windows 10 Professional x64

User avatar
Zom-B
1st Place 100
Posts: 4700
Joined: Tue Jul 04, 2006 4:18 pm
Location: ´'`\_(ò_Ó)_/´'`
Contact:

Re: Precedence... again (and sorry for that)!

Post by Zom-B » Tue Nov 23, 2010 1:23 am

Some separate spheres (no merging!) with high precedence and a air material should do the job.
(Air material:Uniform=1 Specular with IOR = 1)
polygonmanufaktur.de

User avatar
zeitmeister
2nd Place 100
Posts: 2010
Joined: Tue Apr 22, 2008 4:11 am
Location: Limburg/Lahn, Germany
Contact:

Re: Precedence... again (and sorry for that)!

Post by zeitmeister » Tue Nov 23, 2010 1:48 am

Hm.

I tried now the following:
- I substracted (booled) slightly larger ice cubes (without the ice cube air bubbles) from the liquid mesh
- I substracted (merged with flipped normals, so they point inside) the ice cube air bubbles from the ice cube mesh

Now everything should be computed physically correctly, shouldn't it?
Because now, inside the bubbles is no other medium any more... which Indigo interpretes as air, right?
And no liquid is being computed there where the ice cubes are.


... but this one produces not so nice black spots inside the ice cubes. :(
Cheers, David



DAVIDGUDELIUS // 3D.PORTFOLIO
·
Indigo 4.4.15 | Indigo for C4D 4.4.13.1 | C4D R23 | Mac OS X 10.13.6 | Windows 10 Professional x64

User avatar
Zom-B
1st Place 100
Posts: 4700
Joined: Tue Jul 04, 2006 4:18 pm
Location: ´'`\_(ò_Ó)_/´'`
Contact:

Re: Precedence... again (and sorry for that)!

Post by Zom-B » Tue Nov 23, 2010 3:46 am

Your method has a logical issue... your bubbles get still filled by fluid!
They are outside the Cube volume (modeled) but still inside the fluid volume!

The explained method should be easier to work with and also to tweak after setting up (moving bubbles, simply by repositioning the sphere primitives...
You need a air material (with higher precedence then the fluid) to get air into the fluid volume.
polygonmanufaktur.de

User avatar
zeitmeister
2nd Place 100
Posts: 2010
Joined: Tue Apr 22, 2008 4:11 am
Location: Limburg/Lahn, Germany
Contact:

Re: Precedence... again (and sorry for that)!

Post by zeitmeister » Tue Nov 23, 2010 4:56 am

No, the bubbles are not filled with the fluid, because I substracted the whole ice cubes (outer mesh) from the fluid... without the bubbles.
The bubbles only appear in the ice cubes! I have merged these two, and inverted the normals of the bubbles, so it behaves like you would boole the bubbles from the ice cubes.

Anyway:
of course you are right, and this method is not very handy, if logically correct anyway.
But as I said: this method causes ugly black ice cubes, and I really wonder why.
Maybe now the precedence does have to be the same like the glass again? Not stronger than the fluid, because they don't intersect any more?
Cheers, David



DAVIDGUDELIUS // 3D.PORTFOLIO
·
Indigo 4.4.15 | Indigo for C4D 4.4.13.1 | C4D R23 | Mac OS X 10.13.6 | Windows 10 Professional x64

Post Reply
16 posts

Who is online

Users browsing this forum: No registered users and 6 guests