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

  • The explosion in mobile devices and applications has generated a great deal of interest in APIs. Today's businesses are under increased pressure to make it easy to build apps, supply tools to help developers work more quickly, and deploy operational analytics so they can track users, developers, application performance, and more. Apigee Edge provides comprehensive API delivery tools and both operational and business-level analytics in an integrated platform. It is available as on-premise software or through …

  • Not long ago, security was viewed as one of the biggest obstacles to widespread adoption of cloud-based deployments for enterprise software solutions. However, the combination of advancing technology and an increasing variety of threats that companies must guard against is rapidly turning the tide. Cloud vendors typically offer a much higher level of data center and virtual system security than most organizations can or will build out on their own. Read this white paper to learn the five ways that cloud …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds