tinyrenderer icon indicating copy to clipboard operation
tinyrenderer copied to clipboard

Cannot open output tga file

Open b1060t opened this issue 5 years ago • 3 comments

What I've done is just clone and compile using WSL since I dont have a linux environment at present, however the output tga file seems to be corrupted like this:

output

Is there anything to do with WSL like compatibility?

b1060t avatar Dec 23 '19 06:12 b1060t

Hi my platform is windows , and i compile this project with cmake by Visual Studio 2019.I meet the same question with you ,that I can't open the output.tag file ,but I find that the compiler auto comlete the "image.write_tga_file("output_normal100X100.tga");" with true.And without any warn or error.So I fixed it by add true at the end.Is my sutiation same with yours?Hope can help you with this problem!

thrt520asd avatar Dec 31 '19 08:12 thrt520asd

Still not working. I'll try vm later

b1060t avatar Jan 03 '20 10:01 b1060t

I also had an issue where Pillow (a Python library) would fail with an exception when trying to load the image.

What helped was setting the 3rd argument of image.write_tga_file to false, which disables RLE compression.

mcejp avatar Oct 15 '20 11:10 mcejp