Sign in to follow this  

.TGA weirdness??

This topic is 4842 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Man, I have had lots of problems this past week. Im ready to pull my hair out when the following happens. I load several 64x64 textures from PSP with LoadTextureFromFile. Upon starting the program it crashes. After tons of error checking and head scratching, I figured out the problem. The images are somehow getting corrupted. This happens on about 50% of the .tga files I load up. If I recreate the image enough times, it will eventually work... crazy stuff?!?!? Any idea what is going on here? Is this a LoadTextureFromFile problem, or something else?

Share this post


Link to post
Share on other sites
Been there, went nuts, never have recovered.

Don't use the TGA format. Switch to PNG. It's not DirectX, it's PSP. It's actually the TGA file format in general. It seems that there are a variety of ways to save the file format, and no two programs do it the same way. So DirectX and other apps (like 3D Studio) follow Photoshop's TGA format, which does not match PSP's version.

Ack. Anyways... Like you, I have way too many problems of my own to be tortured with software glitches. Why can't these things just work? Damnit [disturbed]

The PNG format is very nice to work with in PSP. You don't have to save masks to an alpha channel. You just save the image and the mask is used accordingly.

Share this post


Link to post
Share on other sites
Quote:
Original post by Jiia
Been there, went nuts, never have recovered.

Don't use the TGA format. Switch to PNG. It's not DirectX, it's PSP. It's actually the TGA file format in general. It seems that there are a variety of ways to save the file format, and no two programs do it the same way. So DirectX and other apps (like 3D Studio) follow Photoshop's TGA format, which does not match PSP's version.

Ack. Anyways... Like you, I have way too many problems of my own to be tortured with software glitches. Why can't these things just work? Damnit [disturbed]

The PNG format is very nice to work with in PSP. You don't have to save masks to an alpha channel. You just save the image and the mask is used accordingly.



Thank you! Thank you!!! Ive been killing myself!!!! Ive been going total nuts the past 4 days!!

It is rough dealing with bugs not of my own creation ;)

Thanks for the info, you really made my week :)






Share this post


Link to post
Share on other sites

This topic is 4842 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this