- Home /
Getting an extremely bright object (the sun) visible from an extreme distance?
List item
I'm making a space scene that contains the Earth, Moon, and Sun. The distance between the Earth and Sun are extreme (about 43000 along the y-axis, aligned on the other axis). My sun is just an emissive sphere with a point light inside. I expanded the range and intensity, but no matter what I do, the sun is not visible from a spot near Earth. I know the light is hitting Earth (the half facing the sun is illuminated). However, how can I make it so I can see an illuminated sphere (the sun) from a location near the Earth?
Sun up close: image?![alt text] (C:\Users\KyraT\OneDrive\Pictures\Screenshots\2017-07-18 (1).png)
Next to Earth looking at Sun: image?![alt text] (C:\Users\KyraT\OneDrive\Pictures\Screenshots\2017-07-18.png)
Can you post a screenshot of the issue, and also maybe an example image of the effect you want?
Sorry, my pictures aren't working. Here's a link to them:
https://drive.google.com/drive/folders/0B71RFLqR8I1rTm1XUXBOYk82SGs?usp=sharing
One is the sun close up, the other is the Earth looking towards the Sun (however, all you can see is black space).
That is a link to the effect I was hoping for.
Answer by OliverAnthony · Jul 19, 2017 at 04:56 PM
Check you Camera's clip planes.
Thanks for the advice; the sun from Earth's distance actually won't appear in the scene view either though.
(Thanks so much this helped with the camera!) Is there a way you can change the clip plane just for general viewing in the scene window?
I can't guarantee it will work, but you could set up an editor script that changes the SceneView camera's clip plane in the same way. FYI the SceneView class is undocumented (last I checked, which admittedly was quite a while ago), so any solution could break without warning in a future release.
Answer by Habitablaba · Jul 19, 2017 at 09:14 PM
You could create a second camera that is close to your sun object, then make it clear depth only, and cull the sun only (make a layer for the sun). Then you can change your other camera to cull everything but the sun.
You'll need to play with distance, size, FOV, etc. for the 2nd camera to get the look you're after