This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Exporting textures in 32bit images (like .DDS) instead of 24bit .PNG
#1
Exclamation 
Hi all, currently JPCSP exports textures in .PNG format images, although this export feature is phenomenal to have on it's own right, it is debilitated by use of .PNG texture export only, since it is not full fledged 32bit RGBA image format.

In game like Gran Turismo textures are 32bit images, since game uses Alfa-channel information from texture image to deal with the transparencies (car windows, headlights, to hide poly geometry) on the models.

When JPCSP exports those textures to PNG format, they loose that transparency information since PNG is not 32bit image format (although PNG images can contain information about transparency, that information is not there in RGBA 32bit standard with transparency part contained in Alfa channel).
On the other hand, Texmod that grabs textures from DirectX, exports its texture images in .DDS image format which is full fledged 32bit RGBA DXT5 image format.
Check it here: https://en.wikipedia.org/wiki/S3_Texture_Compression

So currently if you want to export textures with all the information, from ex. Gran Turismo, you have to export 3D geometry with JPCSP and than use PPSSPP in conjunction with Texmod to export proper textures with all image data (which in my case isn't possible since Texmod always crashes PPSSPP emulator on my puter, so this nice JPCSP export functionality that works is debilitated by use of improper image format).

Below I'm showing comparison data of the same texture image exported with both Texmod and JPCPS to make things clear:
(textures exported from Gran Turismo PSP, from Cadillac CIEN Concept '02 car)
[Image: Texmod_vs_JPCSP_exports_Comparison_a.png]
[Image: Texmod_vs_JPCSP_exports_Comparison_b.png]

Also I'm attaching both texture files, DDS & PNG, and picture from above in archive.

It would be nice if DDS image type texture export would be added in JPCSP in addition or instead of PNG.


Many thanks to the people behind JPCSP project, it is nice and surprising showcase of Java capabilities.

May God bless you (if you keep in His ways, of course)


Attached Files
.zip   Texmod 32bit RGBA vs JPCSP 24bit RGB exports.zip (Size: 116.22 KB / Downloads: 192)
Reply
#2
I've improved the texture export to produce PNG images including the alpha channel (32-bit instead of 24-bit). This seems to work for me. Could you give it a try?

DDS is a microsoft specific format that I would like to avoid.

Thank you for reporting!
Always include a complete log file at INFO level in your reports. Thanks! How to post a log
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)