Hey guys. Like the title says I'm wondering if there are any downsides to using PNG's in this regard. To me it looks like there are a couple of advantages:
- PNG's are using more commonly in other fields like the web, photography, etc
- PNG's have built in windows preview support so you can see the thumbnail picture rather than just seeing the "TGA logo" or something similar in the Windows file explorer.
- PNG's seem to be built for handling transparency and alpha channels.
And the only downside that I've found just looking through forums is that it only supports up to 16 bits per channel, but I've never seen a texture in a game be 32 bits per channel. Also, with some engines it gets converted into DDS anyway.
So if anyone could let me know of any downsides that I don't know of, or anything else I should take into consideration I would really appreciate it.
Thanks!
Replies
Also whereas TGAs will import with a separate alpha channel to control transparency, PNGs will not. You can "extract" the alpha channel using Layer->Layer Mask->From Transparency from a PNG or use a plug-in like SuperPNG. This also allows you to use the alpha channel for transparency and avoid transparency compression on export.
Most engines will compress textures on import, so usually it doesn't make a difference which file format you use as long as they are lossless (PNG/TGA, etc.).
If you want explorer thumbnails for TGAs in the explorer though, SageThumbs could be of help.
The first two points are irrelevant.
On the third point : true, but the format specs dictate that Photoshop opens the channel as transparent pixels as opposed to a regular, readable alpha channel. This alone will cause you a great deal of trouble if you need to edit something after the fact. PNG also save extremely slowly at high pixel dimensions.
All that said, nothing prevents you from experimenting with your pipeline - you will probably quickly run into some issues first-hand, and that's the best way to make an informed decision after all
http://polycount.com/discussion/175048/targa-or-png-for-unity
This may be what you're seeing - there are also issues with substance output in some cases.
You can however make PNGs work perfectly fine in ue4
I Assume they'll fix the 16bit thing eventually because it's ridiculous.
This, bad handling of 16bits png. Normal map are fine because it has been fixed. I reported the issue too for regular PNG (aka BaseColor) but don't know if it has been fixed recently. Another problem with PNG in UE4 is that by default it will discard pixels where the alpha (transparency) is at 0 (black). This is very annoying but can be disabled by editing the source code of the engine. That require a custom build, see : http://www.froyok.fr/blog/2015-01-ue4-my-engine-modifications .
The native support of PNGs in Photoshop is really slow to save in this format, but that's more reasonable in our software (Substance Tools) : 2K textures should be fine, 4K/8K will start to take a bit of time.