Jump to content
  • Advertisement
Sign in to follow this  
thedodgeruk

tga file format and directx 10

This topic is 2497 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

directx10 does not support tga files even though directx9 did

is the a good converter that will convert the tga to a file format that directx10 can use and still keep the parts that are transparret.
i have tryed converting it and i have not had any succsess so far

Share this post


Link to post
Share on other sites
Advertisement
The DX SDK still comes with the texconv tool, which can convert to DDS on the command line. There's also the DirectX Texture Tool which has a GUI, if you prefer that. There's also ImageMagick, which can convert pretty much anything.

Share this post


Link to post
Share on other sites
I'd personally suggest ditching TGA, period, and moving to DDS, as it's a much better overall 'game' format. MJP mentions the official texture conversion tool, but there are also excellent libraries out there for texture cooking/compression that may also be worth looking into depending on the needs of your renderer. nvtt, or the nVidia Texture Tools, comes personally recommended.

Share this post


Link to post
Share on other sites
You can load TGAs but you need to write your own loader. That means loading and unpacking the raw binary data and calling CreateTexture2D and CreateShaderResourceView directly instead of relying on the D3DX helpers.

If that sounds like too much work at the moment then do like the other's said and use a different format.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!