64K/128K Specular Map Blue Marble Next Generation VT PNG !

Tips for creating and manipulating planet textures for Celestia.
Avatar
fsgregs
Posts: 1307
Joined: 07.10.2002
With us: 22 years 1 month
Location: Manassas, VA

Post #61by fsgregs » 15.10.2006, 12:29

Guys:

Thanks for all the info. Lonehiker, thanks for the detailed instructions on using the nvidia dds converter. I will try to convert to dds as above. That said, ... how is anyone's system running the 64k png textures at all? Like I said, my system should be plenty fast enough and it clearly is not!

Fightspit, these textures are yours. Are you ... or anyone else using the PNG textures getting decent frame rates as you move around on the screen? If so, what rates are you getting and what is your secret?

:?

Frank

Avatar
cartrite
Posts: 1978
Joined: 15.09.2005
With us: 19 years 2 months
Location: Pocono Mountains, Pennsylvania, USA Greate Grandfother from Irshava, Zakarpattia Oblast Ukraine

Post #62by cartrite » 15.10.2006, 12:38

I may be wrong but I think most of the quality issues that involved dxt5 were with normalmaps , not the main textures. The gain in performance was thought to outweigh the quality loss. If a texture has such poor performance that locks a computer up, well.........
cartrite
VivoBook_ASUSLaptop X712JA_S712JA Intel(R) UHD Graphics 8gb ram. Intel(R) Core(TM) i5-1035G1 CPU @ 1.00GHz, 1190 Mhz, 4 Core(s), 8 Logical Processor(s) 8 GB ram. Running on Windows 11 and OpenSuse 15.4

LoneHiker
Posts: 53
Joined: 10.10.2005
With us: 19 years 1 month

Post #63by LoneHiker » 15.10.2006, 12:56

Fightspit wrote:I know the BMNG VT tiles are in PNG which provide the best quality of the tiles but decrease a lot of fps probably.

On my modest system DDS makes the difference between being able to view a 64K set at high oblique/low altitude and not being able to. :wink:

I hesitate to do a BMNG in DDS version but I don't know if DXT5 (with specific compresion ?) get the same result than PNG.
What do you think ?


Obviously PNG is not going to have any image quality issues. But honestly, I can't see any practical difference in the 64K DDS DXT5 set I'm working on, other than at extreme zoom on flat color water areas. And I'm talking about being so close that everything is very blurry. A DDS version will be a much larger upload/download, however.

Lone

LoneHiker
Posts: 53
Joined: 10.10.2005
With us: 19 years 1 month

Post #64by LoneHiker » 15.10.2006, 13:19

Fightspit wrote:I know the BMNG VT tiles are in PNG which provide the best quality of the tiles but decrease a lot of fps probably.
I hesitate to do a BMNG in DDS version but I don't know if DXT5 (with specific compresion ?) get the same result than PNG.
What do you think ?


BTW, I didn't mean to sound too critical in my original post. I understand adding a specular mask to your VT set, creating the tiles and uploading it all again is a major undertaking. Thanks for all your contributions. :)

Lone

LoneHiker
Posts: 53
Joined: 10.10.2005
With us: 19 years 1 month

Post #65by LoneHiker » 15.10.2006, 13:36

cartrite wrote:It's been a while since I did this and the computer I did it on only had 512 mb ram but I could't run the ommand "nvdxt -all -deep" if the folder I ran it on had a total size being too large. I was also converting smaller 512x512 tiles.


I ran nvDXT on 512 tiles at a time (1024 x 1024) without any problems. However, I did it all in one folder, unlike my example. If nvDXT balks one can divide the files into subfolders and run the program one folder at a time as you suggest and use the following command:

nvdxt -file c:\temp\subfolder1\*.* -outsamedir -dxt1 -nmips 4 -sharpenMethod SharpenMedium -quality_normal

Lone

Avatar
cartrite
Posts: 1978
Joined: 15.09.2005
With us: 19 years 2 months
Location: Pocono Mountains, Pennsylvania, USA Greate Grandfother from Irshava, Zakarpattia Oblast Ukraine

Post #66by cartrite » 15.10.2006, 13:44

