Page 1 of 1
Nested dielectrics and clip maps in materials
Posted: Mon Oct 12, 2015 1:27 pm
by bjorn.syse
Hi!
I'm experimenting a bit with some semitransparent decals on a bottle with liquid and was of course thrilled to learn about the new nested dielectrics. However, I'm wondering about the ability to use a clip map / Layer mask to remove parts of the material. Is that somewhat threatened when using nested dielectrics?
I'm taking out rounded corners on this decal using a black and white layer mask, but somehow the still show. I wasn't seeing this behaviour before Maxwell 3.2. Decal uses Priority 1, Bottle 0 and Liquid inside 2.
Here are all the files to the project if someone would like to examine it further:
https://www.dropbox.com/sh/33xyr03mxxrt ... -DALa?dl=0
Regards
- Björn
Re: Nested dielectrics and clip maps in materials
Posted: Tue Oct 13, 2015 4:46 pm
by tom
Why do you use nested priority with the decal? Is it intersecting with the bottle or cap?
Re: Nested dielectrics and clip maps in materials
Posted: Tue Oct 13, 2015 5:19 pm
by bjorn.syse
Sorry, disregard the top turquoise decal. That one is a single sided polygon without dielectrics. But on the large front area there is a decal that is intersecting the bottle and has dielectrics. If you look close to the corners the clipmap is not quite working.
Re: Nested dielectrics and clip maps in materials
Posted: Tue Oct 13, 2015 7:01 pm
by seghier
is the decal shape surface or solid ? i don't think nested work with single face
Re: Nested dielectrics and clip maps in materials
Posted: Tue Oct 13, 2015 7:50 pm
by bjorn.syse
Decal shape is solid, intersecting the bottle. Just to avoid misunderstandings, this is the decal I'm talking about:
Regards
- Björn
Re: Nested dielectrics and clip maps in materials
Posted: Tue Oct 13, 2015 8:34 pm
by seghier
Re: Nested dielectrics and clip maps in materials
Posted: Tue Oct 13, 2015 9:10 pm
by bjorn.syse
Wow, thanks. Very thorough run down!
But, you say, setting the decal to 0 and bottle to 1, would imply that the parts of the bottle thickness are removed to give place for the decal. I was under the impression that "letting the bottle take bite out of the decal" would be more close to the real situation. Hence, having the decal with a higher priority than the bottle.
Regards
- Björn
Re: Nested dielectrics and clip maps in materials
Posted: Tue Oct 13, 2015 9:18 pm
by seghier
it's just a try

i don't see difference because the decal have small thikness ; if i want create more realistic decal i will not use this method

and maybe everyone use another method for decal
if you want use nested dielectrics ; recreate the decal shape with round edges because with mask you will get wrong result
Re: Nested dielectrics and clip maps in materials
Posted: Wed Oct 14, 2015 10:41 am
by tom
Decal with thickness doesn't sound right. I would use a simple surface for the decal and easily render it...
Re: Nested dielectrics and clip maps in materials
Posted: Wed Oct 14, 2015 11:06 am
by bjorn.syse
And put it slightly outside the bottle mesh? And use dielectrics on it? what priority?
Re: Nested dielectrics and clip maps in materials
Posted: Wed Oct 14, 2015 2:18 pm
by tom
Could you show me a photo reference for that decal? Is it transparent? You could consider clear AGS instead of dielectrics, no?
Re: Nested dielectrics and clip maps in materials
Posted: Wed Oct 14, 2015 3:00 pm
by tom
Re: Nested dielectrics and clip maps in materials
Posted: Thu Oct 15, 2015 2:41 am
by seghier
bjorn.syse wrote:And put it slightly outside the bottle mesh? And use dielectrics on it? what priority?
you can't use nested dielectrics with surface
if you recreate the label with round edges you can use nested as you did before ; i test this setup
https://www.dropbox.com/s/rgtkoqb7sx7e9rn/3.mxs?dl=0