Transparency Problems

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Sep 2007
Posts: 4
Reputation: greglobal is an unknown quantity at this point 
Solved Threads: 0
greglobal greglobal is offline Offline
Newbie Poster

Transparency Problems

 
0
  #1
Oct 20th, 2007
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.
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 5,266
Reputation: iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold 
Solved Threads: 377
Featured Poster
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Posting Expert

Re: Transparency Problems

 
0
  #2
Oct 20th, 2007
*Voted best profile in the world*
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 4
Reputation: greglobal is an unknown quantity at this point 
Solved Threads: 0
greglobal greglobal is offline Offline
Newbie Poster

Re: Transparency Problems

 
0
  #3
Oct 20th, 2007
Originally Posted by iamthwee View Post
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 ?
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 222
Reputation: JRM will become famous soon enough JRM will become famous soon enough 
Solved Threads: 14
JRM's Avatar
JRM JRM is offline Offline
Posting Whiz in Training

Re: Transparency Problems

 
0
  #4
Oct 20th, 2007
Originally Posted by greglobal View Post
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!
"I like beating by head against the wall because it feels so good when I stop"
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C++ Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC