Jump to content
  • Advertisement
Sign in to follow this  
Skosiris

D3D9: Loading & displaying an image w/ variable transparency

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

I'd like to display an image with variable transparency. I tried using D3DXCreateTextureFromFileEx to load a PNG image and the D3DXSprite interface to display it. As you can see, everything's fine on this computer (GeForce 2): http://skonet.ivgn.cc/ss1.jpg However, it won't appear correctly on my old computer (Voodoo 3): http://skonet.ivgn.cc/ss2.gif Could someone take a look at my project's source code and help me out? http://skonet.ivgn.cc/source.zip Thanks!

Share this post


Link to post
Share on other sites
Advertisement
Just from looking at the images, it looks like the Voodoo3 isn't filtering the texture, perhaps because it can't. Could you upload the texture file itself?

Share this post


Link to post
Share on other sites
Well, don't mind my saying so, but Voodoo3 video cards are garbage. There is a pile of stuff that they don't support. I wouldn't worry about supporting them, unless you want your program to run on older/slower machines.

Share this post


Link to post
Share on other sites
Look into the caps of the device, in the SDK its device->GetCaps or just plain GetDeviceCaps, it returns a big structure filled with everything the video vard supports.

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!