?
Solved

D3DXCreateTextureFromFile will not load certain formats

Posted on 2003-02-21
3
Medium Priority
?
359 Views
Last Modified: 2013-12-08
I am working on a DirectX 7 based 2D engine using Direct3D for transparency effects.

I need to load textures onto surfaces and have been using the D3DXCreateTextureFromFile function to do so.  I have created an A8R8G8B8 128x128 texture using the DirectX Texture Tool.  However, when I specify D3DX_SF_A8R8G8B8 as the surface format in the D3DXCreateTextureFromFile(), I get an E_INVALIDARG error returned.  Up to this point, I have been using DXT3 textures for my textures because they are the only textures that work when I specify a D3DX_SF_A8R8G8B8 format, but I need better quality than the DXT3 can supply at this point.

Any help here?
0
Comment
Question by:RedFez
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 4

Accepted Solution

by:
joachimc earned 200 total points
ID: 8006959
If you skip using D3DXCreateTextureFromFileEx() It will determine the format by itself.

But otherwise I guess a 32 bit format like D3DFMT_A8R8G8B8 would work. You should probably use .tga files for maximum quality.
0
 

Expert Comment

by:CleanupPing
ID: 9464672
RedFez:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Artificial Intelligence comes in many forms, and for game developers, Path-Finding is an important ability for making an NPC (Non-Playable Character) maneuver through terrain.  A* is a particularly easy way to approach it.  I’ll start with the algor…
Recently, in one of the tech-blogs I usually read, I saw a post about the best-selling video games through history. The first place in the list is for the classic, extremely addictive Tetris. Well, a long time ago, in a galaxy far far away, I was…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question