Planetside Software Forums

General => Image Sharing => Topic started by: bigben on June 26, 2014, 10:33:21 AM

Title: Testing geotiff
Post by: bigben on June 26, 2014, 10:33:21 AM
Not a particularly pretty image, but I finally got around to playing with geotiffs in TG3 and couldn't help getting a little nostalgic. Hands up if you remember being impressed by the 513x513 TER of Cape Royal in TG0.9  ;)   I went on to play with tiled terrains and managed to create some large padded terrain sets by masking multiple TER files... but the handling of geotiffs in TG3 is freaking awesome compared to that.  Most of this terrain set is out of frame, but pretty much most of this frame is 10m data along the length of the Grand Canyon, with the left and right edges being padded with 120m resolution for another 50kms or so and finally 500m resolution centered on the canyon and extending all the way to the west coast.  3 geotiffs exported from GlobalMapper and not a mask in sight. Certainly makes preparing variable LOD terrains along a flight path very easy.
Title: Re: Testing geotiff
Post by: Tangled-Universe on June 26, 2014, 11:08:54 AM
Very cool!

Is this rendered from the georeferenced position or did you transform everything closer to the origin coordinates?

How large is the dataset in total?
Is it at share-able proportions? ;) :)

Cheers,
Martin
Title: Re: Testing geotiff
Post by: bigben on June 26, 2014, 05:03:55 PM
The two low res images total 60Mb, the main canyon is 475Mb, going as far west as Vulcan's Throne. 1Gb RAM to load, another to render. I relocated them to the top of the planet.

I made another image for the area west of that but that's another 410Mb (they're 32bit, LZW compressed).  I may have to be a little more methodical and split it up into more manageable squares which would also let me crop a little closer to the canyon edge. That would also let you use less high res data if you're only interested in a specific area.

It is very nice being able to simply load higher res terrains on top of the others without having to mask.  Must dig out a global DEM model with bathymetry to see if it's practical to do the full outer space to surface animation.

[edit]  Had a quick play, pulling down a 0.05° global geotiff (105Mb) and the 2 higher resolution images. Had to remove the outer image from the set as it had gaps at the edges. Should be able to share the data as it will now be a mixture of multiple (public) data sources. Definitely needs the intermediate terrain to improve the transition around the main terrain but it's looking pretty good.  Blue surface just altitude limited to 1m, but I'd use an ocean mask  to exclude Death Valley and other low lying areas.

Also had to turn off ray tracing objects for the high altitude render to avoid black patches.[/edit]
Title: Re: Testing geotiff
Post by: bigben on June 27, 2014, 09:34:00 AM
Digging into my archives I found my bathymetry dataset and a 20k blue marble texture.  There's no ocean/atmosphere, and the ocean bed is coloured with a clip I pulled out from an old file based on http://www.planetside.co.uk/forums/index.php/topic,2968.msg30137.html#msg30137 (http://www.planetside.co.uk/forums/index.php/topic,2968.msg30137.html#msg30137)
Global elevation and texture at 0.05°. Full res texture (0.0083°/px) around the Grand Canyon
Title: Re: Testing geotiff
Post by: Dune on June 27, 2014, 10:24:08 AM
Hi Ben. Interesting stuff, good to see this develop!
Title: Re: Testing geotiff
Post by: Mahnmut on June 27, 2014, 04:16:13 PM
That´s what I need for Mars!!
Title: Re: Testing geotiff
Post by: bigben on June 27, 2014, 06:26:36 PM
Quote from: Mahnmut on June 27, 2014, 04:16:13 PM
That´s what I need for Mars!!
Texture map as geotiff? or planetary DEM as geotiff?
Having a couple of issues making the latter but this is 0.05° per pixel on a Mars-sized planet
Title: Re: Testing geotiff
Post by: bigben on June 28, 2014, 05:50:12 AM
Ok, I think I've got Mars sorted. The DEMs were loading with 180° long. at the centre which was causing a few difficulties.  I also started with the 128 dataset which has a 2° gap at the poles.  So for DEMs I've loaded both the 64 and 128px/° sets and  got a 32K texture from Celestia and montaged it with Imagemagick.

Still at 0.05°/px with the added texture. For a planetary scale 0.025°/px is pretty easy for TG to handle
Title: Re: Testing geotiff
Post by: mhaze on June 28, 2014, 11:40:01 AM
Fascinating work.
Title: Re: Testing geotiff
Post by: bigben on June 28, 2014, 09:32:37 PM
The previous Mars images were a long way from the origin (I'd put the north pole at the top). The detail is OK from a distance, but up close it's pretty degraded. I could barely make out the crater at the top of Olympus Mons let alone the smaller craters inside it. This image has the volcano moved to the top of the planet and has an extra terrain and texture at 0.001°/px (although this will have some interpolation in the terrain). Much better :)

I'm running a quick animation to see how the detail holds up in an approach to the surface.  180 frames to go.
Title: Re: Testing geotiff
Post by: TheBadger on June 29, 2014, 01:51:30 AM
Quotemars-render_05c.jpg
winner.
Title: Re: Testing geotiff
Post by: bigben on June 29, 2014, 08:40:10 AM
I cut the animation short because there were some obvious issues with the terrain. I should have used a fixed multiple of the resolution of the DEM for resampling it.  I've fixed that and am running a different animation down to 2m altitude to test the limit of the terrain and image map.
Title: Re: Testing geotiff
Post by: TheBadger on June 29, 2014, 02:28:13 PM
looks great to me. Why is it blue though?
Title: Re: Testing geotiff
Post by: bigben on June 29, 2014, 05:54:20 PM
The texture map was slightly desaturated by the person who compiled it, but not all of Mars is "red". http://nssdc.gsfc.nasa.gov/image/planetary/mars/marsglobe3.jpg (http://nssdc.gsfc.nasa.gov/image/planetary/mars/marsglobe3.jpg). That and possibly one of my atmosphere settings. It was just a quick compilation. I've tweaked the atmosphere a bit and will probably increase the saturation a little.
Title: Re: Testing geotiff
Post by: Oshyan on July 01, 2014, 05:48:53 PM
Nice work Ben. Now just integrate HiRise data into it and you can go orbit-to-ground no problem. :D By the way, there's another person around here who has been working on a Mars scene with that kind of scale range, running into a few issues along the way. Perhaps you and he could put heads together. His nickname is Mahnmut:
http://www.planetside.co.uk/forums/index.php?action=profile;u=2662

- Oshyan
Title: Re: Testing geotiff
Post by: bigben on July 02, 2014, 04:37:13 AM
He's been in touch. Had to Google Hirise....  Wish this train would get home faster now ;).  Should be straightforward. Might have to render at work though... hit my RAM limit, although interestingly TG keeps running, it just ignores a quadrant of data. Drove me nuts for a while until I twigged to what was happening. thought there was a problem with the exported data.

[edit] So in theory it's quite easy, but there's just a tad difference between MOLA128 and HIRISE  ;)  but geotiff should be a practical format for getting the data into TG.  This is a screengrab of a single DTM on top of MOLA128 (from: http://www.uahirise.org/dtm/dtm.php?ID=ESP_017762_1890 (http://www.uahirise.org/dtm/dtm.php?ID=ESP_017762_1890))
[attach=1]
Title: Re: Testing geotiff
Post by: bigben on July 02, 2014, 06:39:06 AM
Here's a quick render of that, with a quadrant of MOLA data.  Mixing the two certainly provides additional background terrain for stills. For a space-surface animation it may work if you cut the hirise data up into some lower res segments to provide more of a transition between the data sets.  That would reduce the area of high res data, but with the right terrain you might be able to pull it off.

Last image is "standing" on the surface

Also downloaded potential landing sites in Eberswalde crater. Multiple DTMs providing reasonable overlap.  Gale crater looks like another good candidate.
Title: Re: Testing geotiff
Post by: Mahnmut on July 03, 2014, 06:21:17 PM
Well, that looks very promising!
Many thanks for looking into this.
And with HRSC at 150-50 m/px there is another source for the medium resolutions...
I´am beginning to believe that this animation could be done after all.

Cheers,
J
Title: Re: Testing geotiff
Post by: Mahnmut on July 03, 2014, 06:28:48 PM
Isn´t it fantastic what kind of data the good people at NASA and ESA provide?
Title: Re: Testing geotiff
Post by: bigben on July 03, 2014, 07:16:20 PM
Yes, and kind of ironic that I can get data at higher resolution for Mars than I can of my own backyard (for free). I'll get to use all of my GIS toys (errr... tools) for this one ;)
Title: Re: Testing geotiff
Post by: TheBadger on July 04, 2014, 12:43:32 AM
Um, so I don't think I had ever seen (or maybe just payed attention) to the blue before. So this may be a stupid question, but, what is the blue part of mars made of? Same as the rest but blue, or whats going on there?

The first animation was cool. Looking forward to more!
Title: Re: Testing geotiff
Post by: bigben on July 04, 2014, 07:08:22 AM
There's no life on our moon but on with water on Mars there may be some Penicillium Roqueforti in the soil?  ;)

"Artificially" coloured images are partly to blame.  Most of the images are all combined from greyscale images at different wavelengths so it partly depends how they're processed.  I'm not too familiar with the chemical composition though... some homework for you.
Title: Re: Testing geotiff
Post by: Mahnmut on July 04, 2014, 07:32:13 AM
Concerning the blue surfaces I think many of the images are color-enhanced, so a bluish grey looks more blue, even more so in contrast to the surrounding reddish colours. In Bens animation test I think it is rather the blue atmosphere over a desaturated grey map.
But there are also the so called blueberries, which seem to be made of some distinctly bluish grey iron compound:

http://www.chinadaily.com.cn/english/doc/2004-03/20/content_316619.htm

Cheers,
J
Title: Re: Testing geotiff
Post by: TheBadger on July 09, 2014, 02:38:27 AM
Thanks! Really interesting stuff, top to bottom.