Utility of bump mapping for the moon

Report bugs, bug fixes and workarounds here.
Guest

Utility of bump mapping for the moon

Post #1by Guest » 15.03.2002, 23:47

There is always a side of the moon on which shadows seem to be cast the wrong way. That makes some of the craters look convex instead of concave.
Since I cannot get the moon map to be right in all situations, I tried blanking it and checked how it would look like only with bump mapping. I got a perfectly flat white moon. I tried to raise the BumpHeight parameter without luck; still a perfectly flat moon. Did anyone get better results ?
My graphic card : ATI Radeon.

Spaceman Spiff
Posts: 420
Joined: 21.02.2002
With us: 22 years 8 months
Location: Darmstadt, Germany.

Better results using Albedo Maps with Bumps Maps.

Post #2by Spaceman Spiff » 16.03.2002, 15:53

I have much better results, but I can't show them yet, because I have no public web space to park the snapshots I made. I have 7 little jpeg 'thumnails' (320?230) to illustrate my results and this point...

Coming from the 'What Celestia should be' debate (http://www.shatters.net/forum/viewtopic.php?t=163), I'm restricted in input on matters of accuracy ('realism') until I sort out image submission. I left this issue of shadowing out of 'realism' though because it is an easy one to fix given Celestia's great flexibility in data files.

The problem arises because the texture map is an air-brushed 'topographic' map for lunar cartographers. It is designed to show all features illuminated at a constant angle by light from the east - a standard convention - so shadows are fixed. Currently, most other moons in Celestia suffer this problem, esp. Phobos and Saturnian moons.

My solution is to use an albedo map in place of a topographic map, but keeping the bump map. An albedo map is a map that shows suface colour and brightness without shadowing. They are built up as photomosaics from images where the Sun is high up in the sky over a planet or moon. Texture maps for Earth, Mars, all Gas Giants and the Galilean moons delivered with Celestia are already albedo maps. Only planets and moons that have been imaged with enough coverage to gain the data can have complete albedo maps.

I found an almost perfect albedo map for the moon at the USGS Clementine web site:

http://wwwflag.wr.usgs.gov/USGSFlag/Space/clementine/images/albedo.simp750.jpeg

The size is 1080?720, so watch out if you can't deal with non-power-of-two sizes…

The north and south poles still have fixed shadows, but that's because the Moon's axial tilt is only about 1° w.r.t. the ecliptic, and we'll never see the Moon's poles illuminated from on high. The problem cannot be cured, unless nuclear explosions are used in large-scale flash photography.

You can see the fixed shadows give an odd effect over the poles if you speed up time and watch the Moon rotate around it's poles. The shadows always face in to the poles, rather than just away from the Sun… Fortunately, the area concerned is small and often out of the way, so we can live with it.

I also have an excellent result using this technique with Rhea, moon of Saturn, but only from a certain angle. It has bearings on the Voyager tour proposals... More later with images, I hope…

I think albedo maps tend to be presented with a high colour saturation, which I think is not realistic. I have seen the planets through telescopes and they actually have much paler looks to them, but it's a problem easily cured with Paint Shop Pro, e.g. I put a gamma correction of 2.24 on my Moon albedo map for extra brightness.

I think the Bump Map operates on the Texture Map, so if you removed it, the Bump Map has nothing to modify. Likely not a graphics card problem, then. However, I did notice that all a Bump Map does is adjust the colour/brightness of the Texture Map on the object. It does not change the shape of the object from a smooth sphere (as I found when trying to see if the crater Herschel on Mimas became indented). Bump Maps don't cause craters to become pits in a moon's limb. Nor do they make mountains cast long shadows…

Please do not expect full albedo maps for Uranian satellites until at least 2040 (think about it…:wink:).

Spiff.

picili
Posts: 5
Joined: 15.03.2002
With us: 22 years 7 months
Location: Qu?bec - Canada

Post #3by picili » 16.03.2002, 23:15

In fact I was using a single colour texture map and after close looking, it appears that only a very small part of the moon is bump mapped. That why I guess it's a graphic card problem. I have to investigate...
Can't wait to see your results.
Olivier.

Rassilon
Posts: 1887
Joined: 29.01.2002
With us: 22 years 9 months
Location: Altair

Post #4by Rassilon » 17.03.2002, 06:10

picili wrote:In fact I was using a single colour texture map and after close looking, it appears that only a very small part of the moon is bump mapped. That why I guess it's a graphic card problem. I have to investigate...
Can't wait to see your results.
Olivier.


Make sure you have pixel shading capabilities on that card...Best place to look is the users manual or the home page...Also make sure the options in the menu are checked under rendering...

Spiff, if you want image hosing try the site I use http://www.freewebspace.com... You will have to make a small web page in order to get away with it, but that shouldn't be too hard...And its free ;)
I'm trying to teach the cavemen how to play scrabble, its uphill work. The only word they know is Uhh and they dont know how to spell it!

Matt McIrvin
Posts: 312
Joined: 04.03.2002
With us: 22 years 8 months

Albedo maps and bump mapping

Post #5by Matt McIrvin » 17.03.2002, 19:13

Spaceman Spiff said:
The north and south poles still have fixed shadows, but that's because the Moon's axial tilt is only about 1° w.r.t. the ecliptic, and we'll never see the Moon's poles illuminated from on high. The problem cannot be cured, unless nuclear explosions are used in large-scale flash photography.

It can't be cured with literal accuracy, but it might not be quite so hard to get rid of the fixed shadows with a little artistry-- to airbrush them out, so to speak.

However, I did notice that all a Bump Map does is adjust the colour/brightness of the Texture Map on the object. It does not change the shape of the object from a smooth sphere (as I found when trying to see if the crater Herschel on Mimas became indented). Bump Maps don't cause craters to become pits in a moon's limb. Nor do they make mountains cast long shadows…


Right-- what you want is sometimes called a "displacement map" in computer graphics jargon. All a bump map does is adjust the surface orientation assumed in the lighting model at a given point. This works well for many orientations if the bumps are not too large, but the realism begins to break down when the surface is seen almost edge-on. Displacement maps adjust the displayed position of the point as well; they actually modify the computed geometry of the object. This makes them potentially much more computationally expensive.

chris
Site Admin
Posts: 4211
Joined: 28.01.2002
With us: 22 years 9 months
Location: Seattle, Washington, USA

Utility of bump mapping for the moon

Post #6by chris » 18.03.2002, 17:42

Anonymous wrote:There is always a side of the moon on which shadows seem to be cast the wrong way. That makes some of the craters look convex instead of concave.
Since I cannot get the moon map to be right in all situations, I tried blanking it and checked how it would look like only with bump mapping. I got a perfectly flat white moon. I tried to raise the BumpHeight parameter without luck; still a perfectly flat moon. Did anyone get better results ?
My graphic card : ATI Radeon.

Currently, bump mapping only works with GeForce cards . . . I do plan to implement a version that works with ATI cards using DOT3 texturing, but so far I haven't found the time to do this.

--Chris

chris
Site Admin
Posts: 4211
Joined: 28.01.2002
With us: 22 years 9 months
Location: Seattle, Washington, USA

Post #7by chris » 18.03.2002, 17:46

Can anyone find a higher resolution version of the Clementine albedo map? At most angles, it does look much better than the current map, especially with bump mapping applied. 1080x720 is an adequate resolution, but I'd like to have one that's at least 4096x2048 for graphics cards that support texture compression.

--Chris

Rassilon
Posts: 1887
Joined: 29.01.2002
With us: 22 years 9 months
Location: Altair

Post #8by Rassilon » 18.03.2002, 19:53

Clementine albedo map? What is this exactly?

I could make you one chris....well when I know what it is ;)
I'm trying to teach the cavemen how to play scrabble, its uphill work. The only word they know is Uhh and they dont know how to spell it!

chris
Site Admin
Posts: 4211
Joined: 28.01.2002
With us: 22 years 9 months
Location: Seattle, Washington, USA

Post #9by chris » 18.03.2002, 20:03

Thanks to a link posted by Hank, I think I've got a 4096x2048 map now . . . An albedo map is just a surface texture where all the detail is due to actual variations in surface brightness rather than local lighting conditions.

--Chris

Vicware
Posts: 120
Joined: 23.02.2002
With us: 22 years 8 months
Location: Los Angeles, CA

Bump mapping...

Post #10by Vicware » 18.03.2002, 20:12

Currently, bump mapping only works with GeForce cards . . . I do plan to implement a version that works with ATI cards using DOT3 texturing, but so far I haven't found the time to do this.
--Chris


Chris - You mean I won't ever have bump mapping with my
TNT2 Viper 770 card? What a bummer that would be.

Vic

chris
Site Admin
Posts: 4211
Joined: 28.01.2002
With us: 22 years 9 months
Location: Seattle, Washington, USA

Bump mapping...

Post #11by chris » 18.03.2002, 20:19

Vicware wrote:Chris - You mean I won't ever have bump mapping with my
TNT2 Viper 770 card? What a bummer that would be.

The TNT2 only supports embossed bump mapping, which might produce acceptable results but will not look as good as 'true' bumpmapping. Honestly, I'm not sure if I'll getting around to supporting bump mapping for older cards.

--Chris

Vicware
Posts: 120
Joined: 23.02.2002
With us: 22 years 8 months
Location: Los Angeles, CA

Bump mapping...

Post #12by Vicware » 18.03.2002, 21:05

The TNT2 only supports embossed bump mapping, which might produce acceptable results but will not look as good as 'true' bumpmapping. Honestly, I'm not sure if I'll getting around to supporting bump mapping for older cards.

--Chris


That's perfectly OK. If I was in your position, I would feel exactly
the same way. The Viper is already 2-3 years old. I just wanted to
confirm what the facts were.

Is Celestia coded to use embossed bump mapping if it can't do real
bump mapping? Or am I seeing no bump mapping with my card at all?

Maybe when you get time you can put up an updated list of
the current cards you know supports Celestia fully.

Vic

Rassilon
Posts: 1887
Joined: 29.01.2002
With us: 22 years 9 months
Location: Altair

Post #13by Rassilon » 19.03.2002, 18:04

chris wrote:Thanks to a link posted by Hank, I think I've got a 4096x2048 map now . . . An albedo map is just a surface texture where all the detail is due to actual variations in surface brightness rather than local lighting conditions.

--Chris


Are you adding this for future versions? i.e. having the albedoMap = "texture.jpg" or something to this effect usuable for all planets?

Also what would be cool as hell would be adding Spectural Maps...
I'm trying to teach the cavemen how to play scrabble, its uphill work. The only word they know is Uhh and they dont know how to spell it!


Return to “Bugs”