[Studio Beta] Introducing Alpha Mode to MaterialVariant

Hi Creators!

We’re thrilled to announce the Studio Beta release of AlphaMode support in MaterialVariants. Similar to SurfaceAppearance, this allows you to change the appearance of a material through the alpha channel of the color texture.

This feature also adds a new AlphaMode option: Opaque, that ignores the alpha mask on a color texture. This makes the behavior of MaterialVariant completely backwards compatible with the previous versions.

To try out this new functionality, go to File > Beta Features and enable “MaterialVariant Alpha Mode”

640x480
Test place showing a fence made of a MaterialVariant with AlphaMode = Transparent. In the GIF above, the StudsPerTile property on the MaterialVariant is being modified to achieve a realistic looking fence.

Usage

To use Alpha Mode with MaterialVariants, you will first need to have some Parts and MaterialVariants in your place

  1. Select a Part and choose a MaterialVariant you’ve created.
  2. Select the MaterialVariant and choose a ColorMap texture (with alpha channel if AlphaMode is desired)
  3. Select the appropriate AlphaMode from the MaterialVariant properties.

How it works

Similar to SurfaceAppearance, the following modes are present for MaterialVariant Alpha Mode:

Opaque: Ignores the alpha channel of the ColorMap
Overlay: Replaces the transparent regions of the ColorMap with the Part Color
TintMask: Tints the opaque regions of the ColorMap with the Part Color
Transparency: Tints the opaque regions of the ColorMap with the Part Color AND discards the transparent regions.

Take a look at the images below to get a feel for how each of these modes would work.


Opaque Mode

Overlay Mode

TintMask Mode

Transparency Mode

Performance And Memory

By default, MaterialVariant Alpha Mode does not have any additional performance cost if Opaque is selected (the default). The expected performance penalty for other settings is low with the exception of the Transparency mode. Care must be taken especially when there are many Parts with different Material Variant AlphaMode values present.

There is no additional memory cost to using various Alpha Mode with MaterialVariants.

Known Issues

  • In Studio, changing the AlphaMode to Opaque may sometimes not reflect properly. To get around this, save the place and restart the Studio.

Please give this Studio Beta a try and drop in any feedback or issues you might have. We’d also love to see what you create with this new capability so feel free to share examples below as well.

274 Likes

This topic was automatically opened after 9 minutes.

this is sick roblox, thank you bro

28 Likes

YAY! Excited for this update! Hope it comes with more feedback and a documentation!

13 Likes

Good to see lighting and rendering continuing to be worked on! This beats having to bake the textures into a mesh’s surface appearance or tiling meshes over and over to get the same effect.

8 Likes

LEGENDARY new studio beta. Thank you so much guys!

3 Likes

Does this mean that .TGA image files will work again? Or is there plans to add an alpha channel slot into Surface appearance in the future?

Currently the only way to embed alpha into a color map for Surface Appearance is with a un-applied vector mask in Photoshop containing the alpha info.

3 Likes

UGC having this and being able to create glasses :eyes:
Looking forward to that! :sparkling_heart:

7 Likes

New ways to design better and more optimized games.


this happens on my material variants only with realistic lighting

15 Likes

Thank you, that’s a great update!

One of the many use cases one can think of would be organic clouds materials. Unfortunately, using a MaterialVariant with its AlphaMode set to Transparency doesn’t yield a result as realistic-looking as SurfaceAppearances:

Having more blending options would cover use cases like this one. Will we get more updates on this?

6 Likes

Finally good news! Thank you Engineering team!
I have a question regarding Alphamap support!

Will this apply to Surface appearance models?
Before then Alphamasks had to be baked into colormaps to work with transparency, Will these finally be separated into their own texturemap(s)? Or will these remain untouched?

2 Likes

Ambient Occlusion shader is rendering AO shadows for things you can’t actually see. I saw the same thing happen when I used some round-corned, mostly-opaque Decals on transparent block parts, the AO for items behind the parts drew over of the decals. If you knock down your graphics quality setting, it should go away, since the AO shader is only used on the highest quality levels. Obviously that’s not a fix, just a way to confirm what you’re seeing.

1 Like

Thank you so much for this update, but it would be good if we had a terrain materials update too. In my case, for example, I need to create more materials for the default terrain, but currently the materials are limited, and we can just change the textures of some but not add new ones.

Anyway thanks!

3 Likes

May we also get something like alpha clipping / hashing?

Rendering graphics with alpha is absolutely horrid for things like trees and foliage or having many see-through objects as it causes massive overdraw and performance drops in densely packed forests.

Alpha clipping is significantly cheaper than full alpha blending and PC and console hardware can utilize some early Z optimizations to cut down overdraw on areas with many trees and bushes.

9 Likes

Pretty sure they at some point they used to have dithering to solve this. Not sure why it isn’t applied to things like this as it would solve this problem really well without affecting performance for lower end machines

6 Likes

Is it possible we can get some method to render the material of a MeshPart under a SurfaceAppearance with alpha? basically the same as the Overlay AlphaMode but with the material instead of the part color.

currently the only option is to duplicate the mesh and make the SurfaceAppearance transparent which is horrible for performance.

2 Likes

Gosh I’ve been waiting so long for this update! I’m sure the performance in games will improve noticeably.

2 Likes

This is good. I appreciate this. :slight_smile:

3 Likes

does this mean i could make parallax materials that look like 3d??? this is huuuuuge

6 Likes