VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Direct3D> 2D Part 3, Alpha blending

by Mark van Renswoude (6 Submissions)
Category: DirectX
Compatability: Visual Basic 3.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (7 Votes)

I'm back, with Part 3 of creating 2D graphics using Direct3D.


Part 3 is built on top of Part 1, still displaying the Mario character running around in circles, but contains some additions which I just found out:



  • Alpha blending! (you can change the alpha value, as shown in the demo)
  • Faster way of faking light! (this time, not using vertex color, but simply drawing a bitmap alpha-blended over the scene, more accurately simulating lighting)
  • Using DirectDraw in combination with Direct3D! (allowing for large surfaces to be drawn, like the background)


The 33 FPS in the screenshot are from my P133, however, if I turn off the background it instantly goes to 60 FPS (the maximum, since that's my monitor's refresh rate)...


Enjoy! And don't forget to leave comments (and vote!)

Rate Direct3D> 2D Part 3, Alpha blending

Download Direct3D> 2D Part 3, Alpha blending

Download Direct3D> 2D Part 3, Alpha blending (59 KB)

Direct3D> 2D Part 3, Alpha blending Comments

No comments have been posted about Direct3D> 2D Part 3, Alpha blending. Why not be the first to post a comment about Direct3D> 2D Part 3, Alpha blending.

Post your comment

Subject:
Message:
0/1000 characters