fsgregs wrote:Guys:

Thanks for all the info. Lonehiker, thanks for the detailed instructions on using the nvidia dds converter. I will try to convert to dds as above. That said, ... how is anyone's system running the 64k png textures at all? Like I said, my system should be plenty fast enough and it clearly is not!

Fightspit, these textures are yours. Are you ... or anyone else using the PNG textures getting decent frame rates as you move around on the screen? If so, what rates are you getting and what is your secret?

:?

Frank
I have NO problems running mine on older cvs versions or the official 1.4.1 version of Celestia. Mine are 1k tiles though and are in png format. With only the 64k texture running and a 32k VT cloudmap I get about 30fps. When I enabled the normalmap it would slow down some. With the First BMNG I did, October, I removed all the ocean tiles in the highest folders. That is a 512x512 tile VT so I deleted all files that were alll ocean water for levels 4, 5 and 6.
VivoBook_ASUSLaptop X712JA_S712JA Intel(R) UHD Graphics 8gb ram. Intel(R) Core(TM) i5-1035G1 CPU @ 1.00GHz, 1190 Mhz, 4 Core(s), 8 Logical Processor(s) 8 GB ram. Running on Windows 11 and OpenSuse 15.4

Avatar
cartrite
Posts: 1978
Joined: 15.09.2005
With us: 19 years 2 months
Location: Pocono Mountains, Pennsylvania, USA Greate Grandfother from Irshava, Zakarpattia Oblast Ukraine

Post #67by cartrite » 15.10.2006, 13:47

LoneHiker wrote:
cartrite wrote:It's been a while since I did this and the computer I did it on only had 512 mb ram but I could't run the ommand "nvdxt -all -deep" if the folder I ran it on had a total size being too large. I was also converting smaller 512x512 tiles.

I ran nvDXT on 512 tiles at a time (1024 x 1024) without any problems. However, I did it all in one folder, unlike my example. If nvDXT balks one can divide the files into subfolders and run the program one folder at a time as you suggest and use the following command:

nvdxt -file c:\temp\subfolder1\*.* -outsamedir -dxt1 -nmips 4 -sharpenMethod SharpenMedium -quality_normal

Lone
That's what I did but I wrote a .bat file to do. So everytime it finished a folder nvdxt cleared it's memory.
VivoBook_ASUSLaptop X712JA_S712JA Intel(R) UHD Graphics 8gb ram. Intel(R) Core(TM) i5-1035G1 CPU @ 1.00GHz, 1190 Mhz, 4 Core(s), 8 Logical Processor(s) 8 GB ram. Running on Windows 11 and OpenSuse 15.4

Topic author
Fightspit
Posts: 510
Joined: 15.05.2005
With us: 19 years 6 months

Post #68by Fightspit » 15.10.2006, 14:08

fsgregs wrote:Guys:

Thanks for all the info. Lonehiker, thanks for the detailed instructions on using the nvidia dds converter. I will try to convert to dds as above. That said, ... how is anyone's system running the 64k png textures at all? Like I said, my system should be plenty fast enough and it clearly is not!

Fightspit, these textures are yours. Are you ... or anyone else using the PNG textures getting decent frame rates as you move around on the screen? If so, what rates are you getting and what is your secret?

:?

Frank


In fact, when I using only the BMNG (128K) base texture, there isn't any problems for me but I use a lot of memory ( 2GB like cartrite) and I have also a fast hard disk (raptor 74.5 GB 10000 RPM SATA !) that is why I get ~ 35, 40 fps.
So, a fast computer (not only a super graphic card :wink: ) is very recommanded :wink:
Motherboard: Intel D975XBX2
Processor: Intel Core2 E6700 @ 3Ghz
Ram: Corsair 2 x 1GB DDR2 PC6400
Video Card: Nvidia GeForce 8800 GTX 768MB GDDR3 384 bits PCI-Express 16x
HDD: Western Digital Raptor 150GB 10000 rpm
OS: Windows Vista Business 32 bits

Avatar
cartrite
Posts: 1978
Joined: 15.09.2005
With us: 19 years 2 months
Location: Pocono Mountains, Pennsylvania, USA Greate Grandfother from Irshava, Zakarpattia Oblast Ukraine

Post #69by cartrite » 15.10.2006, 15:19

Here are a couple of test shots I just took using the 1.4.1 Gnome version installed by the auto-package installer. A few things to note are that most if not all level 4 and 5 tiles that were only oceans, (that is in my case, tiles that had a pixel value of 0x030f24 ) were deleted.
My ram usage was about 1.5 GB and there as no normalmap. I as using a Maxtor 200 gb ide drive with ultra 133 dma.

To delete those files I inspected each with the thumbnails set to extra large on my linux system , selected those with no land visible and zapped em.

Image

Image

Another test shot with a 64k normalmap using CVS version KDE somehere around Sun May 7 08:56:31 2006.

Image

I don't think your computer should be locking up though. There may be something else going on. You may want to check your celestia.cfg file and make sure your setting for
# AntialiasingSamples 4
is not set too high.

Yet another EDIT: My machine locks up too when my ram gets filled up. That's probally the problem. A ram upgrade should do the trick. I don't think dds will help. That may use more ram. ??? 2K tiles will consume a lot of memory no matter what format you use.

cartrite
Last edited by cartrite on 15.10.2006, 17:52, edited 2 times in total.
VivoBook_ASUSLaptop X712JA_S712JA Intel(R) UHD Graphics 8gb ram. Intel(R) Core(TM) i5-1035G1 CPU @ 1.00GHz, 1190 Mhz, 4 Core(s), 8 Logical Processor(s) 8 GB ram. Running on Windows 11 and OpenSuse 15.4

ANDREA
Posts: 1543
Joined: 01.06.2002
With us: 22 years 5 months
Location: Rome, ITALY

Post #70by ANDREA » 15.10.2006, 15:32

LoneHiker wrote: ...run a file conversion program called nvDXT to batch convert PNG to Nvidia-friendly DDS format.
nvdxt -all -deep c:\temp -outsamedir -dxt1 -nmips 4 -sharpenMethod SharpenMedium -quality_normal
Normal maps can also be converted to DDS. . Lone

LoneHiker, thank you very much for your VERY detailed info, it works perfectly, I'm finishing the conversion of all Fightspit's 128 k VT Earth, and later on I will do the same for the normalmap. :D
I have just a doubt: why dxt1 and not dxt3 or something else? 8O
I have in my memory something about the advantages of the latter versus the former, am I wrong? :oops:
Thanks a lot.
Bye

Andrea :D
"Something is always better than nothing!"
HP Omen 15-DC1040nl- Intel® Core i7 9750H, 2.6/4.5 GHz- 1TB PCIe NVMe M.2 SSD+ 1TB SATA 6 SSD- 32GB SDRAM DDR4 2666 MHz- Nvidia GeForce GTX 1660 Ti 6 GB-WIN 11 PRO

Avatar
cartrite
Posts: 1978
Joined: 15.09.2005
With us: 19 years 2 months
Location: Pocono Mountains, Pennsylvania, USA Greate Grandfother from Irshava, Zakarpattia Oblast Ukraine

Post #71by cartrite » 15.10.2006, 15:45

ANDREA wrote:
LoneHiker wrote: ...run a file conversion program called nvDXT to batch convert PNG to Nvidia-friendly DDS format.
nvdxt -all -deep c:\temp -outsamedir -dxt1 -nmips 4 -sharpenMethod SharpenMedium -quality_normal
Normal maps can also be converted to DDS. . Lone
LoneHiker, thank you very much for your VERY detailed info, it works perfectly, I'm finishing the conversion of all Fightspit's 128 k VT Earth, and later on I will do the same for the normalmap. :D
I have just a doubt: why dxt1 and not dxt3 or something else? 8O
I have in my memory something about the advantages of the latter versus the former, am I wrong? :oops:
Thanks a lot.
Bye

Andrea :D
If you are planning to use the normalmaps for some time to come, ie after the release of 1.5.0, I would take a look at this before converting to a dds format. The normalmap will have to be remapped. Incase you didn't know that already.
http://www.celestiaproject.net/forum/viewtopic ... 6195#76195
cartrite
VivoBook_ASUSLaptop X712JA_S712JA Intel(R) UHD Graphics 8gb ram. Intel(R) Core(TM) i5-1035G1 CPU @ 1.00GHz, 1190 Mhz, 4 Core(s), 8 Logical Processor(s) 8 GB ram. Running on Windows 11 and OpenSuse 15.4

ANDREA
Posts: 1543
Joined: 01.06.2002
With us: 22 years 5 months
Location: Rome, ITALY

Post #72by ANDREA » 15.10.2006, 16:03

cartrite wrote:
ANDREA wrote:I have just a doubt: why dxt1 and not dxt3 or something else? 8O
Thanks a lot. Bye Andrea :D
If you are planning to use the normalmaps for some time to come, ie after the release of 1.5.0, I would take a look at this before converting to a dds format. The normalmap will have to be remapped. Incase you didn't know that already.
http://www.celestiaproject.net/forum/viewtopic ... 6195#76195
cartrite

Cartrite, I followed the thread, but waiting for the 1.5.0 final release and the uploading of Fridger's nmtools (and then I'll convert to the -dxt5 format), actually I need to use 1.4.1 with normalmaps. 8O
So I only need to know why the suggested format is dxt1 instead of dxt3.
Can you solve my doubt, please? :wink:
Thanks a lot.
Bye

Andrea :D
"Something is always better than nothing!"
HP Omen 15-DC1040nl- Intel® Core i7 9750H, 2.6/4.5 GHz- 1TB PCIe NVMe M.2 SSD+ 1TB SATA 6 SSD- 32GB SDRAM DDR4 2666 MHz- Nvidia GeForce GTX 1660 Ti 6 GB-WIN 11 PRO

Avatar
cartrite
Posts: 1978
Joined: 15.09.2005
With us: 19 years 2 months
Location: Pocono Mountains, Pennsylvania, USA Greate Grandfother from Irshava, Zakarpattia Oblast Ukraine

Post #73by cartrite » 15.10.2006, 16:21

Andrea, I think there is something about dxt1 not being able to do something but right now I can't remember what. That's why everybody says to use dxt3. I think. From what I remember there was a dxt1c format or something like that.
Texture Format Default DXT3:
-dxt1c : DXT1 (color only)
-dxt1a : DXT1 (one bit alpha)
-dxt3 : DXT3
-dxt5 : DXT5
That was taken from nvDXT.pdf which was part of the installation.
I think it has to do with the 1 bit alpha. If you have a specmap in the alpha channel, that might mess things up? Also , I may be wrong, but dxt1c can't have an alpha channel?

I don't know why he suggested dxt1. That's Lone Hiker's question to answer.

gazillionth Edit 8O Mabey, it's possible, he suggested it because, since Fightspits BMNG texture doesn't have a specmap in the alpha channel, dxt1c would be alright.

cartrite
VivoBook_ASUSLaptop X712JA_S712JA Intel(R) UHD Graphics 8gb ram. Intel(R) Core(TM) i5-1035G1 CPU @ 1.00GHz, 1190 Mhz, 4 Core(s), 8 Logical Processor(s) 8 GB ram. Running on Windows 11 and OpenSuse 15.4

LoneHiker
Posts: 53
Joined: 10.10.2005
With us: 19 years 1 month

Post #74by LoneHiker » 16.10.2006, 07:38

ANDREA wrote:I have just a doubt: why dxt1 and not dxt3 or something else?


I suggested DXT1 because the VTs have no alpha data (as Cartrite correctly surmised). But you are also right, there is a quality difference between DXT1 and DXT3/DXT5. It's particularly noticeable in flat ocean color areas at extreme zoom where it takes the form of ordered dithering. It's less noticeable, or not noticeable at all, in most land areas.

If it's an issue then by all means use DXT3 or DXT5. I think for images with no alpha DXT3 and DXT5 will produce the same result. File size will increase significantly, however

For alphas with smooth tonal transitions use DXT5. For alphas with large areas of solid black and solid white with only small areas of gray between the two use DXT3.

Lone

ANDREA
Posts: 1543
Joined: 01.06.2002
With us: 22 years 5 months
Location: Rome, ITALY

Post #75by ANDREA » 16.10.2006, 09:58

LoneHiker wrote:
ANDREA wrote:I have just a doubt: why dxt1 and not dxt3 or something else?
I suggested DXT1 because the VTs have no alpha data (as Cartrite correctly surmised). But you are also right, there is a quality difference between DXT1 and DXT3/DXT5.
If it's an issue then by all means use DXT3 or DXT5. I think for images with no alpha DXT3 and DXT5 will produce the same result. File size will increase significantly, however
For alphas with smooth tonal transitions use DXT5. For alphas with large areas of solid black and solid white with only small areas of gray between the two use DXT3.
Lone

Thank you LoneHicker, now it's very clear. :wink:
Bye

Andrea :D
"Something is always better than nothing!"
HP Omen 15-DC1040nl- Intel® Core i7 9750H, 2.6/4.5 GHz- 1TB PCIe NVMe M.2 SSD+ 1TB SATA 6 SSD- 32GB SDRAM DDR4 2666 MHz- Nvidia GeForce GTX 1660 Ti 6 GB-WIN 11 PRO

LotharS
Posts: 5
Joined: 07.09.2006
With us: 18 years 2 months

Post #76by LotharS » 19.10.2006, 13:50

LoneHiker wrote:
ANDREA wrote:I have just a doubt: why dxt1 and not dxt3 or something else?

I suggested DXT1 because the VTs have no alpha data (as Cartrite correctly surmised). But you are also right, there is a quality difference between DXT1 and DXT3/DXT5. It's particularly noticeable in flat ocean color areas at extreme zoom where it takes the form of ordered dithering. It's less noticeable, or not noticeable at all, in most land areas.

If it's an issue then by all means use DXT3 or DXT5. I think for images with no alpha DXT3 and DXT5 will produce the same result. File size will increase significantly, however

For alphas with smooth tonal transitions use DXT5. For alphas with large areas of solid black and solid white with only small areas of gray between the two use DXT3.

Lone

Maybe I'm a bit dense but I didn't notice any compression at all. I tried the conversion on the level1 files and with dxt1, the size was 2.6 mb and with dxt3, it was 5.3 mb for *every* converted file.
I used the command

C:\Programme\NVIDIA Corporation\DDS Utilities>nvdxt -all -deep C:\temp\BMNG\textures\hires\BMNG\level1 -outsamedir -overwrite -dxt1 -nmips 4 -quick

with the newest nvidia tools (version 8.12 from August 2006). Did I miss something? Or is there another magic switch to get compression to work?

Avatar
cartrite
Posts: 1978
Joined: 15.09.2005
With us: 19 years 2 months
Location: Pocono Mountains, Pennsylvania, USA Greate Grandfother from Irshava, Zakarpattia Oblast Ukraine

Post #77by cartrite » 19.10.2006, 14:29

Maybe I'm a bit dense but I didn't notice any compression at all. I tried the conversion on the level1 files and with dxt1, the size was 2.6 mb and with dxt3, it was 5.3 mb for *every* converted file.

Try using no compression and see what the size of the file is then. DDS files are larger then other formats but are easier on the graphics card. Also mipmaps are sometimes generated. A mipmap? A mipmap can be thought of as virtual texture inside a texture. Depending on the distance from the object your veiwing, the smallest mipmap would be used instead of the full texture. This increases performance. This also increases the file size though.

Assuming your converting from png to dds. The dds files will be larger then the png files if mipmaps are used or not. I just seen that your command included -nmips.
VivoBook_ASUSLaptop X712JA_S712JA Intel(R) UHD Graphics 8gb ram. Intel(R) Core(TM) i5-1035G1 CPU @ 1.00GHz, 1190 Mhz, 4 Core(s), 8 Logical Processor(s) 8 GB ram. Running on Windows 11 and OpenSuse 15.4

LoneHiker
Posts: 53
Joined: 10.10.2005
With us: 19 years 1 month

Post #78by LoneHiker » 19.10.2006, 17:10

LotharS wrote:Maybe I'm a bit dense but I didn't notice any compression at all. I tried the conversion on the level1 files and with dxt1, the size was 2.6 mb and with dxt3, it was 5.3 mb for *every* converted file.
I used the command

C:\Programme\NVIDIA Corporation\DDS Utilities>nvdxt -all -deep C:\temp\BMNG\textures\hires\BMNG\level1 -outsamedir -overwrite -dxt1 -nmips 4 -quick

with the newest nvidia tools (version 8.12 from August 2006). Did I miss something? Or is there another magic switch to get compression to work?


I'm not sure I understand your complaint (for lack of a better word) :wink:. Are you trying to get a smaller DXT3 file size?

Lone

LotharS
Posts: 5
Joined: 07.09.2006
With us: 18 years 2 months

Post #79by LotharS » 20.10.2006, 08:01

LoneHiker wrote:Are you trying to get a smaller DXT3 file size?

Lone

Of course my aim is to minimize disk usage.
Let me expand a bit on my problem of understanding. I assume that the switch -quick/-quality_normal/-quality_highest is used to turn on compression (correct me if I'm wrong). Then I would expect that with different source file sizes, also the target file sizes would differ. But this is not the case (see list below). All dds file sizes are the same. So either I'm doing something wrong or "compression" means something else than I expect :?

2.785.408 tx_0_0.dds
3.146.108 tx_0_0.png
2.785.408 tx_0_1.dds
568.770 tx_0_1.png
2.785.408 tx_1_0.dds
2.781.312 tx_1_0.png
2.785.408 tx_1_1.dds
2.512.357 tx_1_1.png
2.785.408 tx_2_0.dds
5.166.365 tx_2_0.png
2.785.408 tx_2_1.dds
1.858.949 tx_2_1.png
2.785.408 tx_3_0.dds
3.618.339 tx_3_0.png
2.785.408 tx_3_1.dds
2.322.031 tx_3_1.png

Avatar
cartrite
Posts: 1978
Joined: 15.09.2005
With us: 19 years 2 months
Location: Pocono Mountains, Pennsylvania, USA Greate Grandfother from Irshava, Zakarpattia Oblast Ukraine

Post #80by cartrite » 20.10.2006, 08:10

to compress dds files with nvdxt the format options -dxt1c, dxt3 or dxt5 is what is compressing them. dxt5 has the best compression i think. -u888 is no compression.
dds will have larger file sizes than png but png files are rendered slower. If your trying to save diskspace the format to use would be jpg.
2.785.408 tx_0_0.dds
3.146.108 tx_0_0.png
2.785.408 tx_0_1.dds
568.770 tx_0_1.png
2.785.408 tx_1_0.dds
2.781.312 tx_1_0.png
2.785.408 tx_1_1.dds
2.512.357 tx_1_1.png
2.785.408 tx_2_0.dds
5.166.365 tx_2_0.png
2.785.408 tx_2_1.dds
1.858.949 tx_2_1.png
2.785.408 tx_3_0.dds
3.618.339 tx_3_0.png
2.785.408 tx_3_1.dds
2.322.031 tx_3_1.png

These different file sizes have a lot to do with the information contained in the files. Png and dds compress differently. The file tx_0_1 is mostly ocean i think. That is easily compressed with png because a lot of the pixels are the same value. DDS seems to compress by file size and not the pixel values. I'm sure someone will correct me if I'm wrong.

Correction: It seems that dxt5 uses 4:1 compression and dxt1 uses 6:1 compression
The DXT1 format compresses RGB images by a factor of 6:1, for an average of 4 bits per texel
The DXT5 format compresses an RGBA image by a factor of 4:1, using a byte per texel on average

quotes taken from NVSDK Bump_Map_Compression.pdf
DXT1 would probally get the best compression. Not sure about dxt3
Last edited by cartrite on 20.10.2006, 09:04, edited 1 time in total.
VivoBook_ASUSLaptop X712JA_S712JA Intel(R) UHD Graphics 8gb ram. Intel(R) Core(TM) i5-1035G1 CPU @ 1.00GHz, 1190 Mhz, 4 Core(s), 8 Logical Processor(s) 8 GB ram. Running on Windows 11 and OpenSuse 15.4


Return to “Textures”