How could I make specific portions of a mesh or part transparent?

  1. What do you want to achieve? Keep it simple and clear!
    I want to make parts of a mesh or a part turn transparent so that, if the part is between the player and the camera, that portion of the part turns translucent or transparent.
  2. What is the issue? Include enough details if possible!
    I don’t know what the actual term for this is so I am having trouble finding things for it. Currently I am using the Invisicam option, but this causes the whole part to turn translucent, which is ok but I want to see if it is possible to get something closer to what I want.
  3. What solutions have you thought of so far?
    Originally I thought of using a ScreenGui with a texture on a transparent part, and then using a transparent UIGradient to follow the camera and make a “hole” in the texture. I have not tested this yet but I doubt it would be useful as it would mean setting up a ScreenGui like this for all structures I make.
    I also thought of making a system that would split a part into wedges, which would make it easier to only make a portion of a part translucent. An example of what this would look like: https://imgur.com/a/fefOKkk
    This would obviously take a huge number of parts, and it doesn’t even look that good.

If someone has a solution, any ideas, or even a keyword to point me in the right direction that would be great. Thank you!

You could use the new Mesh and Image APIs and a SurfaceAppearance to edit the Alpha of the objects texture at the point where the player is looking through, but this will involve a lot of maths that i am not capable of.

The easier way is to just make the whole mesh transparent.

1 Like

Most non-roblox games use a shader to do this, I would think. if you could find an example of a roblox game with this feature I probably could tell you how it works

It’s been ages but I recently found out about ViewportFrame Masking and found a roundabout way of getting something similar to this effect.

1 Like

I’m curious about how you create a layered transparency effect.

I don’t quite understand what you’re referring to?

1 Like

I am curious how you make layred transparency like this.

1 Like

I used this image in a SurfaceAppearance on the 0 alpha mesh:
gradientdot

1 Like