User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the C++ section within the Software Development category of DaniWeb, a massive community of 397,574 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,456 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C++ advertiser:
Views: 586 | Replies: 3
Reply
Join Date: Sep 2007
Posts: 4
Reputation: greglobal is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
greglobal greglobal is offline Offline
Newbie Poster

Question Transparency Problems

  #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.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Aug 2005
Posts: 4,697
Reputation: iamthwee is just really nice iamthwee is just really nice iamthwee is just really nice iamthwee is just really nice iamthwee is just really nice 
Rep Power: 17
Solved Threads: 307
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Industrious Poster

Re: Transparency Problems

  #2  
Oct 20th, 2007
Member of: F-ugly code club

Join today don't delay!
Reply With Quote  
Join Date: Sep 2007
Posts: 4
Reputation: greglobal is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
greglobal greglobal is offline Offline
Newbie Poster

Re: Transparency Problems

  #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  
Join Date: Oct 2006
Location: NY
Posts: 218
Reputation: JRM will become famous soon enough JRM will become famous soon enough 
Rep Power: 3
Solved Threads: 14
JRM's Avatar
JRM JRM is offline Offline
Posting Whiz in Training

Re: Transparency Problems

  #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  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb C++ Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the C++ Forum

All times are GMT -4. The time now is 4:41 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC