So I tried MOLA shader...

Started by N-drju, October 28, 2016, 01:56:02 AM

Previous topic - Next topic

N-drju

Morning everyone,

I recently downloaded some .img files from this site - http://pds-geosciences.wustl.edu/missions/mgs/megdr.html. I downloaded some files from the meg128 directory. Then, downloaded MEGT files and tried to test one. I made sure that the data set is correct, thus picking the MEGT128 option in the data set drop-down list.

Unfortunately, once I entered the file name nothing happened. And I mean that literally nothing was happening. :P Terragen just froze, and the "busy circle" was indefinitely dancing on the screen. When I checked the memory usage I was also surprised to see that the RAM value was idle - around 2GB. It did not increase even one bit.

I'm not sure if this is actually a bug. Maybe I'm just doing something wrong. On the other hand though... how many things can go wrong if all you need to do is supply the filename...?
_________________________________________________________________
Or do I need to download the whole MEGT128 library to have that working properly?
"This year - a factory of semiconductors. Next year - a factory of whole conductors!"

ajcgi

Can you post a screenshot of your node network please?
Make sure you're only picking the first of the img files.
It will take a long time to load them, sometimes minutes, especially across a network, but they should load in. In my experience there are occasions where Terragen quits immediately, or gets half way through loading and blanks the viewport, spinning the progress wheel as you say. Essentially the MOLA data is old and the node that reads it is also old. I am assured by Planetside staff that nothing will change there in the foreseeable future.

N-drju

Hm... then it seems some patience will just do. Well... I can post a node network screenshot but there is nothing there! :D I'm loading this into a completely blank project so it's no use.

What do you exactly mean by saying that I should pick the first image file? ???
"This year - a factory of semiconductors. Next year - a factory of whole conductors!"

ajcgi

The first file in the folder here is megc00n000hb.img
that's the one I usually load. Here is a typical Mars network and its settings.


N-drju

So correct me if I'm wrong - I need to download the whole meg128 directory, use megc00n000hb and all the other files will load up all by themselves? Does it work like that? I will end up with Martian topography and colors?
"This year - a factory of semiconductors. Next year - a factory of whole conductors!"

KyL

Yes you need to download the *whole* folder. I suggest you use the 64 data set, the 128 is really huge....

You also have some pretty good data here: http://www.mars.asu.edu/data/
Also this guy did a nice job fixing those maps: http://planetpixelemporium.com/mars.html


Oshyan

MOLA provides height but not color.

- Oshyan

N-drju

That's okay, because I only need topography. However, from what ajcgi says I infer that MOLA shader is not one of your flagship creations? :P
"This year - a factory of semiconductors. Next year - a factory of whole conductors!"

Oshyan

#8
Yes, it is fair to say the MOLA shader is 'old'. As to whether it will be improved, I think in general we are looking to the general-purpose Geog Heightfield and Image Map shaders for any future georeferenced heightfield data import. Geog Heightfield already supports MOLA data, though few people seem to realize this. In fact the GIS format back-end we use for the Geog shader nodes is pretty flexible and supports many formats including moon data (LOLA), and most commonly available Earth DEM data, e.g. from the USGS.

Loading MOLA data with the Geog Heightfield nodes is not quite as "one-click" simple as the MOLA Shader, but it's a lot more flexible, powerful, and responsive in the end. To a single MOLA tile, you just add a Heightfield Load (DEM) from the Add Terrain button on the Terrain Layout, then navigate to where your MOLA data is and select the .lbl file (*not* the .img) for the tile you want to load.

If you want to load a complete set of given MOLA data, you just use the Heightfield (Load Multiple DEMs) option and scan the folder for the data you want to load (or manually add each .lbl file). It will take a while to individually load each tile but, unlike the older MOLA shader you'll get a clear progress dialog for each DEM that loads, and when it's all done you'll have individual control of every DEM that's loaded. Perhaps more importantly (for e.g. memory use), since georeferencing is supported, you can easily load a *subset* of the total data, using less resources, and still get the correct positioning, tile alignment, etc.

Having said all that, I only did some basic testing on the MOLA dat with the Geog Heightfield loader. It's possible there are some issues with it because it's mapping to  a Mars-size planet (which reminds me: make sure you change your planet size to Mars-equivalent for accurate results!). Let us know if you do see any problems with the above workflow.

- Oshyan

N-drju

Hey,

For the moment, I moved on to something else, so I'll leave the MOLA shader alone for a while. However, I will let you know how the solutions offered worked for me once I am back at it. Your information should be well enough to crack it.
"This year - a factory of semiconductors. Next year - a factory of whole conductors!"