Some informations about textures (little FAQ)

Tips for creating and manipulating planet textures for Celestia.
Topic author
jim
Posts: 378
Joined: 14.01.2003
With us: 21 years 5 months
Location: Germany

Some informations about textures (little FAQ)

Post #1by jim » 13.03.2003, 20:41

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
Last edited by jim on 22.03.2003, 18:15, edited 1 time in total.

Darkmiss
Posts: 1059
Joined: 20.08.2002
With us: 21 years 10 months
Location: London, England

Post #2by Darkmiss » 14.03.2003, 20:27

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 ?
CPU- Intel Pentium Core 2 Quad ,2.40GHz
RAM- 2Gb 1066MHz DDR2
Motherboard- Gigabyte P35 DQ6
Video Card- Nvidia GeForce 8800 GTS + 640Mb
Hard Drives- 2 SATA Raptor 10000rpm 150GB
OS- Windows Vista Home Premium 32

Topic author
jim
Posts: 378
Joined: 14.01.2003
With us: 21 years 5 months
Location: Germany

Post #3by jim » 14.03.2003, 23:43

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

kary
Posts: 6
Joined: 14.06.2003
With us: 21 years
Contact:

How to cerate excellent earth

Post #4by kary » 14.06.2003, 10:35

MY ANSVER AND ALL ABOUT IT WAS MOVED TO

http://www.shatters.net/forum/viewtopic.php?p=17003#17003
Last edited by kary on 14.06.2003, 11:33, edited 2 times in total.

jamarsa
Posts: 326
Joined: 31.03.2003
With us: 21 years 2 months
Location: San Sebastian (Spain)

Post #5by jamarsa » 14.06.2003, 10:41

...
Last edited by jamarsa on 14.06.2003, 12:05, edited 1 time in total.

ElPelado
Posts: 862
Joined: 07.04.2003
With us: 21 years 2 months
Location: Born in Argentina
Contact:

Post #6by ElPelado » 14.06.2003, 11:09

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
---------X---------
EL XENTENARIO
1905-2005

My page:
http://www.urielpelado.com.ar
My Gallery:
http://www.celestiaproject.net/gallery/view_al ... y-Universe

danielj
Posts: 1477
Joined: 15.08.2003
With us: 20 years 10 months

Re: Some informations about textures (little FAQ)

Post #7by danielj » 28.08.2003, 19:18

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?

Topic author
jim
Posts: 378
Joined: 14.01.2003
With us: 21 years 5 months
Location: Germany

Re: Some informations about textures (little FAQ)

Post #8by jim » 30.08.2003, 19:03

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

Silver Surfer
Posts: 1
Joined: 30.09.2003
With us: 20 years 8 months
Location: France

Re: Some informations about textures (little FAQ)

Post #9by Silver Surfer » 30.09.2003, 21:06

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.

Topic author
jim
Posts: 378
Joined: 14.01.2003
With us: 21 years 5 months
Location: Germany

Post #10by jim » 01.10.2003, 23:31

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

Guest

normal vs standard

Post #11by Guest » 14.11.2003, 04:26

what is the difference between a normalmap and a standard texture

Topic author
jim
Posts: 378
Joined: 14.01.2003
With us: 21 years 5 months
Location: Germany

Re: normal vs standard

Post #12by jim » 24.11.2003, 23:08

Anonymous wrote:what is the difference between a normalmap and a standard texture


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

Bye Jens

Ton Lindemann

Warned: agressive dialers on your links!

Post #13by Ton Lindemann » 21.10.2004, 21:00

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

Avatar
selden
Developer
Posts: 10190
Joined: 04.09.2002
With us: 21 years 9 months
Location: NY, USA

Post #14by selden » 21.10.2004, 21:31

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.
Selden

Tetzauh
Posts: 24
Joined: 24.09.2004
With us: 19 years 9 months
Location: Tesist?n ( 20.7830°N, 103.4830°W)

Post #15by Tetzauh » 09.12.2004, 23:00

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?
"Titan is Ours!" -Starscream

Avatar
selden
Developer
Posts: 10190
Joined: 04.09.2002
With us: 21 years 9 months
Location: NY, USA

Post #16by selden » 09.12.2004, 23:12

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
Selden

elie
Posts: 16
Joined: 22.09.2005
With us: 18 years 9 months
Location: France

Post #17by elie » 26.09.2005, 21:18

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

Avatar
selden
Developer
Posts: 10190
Joined: 04.09.2002
With us: 21 years 9 months
Location: NY, USA

Post #18by selden » 26.09.2005, 21:39

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.
Selden

MBV
Posts: 4
Joined: 19.07.2008
With us: 15 years 11 months

Re: Some informations about textures (little FAQ)

Post #19by MBV » 19.07.2008, 18:18

My Celestia is loading textures from the lores folder over the ones in the medres. How do I solve this?

Avatar
selden
Developer
Posts: 10190
Joined: 04.09.2002
With us: 21 years 9 months
Location: NY, USA

Re: Some informations about textures (little FAQ)

Post #20by selden » 19.07.2008, 19:25

capital R = use next higher resolution.
lower case r = use next lower resolution.
Selden


Return to “Textures”