Dynamic Material Instance weirdness

Hi All,

So I am trying to set a material to be translucent so i can (at run time) affect its opacity and make it fade in and out. However…when I change the material from “opaque” to “translucentcolortransmittance” and set it to surfaceforwardshading it goes from this:

to this:

Both materials are loaded and applied in the same way:

and yet this is not working as i would expect (hope)…

how come?

Translucent materials go through a different lighting path from opaque ones (forward shaded, and Lumen doesn’t light them the same way), so I don’t think you can get them to match the opaque look exactly.

For a fade in and out the usual trick is to skip translucency: set the Blend Mode to Masked and run your fade parameter through a DitherTemporalAA node into Opacity Mask. It stays lit like the opaque version, and TSR/TAA smooths the dither while it fades.

Is the fade the only reason you switched it to translucent?

yeah i am building a system where you can view the interior of an object (it has an interior mesh) and i want the exterior to lerp to about 20% opacity so it’s still there but only barely visible…and then back to 100% opacity when you deselect it

Do you have

Do you have an example of how this would work you could show me?

this doesn’t do anything…