Hard Light Productions Forums

Hosted Projects - FS2 Required => Blue Planet => Topic started by: Herra Tohtori on March 28, 2011, 04:00:17 pm

Title: Skybox Progress and pretty images to ogle
Post by: Herra Tohtori on March 28, 2011, 04:00:17 pm
So, I found a way to combine the accuracy of NASA's Tycho/Hipparcos starfield render and the visual attractiveness of the Milky Way (http://www.eso.org/public/images/eso0932a/).

The problem I have long had with this is that the galactic panorama is rendered using the galactic plane as a reference, whereas the Tycho/Hipparcos catalogue render uses Earth-centric coordinates, meaning the north pole is Polaris, and the equator of the texture corresponds to equator of Earth.

This is a problem when rendering, because the Milky Way is not easy to align correctly. Luckily with perseverance and, lengthy calibrations, I managed to approximate satisfactory settings for the two globes so that the textures are mostly aligned (there are a few anomalies but I doubt anyone who doesn't know what to look for will see them):

(http://img41.imageshack.us/img41/209/newstarfieldblender.png)

If you look at the object windows and the orientation matrices and positions of the starfield and galaxy spheres, you'll see that they required quite careful adjustments to align with each other.

The problem with this was mainly that the preview window absolutely sucks (though with 16384x8192 textures I can hardly expect anything better). It can not be used as reference at all, so I had to adjust the orientation of the spheres, then render the whole shebang, adjust some more, render again, and carefully move closer to a position where starfield and the galaxy would be aligned at all directions, or as close as possible.

This used to be a big problem when I only had 4 gigabytes of RAM; the rendering would often kick into the page file, slowing the workflow down immensely. Recently, however, I upgraded my RAM to 8 GB, and this has enabled me to work much faster with large textures both on GIMP and blender. As a result, I was able to finish the calibration process, and managed to produce a very flashy and not at all realistic skybox with great future promise.

This is a direct render from Blender:

(http://img715.imageshack.us/img715/7936/awesometest.png)


And here are a few screenshots of the skybox in-game:

(http://img851.imageshack.us/img851/5944/galaxy1.png)

(http://img215.imageshack.us/img215/5889/galaxy3.png)

(http://img97.imageshack.us/img97/570/magellanic.png)

(http://img18.imageshack.us/img18/2813/oriontaurus.png)

(http://img849.imageshack.us/img849/4562/andromedacassiopeia.png)

These shots were taken using default -fov 0.75. Here are a few shots taken with -fov 0.40, zooming into the texture and revealing the full detail:

(http://img848.imageshack.us/img848/2756/galaxyzoom.png)

(http://img845.imageshack.us/img845/9695/andromedacassiopeiapers.png)

(http://img13.imageshack.us/img13/2521/oriontauruszoom.png)


In-game shots aren't quite as crisp as the renders, for obvious reasons - they're DXT compressed, which reduces quality, and the 4096^2 textures have one mip map level, which somewhat reduces the quality. I also think there is a way to significantly reduce the blurring caused by mip maps.

The biggest improvement, of course, is the milky way itself. Cool as it is, the Tycho/Hipparcos starfield texture is hard to use in a way that would make the milky way look good without filling the rest of the space with millions of stars that will make the appearance of the starfield quite noisy. This combined render allows that and is more flexible to customize the levels of milky way and starfield separately.

The other improvement is to objects such as Magellanic clouds, the Andromeda galaxy, Pleiades and other star clusters and other objects that now have a bit more flesh around their bones. Now, this version is rather extravagant and loud, but the improvements will also be in effect if they are somewhat subdued and desaturated, which would make them a bit more realistic.

In other words, more calibrations are required to active optimal visual effect for the intended purpose.


Expect to see derivatives of this work in WiH R2. :p
Title: Re: Skybox Progress and pretty images to ogle
Post by: Snail on March 28, 2011, 04:12:12 pm
So this is what the Jester saw when he looked into the deepness of the universe...


Srsly these look ****ing epic. I could try looking for familiar constellations during the more lengthy dialogue sessions... :nervous:
Title: Re: Skybox Progress and pretty images to ogle
Post by: PsychoLandlord on March 28, 2011, 04:20:14 pm
That really is beautiful. Excellent work.
Title: Re: Skybox Progress and pretty images to ogle
Post by: Herra Tohtori on March 28, 2011, 04:31:22 pm
Blurryness has been fixed. Run nvdxt with -Point filter for mipmap generation, and it took care of it.

Must remember to resize the 2048 textures using Point filter as well to provide crisp textures for those unable to use advanced...


(http://img862.imageshack.us/img862/9347/galaxyunblurred.png)
(http://img141.imageshack.us/img141/5943/oriontaurusunblurred.png)
(http://img576.imageshack.us/img576/6905/galaxykentauroi.png)
Title: Re: Skybox Progress and pretty images to ogle
Post by: Rodo on March 28, 2011, 04:52:43 pm
WOW, from what I can see on these renders this version looks way better than mine, nice milkyway starfield you got there Herra!, me be ashamed again  :(

Are you working on something else as well?
Title: Re: Skybox Progress and pretty images to ogle
Post by: Kolgena on March 28, 2011, 04:54:34 pm
Those are gorgeous.
Title: Re: Skybox Progress and pretty images to ogle
Post by: Aramil on March 28, 2011, 05:08:57 pm
That is truely amazing  :yes:

Sort of makes you just want to just cut the thrusters and enjoy the view.
Title: Re: Skybox Progress and pretty images to ogle
Post by: Nyctaeus on March 28, 2011, 05:13:33 pm
Incredibly awesome *___* :yes:. Looking forward for it.
Title: Re: Skybox Progress and pretty images to ogle
Post by: Ryuseiken on March 28, 2011, 06:25:52 pm
I understood less than half of what you wrote but those make for some damn nice looking backgrounds. Great work!
Title: Re: Skybox Progress and pretty images to ogle
Post by: bigchunk1 on March 28, 2011, 09:04:19 pm
That's interesting, you somehow managed to improve on perfection. Makes me wonder the things that take place on that thin strip of light far in the distance. I reckon I'm guna fail a lot of missions staring off into that background.

Title: Re: Skybox Progress and pretty images to ogle
Post by: Icewater on March 29, 2011, 01:13:51 am
(http://www.inquisitr.com/wp-content/do-want.jpg)
Title: Re: Skybox Progress and pretty images to ogle
Post by: Pred the Penguin on March 29, 2011, 05:12:32 am
New desktop backgrounds! ;7

Seriously, awesome stuff! :D
Title: Re: Skybox Progress and pretty images to ogle
Post by: Destiny on March 29, 2011, 05:21:00 am
Wow, this is...well, wow. I take my hat off to you for being capable of enduring the great mind-mashing to do this. I can't imagine how awesome it might look if I put that galaxy in this. (http://i728.photobucket.com/albums/ww286/TSADestiny/BG.png)
Title: Re: Skybox Progress and pretty images to ogle
Post by: Ypoknons on March 29, 2011, 06:51:04 am
A good friend of mine once asked 'is there a game where you can just float and admire the galaxy?' Well seems there is now.