Wings 3D Development Forum
[fixed] Can't import TGA image format. - Printable Version

+- Wings 3D Development Forum (https://www.wings3d.com/forum)
+-- Forum: Wings 3D (https://www.wings3d.com/forum/forumdisplay.php?fid=1)
+--- Forum: Bug Reports (https://www.wings3d.com/forum/forumdisplay.php?fid=12)
+--- Thread: [fixed] Can't import TGA image format. (/showthread.php?tid=2290)

Pages: 1 2


[fixed] Can't import TGA image format. - tkbd - 12-12-2016

Attempting to import images in TGA format results in an error.
(TGA is one of the image format often used in 3DCG textures.)

Wings3D display a following message dialog (No crash log and no error log).
Quote:"Failed to load "(The tga image file's Path)": unknown POSIX error"

I tried it with and without alpha channel, but the same error occurred in both cases.

I checked at importing of other image formats on Mac.
Quote: tga NG
--------
bmp OK
jpg OK
gif OK
tif OK
png OK

How about other OS,can import these image formats?

Wings3D 2.1.4.1
OSX 10.11.6


RE: Can't import TGA image format. - micheus - 12-12-2016

What was the full path of this file?

And if it's in the root path, tell me if the drive is an external one (like a stick memory)


RE: Can't import TGA image format. - Fonte Boa - 12-12-2016

I can confirm the error.
Using 1.5.4, therefore, Wings can import TGAs without problems.


RE: Can't import TGA image format. - micheus - 12-12-2016

No problem here, except if the file is in the root dir (which was already observed before).
So, we need something else. Maybe share the tga file, although I still don't that it's the problem.

We have a similar error reported, but it not in the same circumstances: Windows 10 wont save/load from some drive root

So, it's important to answer in which situation that happens. In a internal hard driver or in an external one.
I could observe that happens accessing images at the root from my memory stick.


RE: Can't import TGA image format. - Fonte Boa - 12-12-2016

I've tested it using Windows 7.
Some tgas can be imported, another ones no.

For example, i can not import the following Asphalt3.tga.

https://drive.google.com/file/d/0B6YBA4KA9q5UNGlWOXFiUDVLRHc/view?usp=sharing

Can you import this image, Micheus?


RE: Can't import TGA image format. - micheus - 12-12-2016

Thanks Fonte.

This one is out of that criteria I was getting here. I cannot read it from an external or an internal drive.


RE: Can't import TGA image format. - Fonte Boa - 12-12-2016

<<I cannot read it from an external or an internal drive.>>

I didnt understand. Can you import this image to Wings?
(remembering 1.5.4 can)


RE: Can't import TGA image format. - micheus - 12-13-2016

I have noticed that having an image in the root directory the import process fail with that POSIX error. If I move that image to a subdirectory the import works fine. (that includes .tga files too)

In the case of your .tga file I can't import it in any way.
What I did was use GIMP to read it and re-export the file. If I set the RLE Compression the file cannot be imported. If I don't use the compression, then the .tga file can be imported.

Please try it and see if this one you can import: Asphalt3-noRLE.tga

tkbd, please do the same. Try the original file by Fonte Boa and then this one above.

If confirmed, it's a wxWidgets bug. I found it supposedly was fixed early this year: Error when loading RLE compressed TGA


RE: Can't import TGA image format. - tkbd - 12-13-2016

Micheus and Fonte Boa,Thanks for reply.

micheus Wrote:What was the full path of this file?
"Full path" means the tga image file's path. See below screenshot.
[Image: err_dialog_zpsmydibclv.png]


micheus Wrote:tkbd, please do the same. Try the original file by Fonte Boa and then this one above.
OK, I tried to import Asphalt3.tga, but same error message window open.
Micheus,I think your expectations are correct.

I use graphic editor and tried import with TGA images that RLE compressed and not compressed image.
Apparently it seems to fail to read tga file with RLE compression applied.


RE: Can't import TGA image format. - micheus - 12-13-2016

tkbd, can you please test it with this file update: wp9_dialogs.beam
It must be found in a place like this: C:\Program Files\wings3d_2.1.4.1\lib\wings-2.1.4.1\plugins\default

* That will not fix the RLE compressed file loading.