In the movie Black Panther, there’s a scene in which the main character, T’Challah, flys through a force field that hides what I assume is Wakanda’s capital:
I want to recreate this effect for a game, but I’m not sure how I would go about it in a performant manner. I want the player to join a seemingly empty game, before walking forward and seeing everything revealed. Such an effect would necessitate a huge number of parts to appear instantaneously, causing a very large lag spike.
My first idea was to run a local-sided frame-by-frame check to see if the player’s camera has crossed the force field, then setting all the parts to visible. I pretty quickly came to the conclusion that such a simple method would be unviable due to lag.
My next idea was to do the same frame-by-frame check, but instead teleporting the player to an area where everything was visible, between the time their camera is outside the force field and when it is inside. This idea was significantly more efficient, as the game would load all the parts visibly, just in a non-visible place from spawn. However, I could not find a method that teleported the player smoothly enough.
My final idea was to use an adapted version of @EgoMoose’s portal. This approach would have solved nearly all of my issues, but before I could even approach modifying EgoMoose’s script, I realized this would not work as my game uses terrain quite extensively.
Any ideas would be greatly appreciated!