Please login or register.

Login with username, password and session length
Advanced search  

News:

This forum provides RSS feed. To query recent posts use this url. More...


Author Topic: can't make transparency for sprites  (Read 3782 times)

0 Members and 1 Guest are viewing this topic.

artsyguy

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
    • View Profile
can't make transparency for sprites
« on: June 23, 2005, 07:39:43 AM »

I'm an artist trying to set up a demo to attract some attention to my game.
I spent 3 months animating the hell out of sprites. But here's the thing, I can't get rid of the background. I tried making it solid white but it only recieved part as transparent leaving a aura of white around the character. I tried it with several colors but it just seems to be acting bizarre. Somtimes not doing anything at all.
This is driving me nuts, so I would be happy if someone could explain it.
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: can't make transparency for sprites
« Reply #1 on: June 23, 2005, 07:55:06 AM »

The transparent area needs to be solid; use *exactly* the same color everywhere. You can use the "fill" tool with slightly increased tolerance to fill the transparent parts of the image. Also, using white probably isn't the best idea - the default transparent color is pink, RGB(255, 0, 255), because it's unlikely the actual graphics will use this color anywhere.

But if your sprites have antialiased edges the preferred way is using an alpha channel. The alpha channel will help you to control the transparency of every single pixel of your image.
What method of creating sprites are you using?
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

artsyguy

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
    • View Profile
Re: can't make transparency for sprites
« Reply #2 on: June 23, 2005, 08:06:35 AM »

I'm using photoshop and I tried it in white, blue, and the default 255,0,255 pink and it was solid using the paint bucket in photoshop. But I just now figured out the color changed in certain areas. It's a photoshop problem I guess. Thanks for your help
Logged

Jerrot

  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 690
    • View Profile
Re: can't make transparency for sprites
« Reply #3 on: June 23, 2005, 08:44:20 AM »

I'm using photoshop and I tried it in white, blue, and the default 255,0,255 pink and it was solid using the paint bucket in photoshop. But I just now figured out the color changed in certain areas. It's a photoshop problem I guess.

It changed? Umm... are you maybe using JPGs?
Logged
Mooh!

odnorf

  • w00t?
  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 7
  • Offline Offline
  • Gender: Male
  • Posts: 1455
  • Lamp dog!
    • View Profile
Re: can't make transparency for sprites
« Reply #4 on: June 23, 2005, 03:36:14 PM »

As far as I know there is not a bug in photoshop that slightly change colors. If there was such thing I'd be in serious trouble with my work ;)
Anyway, the only two reasons I can think now is that you either used jpeg (as Jerrot already said) or a custom reduced pallete (did you use the save for web feature of photoshop?).
Logged
fl*p

artsyguy

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
    • View Profile
Re: can't make transparency for sprites
« Reply #5 on: June 24, 2005, 08:11:57 PM »

Yes I used jpg and no I didn't use save for web. I thought it took that file type
Logged

metamorphium

  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 12
  • Offline Offline
  • Gender: Male
  • Posts: 1511
  • Vampires!
    • View Profile
    • CBE  software s.r.o.
Re: can't make transparency for sprites
« Reply #6 on: June 24, 2005, 10:01:37 PM »

Yes I used jpg and no I didn't use save for web. I thought it took that file type

So bottom line is that you can't use jpg since it's cosine transformation of original image wich means that it will never get
you expected results. I would recommend using png since it's the best option for you. :-)
Logged
J.U.L.I.A. Enhanced Edition, Vampires!, J.U.L.I.A., J.U.L.I.A. Untold, Ghost in the Sheet

artsyguy

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
    • View Profile
Re: can't make transparency for sprites
« Reply #7 on: June 24, 2005, 10:26:26 PM »

Thanks I'll try that. :D
Logged
 

Page created in 0.03 seconds with 18 queries.