I am pretty new to Roblox game development, so I might ask for clarification on some things.
What I want to happen
The goal here is to have some parts only be visible if they are seen outside the circle, and some only inside/through it.
Example:
The green parts represent the parts that should be visible outside the circle.
The blue parts represent the parts that should be visible inside the circle.
From this view:
Part 1 should be fully visible
Part 2 should be fully visible
Part 3 should be fully invisible
Part 4 should be mostly visible, the section seen through the circle should be invisible
Part 5 should be mostly visible, the section seen outside of the circle should be invisible, and the section currently covered by Part 4 should be visible
Part 6 should be fully invisible
Part 7 should be fully visible
Solution
One idea I had was to use glass with transparency at 0.999 and set the parts I wanted invisible to have transparency at 0.011. The glass would then act as a filter.
This effect is shown below. The blue part has it’s transparency set to 0.011, while the green part has it’s at 0. I have also selected the nearly transparent glass for visibility.
But for this to work, I believe it would need a different piece of glass that has the same effect but on other parts(a piece of glass for green parts, and another for blue parts). I haven’t been able to find anything that could help me with this, though.
If I could somehow quickly change the transparency of the green parts so they are affected, let it render, and then do the same with the blue parts without changing the green ones, it might work but I’m not sure how to do that.
I’m pretty stuck at this point, so any help is appreciated.
Thanks in advance!