Page 1 of 2

Some informations about textures (little FAQ)

Posted: 13.03.2003, 20:41
by jim
Hi all,

This post shall help to unterstand better how textures are used in Celestia.

general informations:
- Supported file formats: JPG, PNG, BMP(not recommend), DDS (DXT1c, DXT1a, DXT3, DXT5). Not every grafic card support texture compression therefore check if you can use DDS files.
- Texture dimensions need to be powers of two.
- usual texture dimensions: 1k = 1024x512, 2k = 2048x1024, 4k = 4096x2048, 8k = 8192x4096, 16k = 16384x8192

Which file formats should be used for which map type?

standard texture: JPG, DXT1c, PNG, DXT3
- the alpha channel of PNG and DXT3 can be used for specular reflection.
specular map: JPG, PNG, DXT1c
bump map: JPG, PNG
normal map: PNG, JPG (if only low compressed), (DXT3, but some artifacts)
night light map: JPG, PNG, DXT1c
cloud map: PNG, DXT5

Note:
-Bump maps, normal maps and specular maps works only on modern grafic cards.
-A normal map is a special version of a bump map which is direct used by the grafic card.

More information about map types, it's function and the solarsys.ssc can be found here:
http://members.fortunecity.com/guilpain/index_uk.htm

How is a map installed?

1. Copy the map file into the medres, hires or lowres folder (c:/program files/celestia/textures/). Which folder exact doesn't matter but Celestia tries to load the texture first from medres, then lowres and at least hires the folder. A resolution switch with "shift+r/r" change this order. Of couse the resolution switch makes only sence if the textures are correct placed.
2. Edit the solarsys.ssc (c:/program files/celestia/data/) with notepad or an other editor and enter the map file name at the right position.


How much memory (ram) is needed to use a large textures?

The table shows the peformance dependent on the system memory.

Image

Notes:
- The table is only a clue.
- The values assume that a prober grafic card is used (e.g. 64mb: TNT 16mb, 256mb: GF2 64mb).
- This table is valid for Windows9x. For other (newer) operating systems it's better to increase the memory.
- For a fly from object to object with fast load times there is more memory needed.
- Also with enougth memory there is a significant first load time for large textures.


Now a little bit math:
How many memory space (ram) need a texture?
JPGs and PNGs are small on the hard disc but grafic cards can't process this formats therefore the size of this file formats is in the memory essential more large. The following values for JPG/PNG are valid for texture compression off.

JPG / PNG
1K: 2,66mb
2K: 10,7mb
4K: 42,6mb
8K: 170 mb

DDS DXT1
2K: 1,33mb
4K: 5,33mb
8K: 21,3mb
16K: 85,3mb

DDS DXT3, DXT5
2K: 2,66mb
4K: 10,7mb
8K: 42,6mb
16K: 170 mb

Now an example with earth (the moon must be also regarded because it is visible if you turn the earth):

Image

Note:
- For the best performace all actuel used textures should find place in the texture memory of the grafic card. This simple example shows also that a GF4 with 128mb can get a little bit stress.
- Other parts of Celelestia, other runing software and the operating system need also memory space!

Sorry my english is not the best ;-)

Jens

Posted: 14.03.2003, 20:27
by Darkmiss
Excelent Post Jim, well done.

Quick Question
I am useing a Dxt3 earth texture
and a Dxt5 night texture
is this wrong ?

Going by your list up there
would they be better with both at Dxt1c ?

If so what would be the diference ?

Posted: 14.03.2003, 23:43
by jim
Hi Darkmiss,

Now DXT3 for earth texture makes sence if you use the alpha channel for the specular map. Otherwice i think it's better to use DXT1c format. For the night texture is the DXT1c the best choise. With DXT5 is only wasted space.

I think it's better to say some general things about the different DDS formats.

DXT1c:
- only color (no aplha channel)
- compression 8:1
- reduced color depth (16bit) on Nvida hardware (not sure if ATI has the same problem)
This format is good for all surface textures, night lights and secular maps. The color reduction is insignificant most times.

DXT1a:
- uses 1 bit aplha
- see DXT1c
I found no use for this format because the binary alpha looks ugly.

DXT3:
- 4 bit alpha (that means 16 level)
- compression (only) 4:1
- no color reduction
With this format you can save surface and speculare texture with only one file. I would this recommend if the color reduction of DXT1c is a problem. Otherwice it's better to save surface and speculare texture into different files because you are more flexible.
At the moment i use this format also for 8k normal maps but i hope future versions of Celestia support 8 bit palleted DDS files.

DXT5:
- interpolated alpha (that means more then 16 level)
- see DXT3
This format is good for cloud maps because the interpolated alpha allows a more soft transparency.

Bye Jens

How to cerate excellent earth

Posted: 14.06.2003, 10:35
by kary
MY ANSVER AND ALL ABOUT IT WAS MOVED TO

http://www.shatters.net/forum/viewtopic.php?p=17003#17003

Posted: 14.06.2003, 10:41
by jamarsa
...

Posted: 14.06.2003, 11:09
by ElPelado
in your code, you have both "bumpmap" and "normalmap".
i'm not an expert, but i think that you cant use both, or normal or bump. and the other thing, i dont know if you can use *.jpg textures ni normalmap

Re: Some informations about textures (little FAQ)

