One thing I always disliked in Stellarium was the rendering of the Moon. It always looked like a giant 3D sphere with a "computer graphics style".
The reason for this is that we were until now using a basic Lambertian reflectance model. In other words, it means that we assumed that the light coming from the sun was reflected equally in all directions by the Moon's surface. The Moon being a sphere, this implies that the center of the full moon was brighter than the edges, because the light coming from the Sun comes perpendicular to the moon surface. And this produces something like that:
Notice how the center of the moon is brighter than it's edges |
Image from this Wikipedia page - Copyrights Luc Viatour - CC BY-SA 3.0 |
Notice the "flat design" look & feel? (At least something Apple won't be able to patent because of prior art ;) )
The reason of this is that the Moon's surface is composed of a rough material, and that rough materials are not well modelized by Lambertian model. For such surface, one option is to use an Oren-Nayar reflectance model. Based on this article I was able to quickly implement something, and here is the result:
OK, it's still ugly, but it's already better.. |
What's next? Maybe try to add normal mapping, to simulate relief and adopt nicer textures.
Hi! We already have code for normal mapping (SOCIS 2011), but now it required porting and cleaning.
ReplyDeleteSorry for offtopic. Found you at Stellarium site and have a question to you. As I see, Stellarium is a good platform for one my idea, and I want to tell you about it and ask you what is the simplest way to realize it in Stellarium.
ReplyDeleteThe idea is to visualize analemmas on the sky. For example, 12pm UTC analemma is located over London, and other 23 analemmas look like a diamond ring around the Earth. I am not sure it is possible to drop a link here, but I try: it looks like this
daybit.narod.ru/IMG_4341_pano_mini.jpg
The idea is to link every point of analemma to specific coordinates of Earth, so if you move from London to South, then analemma ring becomes higher in the sky, and if you go East (for instance) then the analemma ring begins to rotate around you.
This is one more view of analemma ring for London but from another point of view (not from Earth) - this is for demonstrating purpose only, not to implement in Stellarium:
savepic.net/2752255.jpg
So what do you think about it?
Hi. In there's 2 mistakes in Stellarium regarding Russian translation.
ReplyDelete1. Errai (Cep) hasn't its second name Альраи. So add it, please (https://ru.wikipedia.org/wiki/%D0%93%D0%B0%D0%BC%D0%BC%D0%B0_%D0%A6%D0%B5%D1%84%D0%B5%D1%8F)
2. Hyadum IV (Tau) has name Градум IV (but it must be like this Гиадум IV).
E-mail to dmitriy208@yandex.ru if have any questions. Thanks
Hi Fabien,
ReplyDeletecan I use some screenshots from Stellarium in a documentation Video (a Video about my Nightscapes)