Alphablending using DirectX 7



Click here for larger image

Environment: VC6, WIN32 (developed and tested on W2K SP2), DirectX 7

Due to private interest I wrote a small tool (MFC Dialog Application) to visualize alphablending and all combinations of possible attributes. The tool shows rotating earth with athmosphere. Earth and Athmosphere are spheres with textures. Based on the RenderStates D3DRENDERSTATE_SRCBLEND and D3DRENDERSTATE_SRCBLEND earth can be seen through the clouds. Material attributes can be changed also. Just try it out and have fun!

The zip containing the sources in big because of the graphics!

Downloads

Download demo project - 774 Kb


Comments

  • Please help me on Directshow +MFC

    Posted by nvnoi76 on 12/01/2004 09:37pm

    Hi, I write a program to play Video files using Directshow and MFC ( Visual C++ 6.0 , DirectX 9.0 ) I compile in DEBUG mode, It runs well and correctly. But when I compile in RELEASE mode. It reports error : "Unhandle exception in Playwnd.exe (MFC42.dll)0xC0000005: Access Violation" Is there any problem on MFC42.dll ? Please help me to correct it. Thank you very much. Noi - nvnoi76@yahoo.com

    Reply
  • Alphablending using DirectX 7

    Posted by Legacy on 05/13/2002 12:00am

    Originally posted by: iti_1827

    missed file "d3dx.h"

    Reply
  • Cant find file "d3dtextr.h"

    Posted by Legacy on 04/22/2002 12:00am

    Originally posted by: Ramesh

    This file "3dtextr.h" is missing. I'm using DirectX8 SDK.

    Reply
  • Can't complete under DirectX8??

    Posted by Legacy on 03/07/2002 12:00am

    Originally posted by: wjy88

    Can't complete under DirectX8??

    Reply
  • From where can i get Direct X 7 Installation

    Posted by Legacy on 02/21/2002 12:00am

    Originally posted by: Subodh

    From where can i get Direct X 7 Installation

    Reply
  • Purpose

    Posted by Legacy on 02/04/2002 12:00am

    Originally posted by: Sikander Rafiq

    What is the purpose of this control and what it can do

    Reply
  • You can find all the files here but it still not working ....

    Posted by Legacy on 02/02/2002 12:00am

    Originally posted by: Eyal

    You can find all the files here but it still not working ....

    http://therabbithole.redback.inficad.com/tricks/directx7/DXSDK/include/

    it looks like many include files are missing
    Some help will be nice...??

    Reply
  • Cool!

    Posted by Legacy on 02/01/2002 12:00am

    Originally posted by: Lynn_Xie

    Beautiful!
    But I cannot understand your comments in your source code.
    Will you please offer an English(Chinese better) version?

    Reply
  • Another missing header file 'd3dmath.h'

    Posted by Legacy on 01/31/2002 12:00am

    Originally posted by: Saul

    fatal error C1083: Cannot open include file: 'd3dmath.h': No such file or directory

    I have MSDN and latest SDK fully installed on my machine, and I didnt find this file anywhere!

    Reply
  • fatal error C1083: Cannot open include file: 'd3dutil.h':

    Posted by Legacy on 01/31/2002 12:00am

    Originally posted by: liuty

    fatal error C1083: Cannot open include file: 'd3dutil.h':

    Reply
Leave a Comment
  • Your email address will not be published. All fields are required.

Top White Papers and Webcasts

  • Java developers know that testing code changes can be a huge pain, and waiting for an application to redeploy after a code fix can take an eternity. Wouldn't it be great if you could see your code changes immediately, fine-tune, debug, explore and deploy code without waiting for ages? In this white paper, find out how that's possible with a Java plugin that drastically changes the way you develop, test and run Java applications. Discover the advantages of this plugin, and the changes you can expect to see …

  • Protecting business operations means shifting the priorities around availability from disaster recovery to business continuity. Enterprises are shifting their focus from recovery from a disaster to preventing the disaster in the first place. With this change in mindset, disaster recovery is no longer the first line of defense; the organizations with a smarter business continuity practice are less impacted when disasters strike. This SmartSelect will provide insight to help guide your enterprise toward better …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds