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

  • Live Event Date: May 6, 2014 @ 1:00 p.m. ET / 10:00 a.m. PT While you likely have very good reasons for remaining on WinXP after end of support -- an estimated 20-30% of worldwide devices still are -- the bottom line is your security risk is now significant. In the absence of security patches, attackers will certainly turn their attention to this new opportunity. Join Lumension Vice President Paul Zimski in this one-hour webcast to discuss risk and, more importantly, 5 pragmatic risk mitigation techniques …

  • A help desk is critical to the operations of an IT services business. As a centralized intake location for technical issues, it allows for a responsive and timely solution to get clients and their staff back to business as usual. In addition to handling immediate IT issues, a help desk performs several proactive tasks to ensure clients' IT systems remain operational and downtime is minimized. Thus, utilizing a help desk and following best practices can improve the productivity, efficiency and satisfaction of …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds