TGA Module error !

BlitzMax Forums/BlitzMax Programming/TGA Module error !

Hi

When i try to load this tga file saved by photoshop
i have an error ?

http://www.blitz3dfr.com/tempo/heightmap.rar

The same image saved in BMP work without problem.

' Kickass code !
Graphics 1024,768,0
IMg1:Timage=LoadImage("heightmap.tga") 


FYI, the BMax tga loader can't handle compressed TGA.
Try opening it in photoshop and resaving it, thats worked for me, assuming thats the issue. ;)

I have try with and without compressed TGA, and THIS image
is not RLE compressed ... :) There is REALLY a problem, i'm
not crazy :)

In a second test i have try to re save this image with
photoshop (without compression of course) and with this
program, and ... crash ... The same code with a BMP file
work perfectly.


' Kickass code !
Graphics 1024,768,0
IMg1:Timage=LoadImage("heightmap2.tga") 
DrawImage IMG1,0,0 ; Flip
WaitKey


works fine for me as long as the filename is correct. This is on windows with bmax 1.10

Fine here as well. Win Bmax 1.10.
You're not playing with 1.11 again are you?

Yes using 1.11, but it's strange ...

I had a problem with the original BlitzMax release and TGA files. You can step into the loader code, you know? See if you can figure out what's going on and then send the powers that be an exact replication case.

fixed

Thanks !