Author Topic: Transparency warning message in Shades and Tilecutter  (Read 3841 times)

0 Members and 1 Guest are viewing this topic.

Offline vilvoh

  • One of the good guys
  • Administrator (Inactive)
  • *
  • Posts: 4504
  • Total likes: 2
  • Helpful: 14
  • I'm the constructor, the architect
    • Escala real
Transparency warning message in Shades and Tilecutter
« on: May 15, 2009, 04:04:26 PM »
This is a request for Shades and Tilecutter developers (VS and Timothy) I've noticed that some newbies that use any of them, usually fail when loading images with transparency (alpha channel activated) and they don't realize where's the problem... People with some graphics development experience may figure out where the problem is but I think would be useful that when you load an image with transparency that won't be possible to be processed, both programs may open a pop-up window with a message pointing out that situation.

Something like "this image has alpha channel activated and It's not possible to load it. Please remove transparency from the image"

Escala Real...a blog about Simutrans in Spanish...

Offline Ashley

Re: Transparency warning message in Shades and Tilecutter
« Reply #1 on: May 15, 2009, 04:42:38 PM »
Better to build in an option to strip this information automatically. TileCutter should already export as a 24bit PNG, ignoring the alpha channel during composition. I'll have to check this. I'll make it check if the image has an alpha channel, and if so whether that channel contains any data. If it does, I can prompt the user to flatten the image to 24bit (with maybe a selectable colour). If not the alpha channel can be safely discarded.

I'll put it on the roadmap for 0.6.
Use Firefox? Interested in IPv6? Try SixOrNot the IPv6 status indicator for Firefox.
Why not try playing Simutrans online? See the Game Servers board for details.

Offline VS

  • Senior Plumber (Devotee)
  • Devotee
  • *
  • Posts: 4849
  • Total likes: 25
  • Helpful: 63
  • Vladimír Slávik
    • VS's Simutrans site
  • Languages: CS,EN
Re: Transparency warning message in Shades and Tilecutter
« Reply #2 on: May 15, 2009, 05:10:28 PM »
Good idea. Shades already discard alpha as a side-product of how the data is treated. Or that's what I think...

My projects... Tools for messing with Simutrans graphics. Graphic archive - templates and some other stuff for painters. Development logs for most recent information on what is going on. And of course pak128!