842
edits
Legoboyvdlp (talk | contribs) No edit summary |
Legoboyvdlp (talk | contribs) (→Orbital Rendering:Earthview: MailingList2Wiki) |
||
Line 3: | Line 3: | ||
{{Spaceflight}} | {{Spaceflight}} | ||
=== Orbital Rendering:Earthview === | === Orbital Rendering: Earthview === | ||
By March 16th, 2012, Thorstem Renk managed to implement a scheme for orbital terrain rendering which he had cooked up a while ago. | |||
{{cite web | |||
| url = http://sourceforge.net/p/flightgear/mailman/message/28991398/ | | url = http://sourceforge.net/p/flightgear/mailman/message/28991398/ | ||
| title = <nowiki>[Flightgear-devel] Earthview - Orbital terrain rendering in FG</nowiki> | | title = <nowiki>[Flightgear-devel] Earthview - Orbital terrain rendering in FG, 2012</nowiki> | ||
}} | }} | ||
It was really low-tech and lived within the limitations of the current engine - just a textured sphere of 58 km diameter in the scene which was constantly repositioned using simple ray-optics to give the right impression and had a dedicated shader to never fog it and work around the high altitude light problem. The results using Celestia Level 3 texturing were quite compelling. | |||
{{cite web | |||
| url = http://sourceforge.net/p/flightgear/mailman/message/28991398/ | | url = http://sourceforge.net/p/flightgear/mailman/message/28991398/ | ||
| title = <nowiki>[Flightgear-devel] Earthview - Orbital terrain rendering in FG | | title = <nowiki>[Flightgear-devel] Earthview - Orbital terrain rendering in FG - T Renk, 2012</nowiki> | ||
}} | }} | ||
It took 7 hours to get it to this point, less than 100 lines of Nasal, some cut and paste with the shaders - most of the time was spent stitching and converting textures. It was really dumb - one could go to even higher resolution texturing by investing some smartness and introducing texture management (currently Earth is effectively covered by 4096x8192, the cloud layer adds the same amount). | |||
{{cite web | |||
| url = http://sourceforge.net/p/flightgear/mailman/message/28991398/ | | url = http://sourceforge.net/p/flightgear/mailman/message/28991398/ | ||
| title = <nowiki>[Flightgear-devel] Earthview - Orbital terrain rendering in FG | | title = <nowiki>[Flightgear-devel] Earthview - Orbital terrain rendering in FG - T Renk, 201w</nowiki> | ||
}} | }} | ||
Textures are taken from the NASA Visible Earth project - at the highest resolution level, Earth can be rendered at 32768x65536 pixel (about 500 m per pixel) and clouds with half of that. Currently there is a much lower texture resolution distributed via GIT | Textures are taken from the NASA Visible Earth project - at the highest resolution level, Earth can be rendered at 32768x65536 pixel (about 500 m per pixel) and clouds with half of that. Currently there is a much lower texture resolution distributed via GIT; a mode to make the GB-sized hires textures has yet to be determined. | ||
Combined with the [[atmospheric light scattering]] (ALS) shader to render the atmosphere, visuals are generally rather compelling. | Combined with the [[atmospheric light scattering]] (ALS) shader to render the atmosphere, visuals are generally rather compelling. | ||
Line 74: | Line 45: | ||
| title = <nowiki>[Flightgear-devel] Mailing List, Apr 24 2014</nowiki> | | title = <nowiki>[Flightgear-devel] Mailing List, Apr 24 2014</nowiki> | ||
}} | }} | ||
Earthview responds to the weather visibility setting and typically 80-140 km visibility work best (it won't affect any scenery loading because we're too far from the planet). Also, while rendering in ALS, manually tweaking Rayleigh and Mie constants gives a nice atmosphere effect. NASA provides textures in /much/ higher resolution - in the highest resolution texture set, Thorsten had the planet covered in 32768x16384 and the cloud layer in half of that. For such large textures, loading time is an issue (Earthview isn't excatly *cough* elegant) and pre-mipmapped compressed DDS is pretty much the only sane option - then that's 8 texture chunks at 176 MB each. It would be nice to make higher resolution versions available for download, but obviously that's quite a bandwidth hog - if there's sufficient interest and someone knows a server... the textures are there. Provided you have the texture memory, performance should actually be pretty high - there's just two textured spheres in the scene, and even on an old computer, some get a solid 60 fps. | |||
{{cite web | |||
| url = http://sourceforge.net/p/flightgear/mailman/message/32262904/ | | url = http://sourceforge.net/p/flightgear/mailman/message/32262904/ | ||
| title = <nowiki>[Flightgear-devel] Orbital rendering | | title = <nowiki>[Flightgear-devel] Orbital rendering - T. Renk</nowiki> | ||
}} | }} | ||
== Requirements == | == Requirements == |
edits