I have this planet in my game that I decided to give a glow around the edges to make the atmosphere of it look more realistic. I did this by placing a billboardgui in the middle of the planet with a circle with a gradient at its edge. It looks fine when you look straight at it, but when you look at it from the side the gui is not in line with the planet. This is because of the FOV warp at the edge of the players camera, distorting the planet but keeping the billboardgui completely normal. This can be seen in the second image, where I made the billboardgui always show on top to make it easier to see.
Now my question is, is there a way to know when the planet is near the edge of the player’s camera so I can also warp the billboardgui accordingly, and how would i go about making that?
I not a master at these kind of things but I think that you should make the part that you using to make the planet glow transparent until it you see a faint glow.
its not a part that creates the glow, its an image in a billboardgui. I also cannot make a neon part cuz that doesnt emit a glow when theres a decal on it
itrs not about that. Its about the billboardgui not distorting with the camera’s fov like the planet does. I need to find a way to create a script that dynamically changes the size of the billboardgui so it distorts like the planet does