I was wondering if it is possible to have a realistic rainbow in the sky. Only way I think this can be done is using two ‘Sky’ objects. Both are the same skybox, but one of them has a rainbow. When you want the rainbow to show in-game, you would dynamically swap the skyboxes. Leading to an instant change.
However, the instant change is not really desirable. I’d rather be able to have it smoothly fade in/out. Also there’s the issue of how to add a realistic rainbow to an existing skybox.
Another way I have thought of is to use beams. Doing this correctly would be very difficult, and I’m not sure it’s even possible.
I have never seen a realistic rainbow on roblox (probably for a good reason ).
Any help is greatly appreciated!
The only way I could think of to pull this off (With limitations) would be:
Make a dome with inverted faces (There are some in the toolbox under the name of ‘skybox’) and put your rainbow texture on it.
Make a script that attaches the dome to the player whenever the rainbow is about to fade-in, that way it looks like it ‘belongs’ to the skybox since it never really ‘moves’. You have to ensure the dome is big enough so it doesn’t looks like it’s clipping into faraway buildings.
There’s a few limitations with that method, though. If you are using the Atmosphere object in Lighting or Fog then it’s highly likely your rainbow will simply blend in with the skybox and not be visible at all.
Your first idea for the method might be the best, just come up with something so the player doesn’t sees the skybox change. Unless that’s not what you want.
Good luck.
Yes I’m using atmosphere fog so I don’t think the first method will be possible. It’s also gonna be difficult to not have it clip with terrain/other things. Same for @caonhat1 's method.
I think I’ll try the skybox. I’m fine with it being an instant change if it looks good after the change.