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

Username:   Password: 
 RegisterRegister   
 Removing only background colour
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Zampano




PostPosted: Wed Nov 14, 2007 10:51 am   Post subject: Removing only background colour

Sprites and pictures seem to be coming together finally for me in Turing. There's still one problem though. I tried using Pic.SetTransparentColour with Pic.Merge, and set to white, to remove the background behind my sprite. However, another part of him was also white (Zero's saber) and that also got removed. Is there any way I can select the background but leave the part of sprite I still want?
Sponsor
Sponsor
Sponsor
sponsor
Mazer




PostPosted: Wed Nov 14, 2007 11:03 am   Post subject: RE:Removing only background colour

No. The idea behind colour keying is to treat EVERY pixel of the given colour as transparent.

The solution is to set the "background" to a different colour (magenta is popular) that you won't be using in the sprite and set Pic.SetTransparentColour to that. You will, of course, need to set the background colour beforehand. I'd probably do that after you finish making the sprite because staring at a screen filled with magenta would burn my eyes.
Zampano




PostPosted: Wed Nov 14, 2007 1:25 pm   Post subject: Re: Removing only background colour

I see. It looks like I have lots of tedious work to do over on these sprites.
Thanks Mazer.
octopi




PostPosted: Wed Nov 14, 2007 1:39 pm   Post subject: Re: Removing only background colour

If you have photoshop you can make macro's of sorts to do the same action over and over on different files.....If you've got more than 20 files, perhaps it would be something to look into?
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: