Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 124 125 [126] 127 128 ... 329

Author Topic: Ironhand's Graphics Set (on Hiatus)  (Read 1245640 times)

Zoal

  • Bay Watcher
    • View Profile
Re: Ironhand's Graphics et (making critters!)
« Reply #1875 on: August 02, 2010, 08:13:29 am »

I need your help & expertise with a little something.

Say that you were making a tilesystem for DF, and it supported two layers:
- A background tile, and a foreground tile.

The foreground tile would be superimposed on top of the background tile, so that objects always display on top of the correct background. *But* you also want to be able to Tile-magic at the same time, because it's useful for a mushroom! The problem is that if you were using the alpha channel for Tile-magic, then you'd be missing the required transparency mask needed to let the Foreground-object properly composite on top of the background object.

How could this be solved, so that both Tile-magic and 2-layers are supported?
One quick idea would be to use "magenta is transparent". But that's not good, for the alpha-mask needs to be antialiased or it won't look good on top of the background. Another idea would be to have a separate "alpha file" which is grayscale, but the "tilesets need 2 files" thing isn't gonna fly.

I'm not asking about how to make this work in present-day-DF, so any idea is good.
How do other games do it?

-z
« Last Edit: August 02, 2010, 08:20:27 am by Zoal »
Logged

WormSlayer

  • Bay Watcher
    • View Profile
    • WormSlayer.com
Re: Ironhand's Graphics Set (making critters!)
« Reply #1876 on: August 02, 2010, 08:58:30 am »

If I was designing the graphics system from scratch, I would say forget about tile magic as we know it and just have 1 or 2 images with alpha - one for background, one for foreground. Maybe even a 3rd one  for "glow tile" type effects.

These would then of course be nicely composited over the actual world background tile, be it grass or rough stone floor.

Anyway, the way the current tiles work, if you draw something in bright green, then set the tile colour to bright red - the green bits disappear.
« Last Edit: August 02, 2010, 09:11:15 am by WormSlayer »
Logged

Zoal

  • Bay Watcher
    • View Profile
Re: Ironhand's Graphics Set (making critters!)
« Reply #1877 on: August 02, 2010, 09:31:29 am »

Using two images wouldn't disrupt your workflow as an artist? Exporting and editing would be more complex in photoshop -- is there some way to work it?
Logged

WormSlayer

  • Bay Watcher
    • View Profile
    • WormSlayer.com
Re: Ironhand's Graphics Set (making critters!)
« Reply #1878 on: August 02, 2010, 09:55:17 am »

I'm already kind of working like that. The trees for example; I'm rendering the leaves and trunk separately which makes putting just the trunks on the alpha channel a lot easier.

Rough example of what I mean about using colour to have a 3rd tile magic configuration:
« Last Edit: August 02, 2010, 10:04:16 am by WormSlayer »
Logged

soul4hdwn

  • Bay Watcher
  • make due with what you have
    • View Profile
Re: Ironhand's Graphics Set (making critters!)
« Reply #1879 on: August 02, 2010, 10:25:10 am »

how about for the bow (before the text can be separated) have the string be the part that "disappears" on off usage.  or was that was was already going on? just sorta putting idea/fix in mind is all
Logged

WormSlayer

  • Bay Watcher
    • View Profile
    • WormSlayer.com
Re: Ironhand's Graphics Set (making critters!)
« Reply #1880 on: August 02, 2010, 11:05:42 am »

Unfortunately ( is one of those tiles where we dont get to choose the colours :(

I've been thinking about tile magic some more; its actually possible to get at least 6 different images from a single tile...

A + B are on the RGB channels, C is on the alpha channel.

White / White
Red / White
White / Black
Green / White
Green / Black
Red / Black
Black / White

Background colour could be anything, I just used white here. In fact, you could do the same Red/Green thing with whatever is drawn using the background colour, and there is also the blue channel - so potentially a lot more than 6 combinations?

Update: Or of course you could just put a totally different image on each red, green, blue and alpha channel:
« Last Edit: August 02, 2010, 02:47:50 pm by WormSlayer »
Logged

Zoal

  • Bay Watcher
    • View Profile
Re: Ironhand's Graphics Set (making critters!)
« Reply #1881 on: August 02, 2010, 03:57:18 pm »

hax
« Last Edit: August 02, 2010, 03:59:46 pm by Zoal »
Logged

Ironhand

  • Bay Watcher
  • the llama is laughing
    • View Profile
Re: Ironhand's Graphics Set (making critters!)
« Reply #1882 on: August 02, 2010, 06:01:23 pm »

This whole alpha vs. color vs. RGB layer thing is extraordinarily cool.
It's also a new concept to me. I've been doing it all the hard way every time.

This is at least fifteen completely distinct kinds of awesome.

This is going to expand me tile-creating potential significantly.

Looking forward to playing with it.
Logged

keda

  • Bay Watcher
    • View Profile
Re: Ironhand's Graphics Set (making critters!)
« Reply #1883 on: August 02, 2010, 06:02:35 pm »

woot... taking tile magic to a whole new lever there wormslayer :D

keda

  • Bay Watcher
    • View Profile
Re: Ironhand's Graphics Set (making critters!)
« Reply #1884 on: August 02, 2010, 06:13:07 pm »

apparently you can make 15 of them :)
1 red black A
2 green black B
3 blue black C
4 cyan black BC
5 yellow black AB
6 magenta black AC
7 white black ABC
8 red white AD
9 green white BD
10 blue white CD
11 cyan white BCD
12 yellow white ABD
13 magenta white ACD
14 white white ABCD
15 black white D

Maldevious

  • Bay Watcher
    • View Profile
Re: Ironhand's Graphics Set (making critters!)
« Reply #1885 on: August 02, 2010, 06:18:50 pm »

If I understand this correctly... wow. That opens up a lot of options, there.
Logged

WormSlayer

  • Bay Watcher
    • View Profile
    • WormSlayer.com
Re: Ironhand's Graphics Set (making critters!)
« Reply #1886 on: August 02, 2010, 07:12:38 pm »

Yeah it's a bit weird but the more I think about it, the more possibilities occur :D

It may even have some use in situations where DF doesnt allow us to specify colour but always uses specific colours for certain things / states of things....

You are correct Keda - I just couldnt be bothered to make any more charts :D
Logged

Bandages

  • Bay Watcher
    • View Profile
Re: Ironhand's Graphics Set (making critters!)
« Reply #1887 on: August 02, 2010, 08:38:07 pm »

With the alpha stuff, could you make the crates in the underground look like rocks? :p
Logged

Ironhand

  • Bay Watcher
  • the llama is laughing
    • View Profile
Re: Ironhand's Graphics Set (making critters!)
« Reply #1888 on: August 02, 2010, 09:11:05 pm »

I'm not sure.

I feel like none of this stuff is gonna work quite right
unless I go back to using pure red, green and blue in the color scheme...

Or am I misunderstanding how this works?
Logged

WormSlayer

  • Bay Watcher
    • View Profile
    • WormSlayer.com
Re: Ironhand's Graphics Set (making critters!)
« Reply #1889 on: August 02, 2010, 09:38:22 pm »

Pretty sure we cant do anything about the underground crates :( - Go and vote for Full Graphics support? ;)

I dont think you are misunderstanding - It's cool but yeah things have to be pure tones to completely mask out so it really only has very specific uses for us unless we redo the whole tileset to use single colour tiles.

May be good for vermin? Quick example - Spider-Frog-Fish:

Not suggesting that actual combination, but that sort of thing - maybe just more optional parts to turn on and off :)
« Last Edit: August 02, 2010, 09:46:53 pm by WormSlayer »
Logged
Pages: 1 ... 124 125 [126] 127 128 ... 329