Posted: 28.08.2003, 19:18
by danielj
How do I know if my DDS textures are DXT1 or DXT3 or 5?Other thing,since I am using Windows XP,would be recommended to increase my 256 MB DDR 256 RAM memory?

Re: Some informations about textures (little FAQ)

Posted: 30.08.2003, 19:03
by jim
danielj wrote:How do I know if my DDS textures are DXT1 or DXT3 or 5?
There is no simple way to differ between dxt1 and dxt3/dxt5 compressed files. If you know the dimensions of the map then you can use the file size. A dxt1 map file has the half size of the same map with dxt3 or dxt5 compression.
e.g.

8k map (8192x4096), dxt1: 21,3mb, dxt3/dxt5: 42,6mb
4k map (4096x2048), dxt1: 5,3mb, dxt3/dxt5: 10,6mb

danielj wrote:Other thing,since I am using Windows XP,would be recommended to increase my 256 MB DDR 256 RAM memory?

Now you can live with 256 MB but Celestia works faster with 512MB or more especially with large textures and the large star database. I would recommend to upgrade at least to 512 MB.

Bye Jens

Re: Some informations about textures (little FAQ)

Posted: 30.09.2003, 21:06
by Silver Surfer
Hi Jim

I'm new in there, but if you don't mind i have a question for you.
I use a Bi-Pentium III 800 Mhz with 1Go of Sdram133+a Gforce3 Td.
Would i be able to use 8k DDS texture? I'm actually using a 4k DDS for the earth and this is very fast, there's only a small "lag" the first time the earth is loading...

The question is: Is Celestia able to load 8K texture in a Gforce3 who seem to be limited to use 4k textures...

Your post is really impressive.

Silver Surfer.

Posted: 01.10.2003, 23:31
by jim
Hi Silver Surfer,

With your system you should be able to use every large DDS texture also 16k! But even the fastest sytem will need a bit time to load textures from the harddisk to the memory. You should try the virtual textures with the latest Celestia pre release. 32k Earth and more is possible (see in the forum).

Bye Jens

normal vs standard

Posted: 14.11.2003, 04:26
by Guest
what is the difference between a normalmap and a standard texture

Re: normal vs standard

Posted: 24.11.2003, 23:08
by jim
Anonymous wrote:what is the difference between a normalmap and a standard texture


http://members.shaw.ca/jimht03/normal.html

Bye Jens

Warned: agressive dialers on your links!

Posted: 21.10.2004, 21:00
by Ton Lindemann
Hello,

I'm a brand new user of Celestia. A very nice program with great options. But I'm not happy with the next link. It offers not only texture information, but also commercial and agressive dialerlinks (with spyware I guess) pops up. Only to close by Alt-Ctrl-Del and next with closing IE from the list).

http://members.fortunecity.com/guilpain/index_uk.htm

Cheers,

Ton Lindemann

Posted: 21.10.2004, 21:31
by selden
Tom,

You need to upgrade the version of Internet Explorer that you're using. The current version blocks popups. Alternatively, you should convert to using Mozilla Firefox.

Unfortunately, many free Web servers do the things you complain about. That's how they make money to pay for the "free" disk space.

Posted: 09.12.2004, 23:00
by Tetzauh
I'm sorry to ask this question , it will probably strike you as silly... but I Have no idea what DDS texures are made with or how to edit them. I need to edit them because many add ons have them (like blue marble or green mars) and I think they're probably 2K, because my card won't show them. I had the same problem with JPGs and PNGs and I just resized them to 1k and that was it. But DDs strikes me as odd format. I use ACDsee 3.1 Do I need to upgrade or migrate to Corel or Adobe?

Posted: 09.12.2004, 23:12
by selden
DDS = Direct Draw Surface
It's a format that originated with Nvidia, I understand, but now is part of Microsoft's DirectX specification.

There are several freeware image viewers that can be used to convert DDS into other formats. I happen to use IrfanView. See http://www.irfanview.com/.


Also, there are free DDS utilities available on Nvidia's developer site at http://developer.nvidia.com/object/nv_texture_tools.html and on ATI's site at http://www.ati.com/developer/tools.html. In both cases, they're generic utilities and don't depend on what graphics card you have.

Microsoft also provides some DDS utilities as part of their free DirectX development package, but I've never been able to get them to work.
See http://www.microsoft.com/windows/directx/default.asp

Posted: 26.09.2005, 21:18
by elie
well... I don't see the table of Jim???????

it would be so helpful to understand a bit more what can i textures and maps i can download.. Selden, can u give the table in simply text !!!!
thx
(i have an Ati 128Mega card... and 512Ram )
elie

Posted: 26.09.2005, 21:39
by selden
Elie,

It looks like Jim's Web site has gone away and he hasn't posted anything for a long time. :(

I'm sorry, but I never investigated the sizes like he did. For what it's worth,
I was able to create 2K images easily on my old system with 256MB of RAM,
but 4K images caused it to page badly and run extremely slowly. 4K probably will be OK on a 512MB system.

Re: Some informations about textures (little FAQ)

Posted: 19.07.2008, 18:18
by MBV
My Celestia is loading textures from the lores folder over the ones in the medres. How do I solve this?

Re: Some informations about textures (little FAQ)

Posted: 19.07.2008, 19:25
by selden
capital R = use next higher resolution.
lower case r = use next lower resolution.