I’m currently practicing visual effects, and I’m trying to achieve the effect of turning the entire 3d world black besides the player characters. You can find these effects in games like Heroes Battlegrounds.
I already have an idea of how to achieve this but they all seem expensive:
Loop through every single object and set its transparency to 1.
Although this seems like a good idea, the only way to turn the objects back to normal would be to keep track of every single objects previous transparency and then loop through and change the transparency back, which seems like a huge amount of data, although I could be wrong.
What is the best way to achieve this? I can provide a video clip of an example.
Actually that doesn’t apply to me, since I need all parts to be invisible, even those directly visible to the player, not just some objects behind others.
honestly for this effect I think the best way to do it is to add a viewportframe with a completely black background and then replicate the player model to the viewportframe
unfortunately there is no lighting via this method but roblox is really lame with vfx that doesn’t involve parts lol
I do have some code that does something similar to this (red background, but also makes the character completely black, which is a whole other can of worms), if you’d like I can share the code here, although it is pretty messy
This i am pretty sure is correct. I noticed with most games that have this effect, the characters outlines are kinda choppy, and that’s an effect of a view model.