Showing how to replicate this weird glass bug i found

I was tinkering around with the Reflectance and Transparency properties on a meshpart with an inverted sphere mesh using glass material and it eventually turned into this

First off, create a meshpart and keep DoubleSided false, this is the meshid i used: rbxassetid://970367241

Change its material to Glass

Then change its Reflectance property to 100000000 (increasing or reducing this Changes how visible the effect will be)

Then change its Transparency property to either 0.5 or 0.4999999403953552 (a value between these two can also change how visible the effect will be if i remember correctly)

The transparency of 0.5 only shows the white cracks on the surface, while 0.4999999403953552 also adds some kind of ripples inside of it as shown here

0.4999999403953552 transparency:

0.5 transparency:

You can also insert a PointLight inside of the MeshPart to change the color of the ripples.

Here i use a pink PointLight with 100 Brightness and 10 Range, just change the Range to the size of the MeshPart and the Brightness depending on how strong you want it to look.

1000 Brightness:

You can also just change the color of the part but it doesnt change all of the ripples colors, here i changed the parts color to pink and turned off the pointlight

It might not always show the selected color correctly, I believe the Reflectance causes it to change its colors depending on its surroundings. During testing i turned my entire map into this and some objects such as my trees had random colors depending on the angle and distance from the camera. I’ll have to look more into it.

Just a reminder that if you make it bigger, the texture pattern will be visibly repeated so it might not look that good:


^ The ripples may also disappear on larger objects.

It works on any shape, not only spheres:


^ Expect the triangles of the part to flicker when using different shapes, not sure why this happens but maybe try playing around with the properties and see if anything changes

Here is a download for the rbxm model: GlassTestModel.rbxm (43.7 KB)

I don’t know if this was the right category to post in, but i hope this is useful for anyone out there.

28 Likes

Can you add a model or a .rbxl file or open source place to edit, with some examples?

Thanks

1 Like

hollow purple ahh effect

Thanks for sharing btw, this is cool

2 Likes

I added an rbxm file to the post

1 Like