Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Transparent Sprites
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
nixsin




PostPosted: Thu May 21, 2009 11:13 am   Post subject: Transparent Sprites

What is it you are trying to achieve?
Produce transparent sprites in Turing


What is the problem you are having?

My group is making a Turn based Strategy Game and we are having trouble putting a sprite with a transparent background on a window that is a .jpg image. The sprite is placed on the background but the background of that image is not transparent and the background of the sprite is shown instead of the map.


Describe what you have tried to solve this problem
We tried using the different modes for Pic.Draw but i think i am missing something


Please specify what version of Turing you are using
4.1.1 and 4.0.5 (yes, weird)
Sponsor
Sponsor
Sponsor
sponsor
zero-impact




PostPosted: Thu May 21, 2009 2:46 pm   Post subject: RE:Transparent Sprites

First off you shouldn't be using jpg's for that. The reason being is that jpeg compression can cause colours to "bleed" into eachother. I'm pretty sure turing supports raw .bmp's the best.
BigBear




PostPosted: Thu May 21, 2009 8:21 pm   Post subject: RE:Transparent Sprites

To blend images into a background use picMerge instead of picCopy
DtY




PostPosted: Thu May 21, 2009 8:43 pm   Post subject: Re: RE:Transparent Sprites

zero-impact @ Thu May 21, 2009 2:46 pm wrote:
First off you shouldn't be using jpg's for that. The reason being is that jpeg compression can cause colours to "bleed" into eachother. I'm pretty sure turing supports raw .bmp's the best.

Also that jpegs don't have an alpha (transparency) channel
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 4 Posts ]
Jump to:   


Style:  
Search: