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: December 11, 2014 @ 1:00 p.m. ET / 10:00 a.m. PT Market pressures to move more quickly and develop innovative applications are forcing organizations to rethink how they develop and release applications. The combination of public clouds and physical back-end infrastructures are a means to get applications out faster. However, these hybrid solutions complicate DevOps adoption, with application delivery pipelines that span across complex hybrid cloud and non-cloud environments. Check out this …

  • Hundreds of millions of users have adopted public cloud storage solutions to satisfy their Private Online File Sharing and Collaboration (OFS) needs. With new headlines on cloud privacy issues appearing almost daily, the need to explore private alternatives has never been stronger. Join ESG Senior Analyst Terri McClure and Connected Data in this on-demand webinar to take a look at the business drivers behind OFS adoption, how organizations can benefit from on-premise deployments, and emerging private OFS …

Most Popular Programming Stories

More for Developers

RSS Feeds