Help From The Celestia Oldtimers

General discussion about Celestia that doesn't fit into other forums.
Topic author
Don. Edwards
Posts: 1510
Joined: 07.09.2002
Age: 59
With us: 22 years 2 months
Location: Albany, Oregon

Help From The Celestia Oldtimers

Post #1by Don. Edwards » 08.03.2006, 04:29

Ok guys and gals,

I am going out on a limb here one old timer to the other old timers. Does Celestia still support a specmap placed in the alpha channel of a texture? If it does, is it less memory intensive than a stand alone specmap? The reason I ask is that for smaller texture releases I am considering going back to the practice of imbedding the specmap to make installing them easier. Also as of late, for some reason, my specmaps are not working properly. They smear across the surface or only half of them seem to appear and work at all.

I know full well that standing procedure is to look through the forum for this info, but we are talking of over 4 years worth of posts to try and go through and Celestia has gone through some significant changes over the years. So I want to make sure this feature still functions. I have yet to install the newest build so I haven't tried this myself. Any help would be greatly appreciated.

Don. Edwards
Last edited by Don. Edwards on 08.03.2006, 10:16, edited 1 time in total.
I am officially a retired member.
I might answer a PM or a post if its relevant to something.

Ah, never say never!!
Past texture releases, Hmm let me think about it

Thanks for your understanding.

Malenfant
Posts: 1412
Joined: 24.08.2005
With us: 19 years 3 months

Post #2by Malenfant » 08.03.2006, 07:08

ooo, now that would be damn useful! What file formats support that? IIRC png does, are there any others?
My Celestia page: Spica system, planetary magnitudes script, updated demo.cel, Quad system

Avatar
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 22
With us: 22 years 8 months
Location: Hamburg, Germany

Re: Help From The Celeatia Oldtimers

Post #3by t00fri » 08.03.2006, 07:50

Don. Edwards wrote:Ok guys and gals,

I am going out on a limb here one old timer to the other old timers.

I am one of the "oldest timers" ;-) but you havn't been going to me ...

Does Celestia still support a specmap placed in the alpha channel of a texture?


Certainly. Just have a look at the official /default/ earth.png texture in the Celestia distribution. There we have added the specmap to the alpha channel to save memory.

Bye Fridger

Topic author
Don. Edwards
Posts: 1510
Joined: 07.09.2002
Age: 59
With us: 22 years 2 months
Location: Albany, Oregon

Post #4by Don. Edwards » 08.03.2006, 10:22

Hey Fridger,

You said the magic word, save memory. So I will be giving this a try and testing for any speed changes, thanks. I figured you would be the one to give me the right answer. I just don't like pinning anyone down and forcing and answer. I like the more passive approach.

Malenfant,

Both PNG and DDS support having the specmap in the alpha. I just haven't done it for so long I wasn't sure it was even still supported. I am glad to here that it is. So I guess I will be giving The Gimp a real workout.

Don. Edwards
I am officially a retired member.
I might answer a PM or a post if its relevant to something.

Ah, never say never!!
Past texture releases, Hmm let me think about it

Thanks for your understanding.

Avatar
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 22
With us: 22 years 8 months
Location: Hamburg, Germany

Post #5by t00fri » 08.03.2006, 13:06

Don. Edwards wrote:Hey Fridger,

You said the magic word, save memory. So I will be giving this a try and testing for any speed changes, thanks. I figured you would be the one to give me the right answer. I just don't like pinning anyone down and forcing and answer. I like the more passive approach.

Malenfant,

Both PNG and DDS support having the specmap in the alpha. I just haven't done it for so long I wasn't sure it was even still supported. I am glad to here that it is. So I guess I will be giving The Gimp a real workout.

Don. Edwards


An obvious addendum to DDS:

With alpha, DXT3 format is a must, since DXT1 (like JPG) does not support an alpha channel. While DXT1 compresses like 8:1, DXT3 only compresses like 4:1, i.e. will be double in size on the HD. But as to card memory, it does not make a difference if a texture with or without alpha channel is loaded! So in this respect you get the spec map for "free".

Bye Fridger
Last edited by t00fri on 08.03.2006, 23:08, edited 1 time in total.

Malenfant
Posts: 1412
Joined: 24.08.2005
With us: 19 years 3 months

Post #6by Malenfant » 08.03.2006, 14:59

While we're on the subject, maybe you can explain something to me about these PNGs... why is it when I look in Photoshop (version 7) at the earth.png, all I see are the oceans? The continents look like they've been 'cut out' of the map - there's no colour on the land, all I see is the checkered background image. Is there an earth land map I'm missing?
My Celestia page: Spica system, planetary magnitudes script, updated demo.cel, Quad system

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

Post #7by Rassilon » 08.03.2006, 15:27

Malenfant wrote:While we're on the subject, maybe you can explain something to me about these PNGs... why is it when I look in Photoshop (version 7) at the earth.png, all I see are the oceans? The continents look like they've been 'cut out' of the map - there's no colour on the land, all I see is the checkered background image. Is there an earth land map I'm missing?


Thats because photoshop isnt the best at handling alpha on certain formats...In CS they have improved this a tad but its still buggy...eg: saving a TGA file without flattining layers in 32 bit will cause the alpha to become completely white...

Don..In case you forgot how to set up a spec map png in Gimp its done by exploding the rgb into 3 seperate greyscale images then right clicking on the spec map and composing an RGBA image adding each red green and blue maps to thier proper slots...Then the spec map as the alpha...
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!

steffens
Posts: 162
Joined: 06.11.2003
With us: 21 years
Location: RP Germany

Post #8by steffens » 08.03.2006, 15:27

Malenfant wrote:why is it when I look in Photoshop (version 7) at the earth.png, all I see are the oceans?

This is because the specular map is stored in the alpha channel, which is normally used to represent transparency. Land masses don't reflect a lot of specular light, that's why these regions are transparent. You can disable the (display of the) alpha channel in Photoshop to see the raw texture data without transparency.

steffens

Malenfant
Posts: 1412
Joined: 24.08.2005
With us: 19 years 3 months

Post #9by Malenfant » 08.03.2006, 15:54

steffens wrote:
Malenfant wrote:why is it when I look in Photoshop (version 7) at the earth.png, all I see are the oceans?
This is because the specular map is stored in the alpha channel, which is normally used to represent transparency. Land masses don't reflect a lot of specular light, that's why these regions are transparent. You can disable the (display of the) alpha channel in Photoshop to see the raw texture data without transparency.


How do you do that? When I look at the channels for the earth.png all I see are the usual RGB ones, I don't see an alpha channel. And the only layer there is 'layer 0'.
My Celestia page: Spica system, planetary magnitudes script, updated demo.cel, Quad system

ajtribick
Developer
Posts: 1855
Joined: 11.08.2003
With us: 21 years 3 months

Post #10by ajtribick » 08.03.2006, 16:38

On the subject of specmaps, it would be nice if there were some way to control how the specular maps are loaded. I'm currently using some high res Earth maps (I think they're Don Edwards's maps), and they have a separate specmap. However activating the specmap option in solarsys.ssc causes the high res specmap to be loaded when using medres textures (which I use fairly often when I'm testing stuff, as it greatly improves load time), because there isn't a specmap in the medres folder.

So I've basically ended up extracting the alpha channel out of earth.png into a separate file in the medres folder.

Topic author
Don. Edwards
Posts: 1510
Joined: 07.09.2002
Age: 59
With us: 22 years 2 months
Location: Albany, Oregon

Post #11by Don. Edwards » 08.03.2006, 22:50

Hey Rassilon,

It?€™s been a long time hasn't it. I absolutely remember how to add the specmap, its somewhat similar to making transparent clouds in GIMP. Although I have moved to Paint Shop Pro for all my cloud making, I still use Gimp for many things. Mainly because it allows for the adjustment of compression on PNG files.

To everyone else, I too have run into that darn problem with Photoshop CS wrecking TGA files. There is another work around though. Take the TGA file format plug-in from Photoshop 7 and replace the one in CS with it. This solves the transparency issue once and for all.

On a side note, I was going to move to Photoshop CS2 (9), but they had the short sightedness to remove the layering check boxes that were in the previous builds. This makes the way I work in Photoshop totally useless as I now have no control over adjusting what layers I want to merge or turn on and off.

Ok that?€™s a little off subject. But all my new textures will be going back to having the specmap in the alpha channel. If it gets the free ride that Fridger says it does this is a no brainer. That will also save from having to add the parameter in the .ssc files as well.

Don. Edwards
I am officially a retired member.
I might answer a PM or a post if its relevant to something.

Ah, never say never!!
Past texture releases, Hmm let me think about it

Thanks for your understanding.


Return to “Celestia Users”