954,505 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Transparency Problems

Does anyone have a solution/c++ code to make bmp images transparent on the fly without having to carry out 2 bitblt operations with the image and it's mask ? We want to develop a game in which there are many moving objects which have to be rendered transparent at new positions.

greglobal
Newbie Poster
4 posts since Sep 2007
Reputation Points: 10
Solved Threads: 0
 
iamthwee
Posting Expert
5,950 posts since Aug 2005
Reputation Points: 1,543
Solved Threads: 439
 
http://www.ucancode.net/faq/Draw_Transparent_bitmap.htm


This method also uses several bitbld methods, so the lag is very high when you try to draw say 5-6 transparent images. Totally, there are 12 bitbld calls which slows down th game considerably. Any other suggestion ?

greglobal
Newbie Poster
4 posts since Sep 2007
Reputation Points: 10
Solved Threads: 0
 
This method also uses several bitbld methods, so the lag is very high when you try to draw say 5-6 transparent images. Totally, there are 12 bitbld calls which slows down th game considerably. Any other suggestion ?

Do these images need to move while they are transparent?
I know NOTHING about game design, but I was thinking that perhaps a "faded image" could be called from a file if motion was not required. Then again, the machine would still have to integrate it into the scene somehow.

I'm GLAD I'm not a game designer...too many technical hurdles!
Looks like you might have to invent your own "fast" class methods.
Have fun!

JRM
Practically a Master Poster
621 posts since Nov 2006
Reputation Points: 130
Solved Threads: 75
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You