Strange behaviour of tga images from TA

You have a problem with TA3D, it doesn't run or it crashes...
/
Vous avez un problème avec TA3D, il ne se lance pas ou plante...
Post Reply
User avatar
Balthazar
Moderator
Posts: 2055
Joined: Wed Nov 01, 2006 4:31 pm
Location: Russian Federation
Contact:

Strange behaviour of tga images from TA

Post by Balthazar » Tue Jun 09, 2009 8:19 am

I`ve noticed a strange behaviour of tga, extracted with ta3d from totala1.hpi

*.tga files can be opened on Windows by Gump or Paint, but cannot be opened in Photoshop, Paint.Net and so on (but they support tga images).

I wonder, why is it so. Maybe there are some errors in the ta3d code, that makes some of TGA file areadable in several picture-editing soft? May it become a problem in the future and we should fix it now?

I`ll extract tga using native TA utils and do some tests.

ADDED. Strange, all the soft i can find can only export textures as BMP.

xpoy
Posts: 669
Joined: Mon Sep 22, 2008 3:55 am

Re: Strange behaviour of tga images from TA

Post by xpoy » Tue Jun 09, 2009 11:03 am

I interetsing "save as" in gimp. Remeber zuzuf seggsion it.
TAG image couldn't load by Win32 Paint, it didn't suppent TAG format.
May this is why texture wrong some times?

User avatar
zuzuf
Administrateur - Site Admin
Posts: 3281
Joined: Mon Oct 30, 2006 8:49 pm
Location: Toulouse, France
Contact:

Re: Strange behaviour of tga images from TA

Post by zuzuf » Tue Jun 09, 2009 4:01 pm

TA3D uses SDL_image to read various image formats (TGA, BMP, PNG, ...) but unfortunately, SDL can only write BMP files, I tried to implement a TGA writer, but it only supports uncompressed images and is far from perfect :(.
=>;-D Penguin Powered

User avatar
Balthazar
Moderator
Posts: 2055
Joined: Wed Nov 01, 2006 4:31 pm
Location: Russian Federation
Contact:

Re: Strange behaviour of tga images from TA

Post by Balthazar » Tue Jun 09, 2009 6:17 pm

BMP is much better. Maybe then in latest revision files, extracted from gafs will have an extension of BMP? It`ll be much comfortable to work with BMP than with TGA, especially if they ARE BMPs :P

xpoy
Posts: 669
Joined: Mon Sep 22, 2008 3:55 am

Re: Strange behaviour of tga images from TA

Post by xpoy » Tue Jun 09, 2009 6:42 pm

I remeber that F12 create a TGA file not BMP.
And in this case, just change the .tga to .bmp then all perfect

User avatar
zuzuf
Administrateur - Site Admin
Posts: 3281
Joined: Mon Oct 30, 2006 8:49 pm
Location: Toulouse, France
Contact:

Re: Strange behaviour of tga images from TA

Post by zuzuf » Tue Jun 09, 2009 8:37 pm

in fact it was just saving BMPs with TGA extension, it was a mistake in the code. Now it saves TGAs as TGAs. As I said in an other thread, TGA support alpha channel but BMP doesn't, that's why we keep using TGA. But if you want you can build a GAF from BMP, PNG, TGA, ... everything that is supported by SDL :D
=>;-D Penguin Powered

User avatar
Balthazar
Moderator
Posts: 2055
Joined: Wed Nov 01, 2006 4:31 pm
Location: Russian Federation
Contact:

Re: Strange behaviour of tga images from TA

Post by Balthazar » Wed Jun 10, 2009 5:47 am

In case of alpha channel the question about BMP is no more up-to-date. TGA is what we need :P

xpoy
Posts: 669
Joined: Mon Sep 22, 2008 3:55 am

Re: Strange behaviour of tga images from TA

Post by xpoy » Thu Jun 11, 2009 6:29 am

Couldn't shot in main menu, F12 also should work as shot in main menu /:^]

User avatar
Balthazar
Moderator
Posts: 2055
Joined: Wed Nov 01, 2006 4:31 pm
Location: Russian Federation
Contact:

Re: Strange behaviour of tga images from TA

Post by Balthazar » Thu Jun 11, 2009 6:59 am

Use Ctrl+PrintScreen Keys - then use any graphic editor to paste from clipboard.

User avatar
zuzuf
Administrateur - Site Admin
Posts: 3281
Joined: Mon Oct 30, 2006 8:49 pm
Location: Toulouse, France
Contact:

Re: Strange behaviour of tga images from TA

Post by zuzuf » Thu Jun 11, 2009 4:12 pm

or show the game console and type "shoot" :), you can do that in full screen mode :D
=>;-D Penguin Powered

xpoy
Posts: 669
Joined: Mon Sep 22, 2008 3:55 am

Re: Strange behaviour of tga images from TA

Post by xpoy » Thu Jun 11, 2009 6:27 pm

I didn't know shoot! :mrgreen:
Send another nearly qucik key in here:
viewtopic.php?f=2&t=1059

Post Reply

Who is online

Users browsing this forum: No registered users and 26 guests