Product Chat / I wanted to know why fpscr is use dds file format and not another format like png?

Author
Message
Dany
14
Years of Service
User Offline
Joined: 14th Nov 2010
Location:
Posted: 25th Nov 2014 11:39
I wanted to know why fpscr is use dds file format and not another format like png?
the game "The Escape" weighs 540MB and the dds files weighs more than 400 MB.
If we convert them to another format such as png It will weigh about 100 MB.
Is this possible???
unfamillia
Forum Support
14
Years of Service
User Offline
Joined: 26th Jul 2010
Location: Preston, Lancashire
Posted: 25th Nov 2014 12:34
I have always wondered this myself. Unreal engine accepts .png and in comparison, the files size is tiny. Plus, png is a lossless format. I created some atlas textures at a resolution of 4096x4096 and each image was 64Mb. There are 4 images!

If anyone more experienced with this could answer, please chip in, I would really like to know as well.

Cheers

Jay.





The Next
TGC Web Engineer
16
Years of Service
User Offline
Joined: 3rd Dec 2007
Location: United Kingdom
Posted: 25th Nov 2014 12:58 Edited at: 25th Nov 2014 13:05
I think this is more a legacy thing that has never been changed, right from the beginning DBPro has supported DDS as it is the DirectX format used for textures since DirectX 7 and the texture loader is in the DirectX SDK. I think that with DirectX 11 and onwards you can have multiple textures inside one DDS file allowing some stuff that PNG can't do.



Did a bit of digging and found the following points:

- DDS is quicker to load in VRAM than PNG, due to no need to decode

- DDS is smaller when stored in VRAM

- The tradeoff is you have a large file size on disk to cut down the time to load in to VRAM

- DDS is designed for use in game engines, PNG isn't. Why not use the format actually designed for this purpose.



I don't see any reason why PNG can't be used now instead of DDS. In-fact maybe my memory is playing tricks on me... but I can remember PNG textures working in FPSC X9, maybe they do work in FPSCR as well.



EDIT: While I was editing this I saw Tattie has posted a similar answer, his also answers this similarly.

Windows 7 Pro, Intel i7 3.8 GHz (Passmark: 9021), 16GB DDR3, NVIDIA GTX 780 4GB Superclocked (Passmark: 8056)
PM
TattieBoJangle
10
Years of Service
User Offline
Joined: 7th Jan 2014
Location: United Kingdom
Posted: 25th Nov 2014 12:58 Edited at: 25th Nov 2014 13:03
PNG files look like they are smaller, they are only smaller on your harddrive. Once loaded onto the GPU they are between 4 and 6 times bigger than the same texture compressed using DXT1 or DXT5



Also dds are good, because they are used directly by the GPU, and are not decoded like PNG or JPEG





PC SPECS: Windows 8.1 Pro 64-bit, CPU: Intel I7 - 4GHz, GPU: Asus R9 6GB, MEM: 32GB DDR3, HDD: SSD
wizard of id
3D Media Maker
18
Years of Service
User Offline
Joined: 16th Jan 2006
Playing: CSGO
Posted: 25th Nov 2014 13:08
DDS is sent compressed to the GPU memory pending, which DTX format you use. Then there is other, benefits additional channel support, cube mapping, 3d voxel support, native mipmaps ect.Where as PNG lacks native support, PNG will also degrade GPU preformance.

DDS format used in the correct manner will allow for a 4096 x 4096 texture at about 22mb, DTX 5, without transparency. DDS was created with game development at it's core.

Win7 pro, Intel 2500K @3.7ghz 660GTX 8gig ram 16tb HDD
Jerry Tremble
GameGuru TGC Backer
12
Years of Service
User Offline
Joined: 5th Nov 2012
Location: Sonoran Desert
Posted: 25th Nov 2014 13:14 Edited at: 25th Nov 2014 13:14
Quote: "I don't see any reason why PNG can't be used now instead of DDS. In-fact maybe my memory is playing tricks on me... but I can remember PNG textures working in FPSC X9, maybe they do work in FPSCR as well."




They do work still in Reloaded, actually, I have some old assets that used .pngs and I never bothered to convert them to .dds. They don't have normal or specular maps though so I don't know if those would work.

MAME Cab PC: i7 4770@3.4Ghz (passmark 9945), 12GB RAM, Win 8.1/64, GeForce GTX645 (passmark 1898); Shiny new laptop: i7 4800MQ@2.7Ghz (passmark 8586), 16GB RAM, Win 8.1/64, GeForce GTX870M (passmark 3598); Old laptop: i5@2.3Ghz, 8GB RAM, Win 7/64, Intel 3000 graphics
PM
synchromesh
Forum Support
10
Years of Service
User Offline
Joined: 24th Jan 2014
Location:
Posted: 25th Nov 2014 14:42
I think it was Doom 3 that set the standard for normal mapping dds files.....
Its been like it ever since then that I remember..
PM
tomjscott
User Banned
Posted: 25th Nov 2014 15:27
Quote: "PNG files look like they are smaller, they are only smaller on your harddrive. Once loaded onto the GPU they are between 4 and 6 times bigger than the same texture compressed using DXT1 or DXT5"


Unless the engine stores them in DXT compressed format on the GPU, which is entirely up to the engine to do that. It really doesn't matter what format you load the image from, it's how the image is stored on the GPU in texture memory. I think the biggest deal is that DDS is not only already pre-compressed in the format that the GPU needs, but also has the mip-maps pre-calculated as well, which takes additional time if loading from other formats.

System Specs: OS - Windows 7 Home Premium 64-bit SP1, CPU - AMD Phenom II X4 945, 3.0Ghz, RAM - 8Gb DDR3, GFX Card - 2048MB NVIDIA GeForce GT 640, FPSC-R Version - Beta 1.0085
DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 25th Nov 2014 16:16
Just look up mipmap in wikipedia and you will see the main reasons they are useful.



SPECS: Q6600 CPU. Nvidia 660GTX. 8 Gig Memory. Win 7.
Wolf
Forum Support
17
Years of Service
User Offline
Joined: 8th Nov 2007
Location: Luxemburg
Posted: 25th Nov 2014 18:06 Edited at: 26th Nov 2014 22:54
.dds loads faster and can be compressed in acceptable on-disk file size!

It also supports transparency and layers. ... so its a decent format. The only downside is less support in traditional image-editing software.







-Wolf

"When I contradict myself, I am telling the truth"

"absurdity has become necessity"

79% Sale on my latest Scifi Modelpack. Get it here!

Login to post a reply

Server time is: 2024-11-22 18:55:13
Your offset time is: 2024-11-22 18:55:13