Re: [Freeciv-Dev] Hex tileset
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Artur Biesiadowski wrote:
>
> Jules Bean wrote:
>
> >
> > The obvious drawing order is, for each hex, to draw the actual hex
> > first, and then draw all bits of adjacent hexes which overlap
> > (presumably transparent). Finally, if implement, draw the 'on top'
> > layer (mountains, etc.)
>
> Let's take squres for simplicty. On of them is
>
> xxx
> xx
>
> second
> yyy
> yy
>
> You have following layout
>
> .....
> .xxyy.
> .xxyy.
> .....
>
> Should you get
>
> a)
> .....
> .xxxy.
> .xxyy.
> .....
>
> or
>
> b)
> .....
> .xyyy.
> .xxyy.
> .....
>
> ?
>
> It depends on painting order. With left to right order you get b always.
> With repaint myself then the neighbours you will get random one,
> dependent on which part of screen needs refresh (possibly even mixed
> pixels for toolkits that do strict clipping and unfortunate repaint
> requests will come)
You get
c)
.....
.xyxy
.xxyy
.....
At least, that's what I was trying to describe.
So the drawing order is this:
Draw cell x:
xx..
xx..
Draw overlaps from all neighbour into x (using alpha)
xy..
xx..
Draw cell y
xyyy
xxyy
Draw all overlaps from all neighbours into y using alpha
xyxy
xxyy
Jules
--
/----------------+-------------------------------+---------------------\
| Jelibean aka | jules@xxxxxxxxxxxxxxx | 6 Evelyn Rd |
| Jules aka | | Richmond, Surrey |
| Julian Bean | jmlb2@xxxxxxxxxxxxxxxx | TW9 2TF *UK* |
+----------------+-------------------------------+---------------------+
| War doesn't demonstrate who's right... just who's left. |
| When privacy is outlawed... only the outlaws have privacy. |
\----------------------------------------------------------------------/
- Re: [Freeciv-Dev] Hex tileset, (continued)
- Re: [Freeciv-Dev] Hex tileset, Artur Biesiadowski, 1999/08/23
- Re: [Freeciv-Dev] Hex tileset, Peter Schaefer, 1999/08/23
- Re: [Freeciv-Dev] Hex tileset, Tatu Rissanen, 1999/08/24
- Re: [Freeciv-Dev] Hex tileset, Artur Biesiadowski, 1999/08/24
- Re: [Freeciv-Dev] Hex tileset, trident, 1999/08/25
- Re: [Freeciv-Dev] Hex tileset, Artur Biesiadowski, 1999/08/25
- Re: [Freeciv-Dev] Hex tileset, Jules Bean, 1999/08/25
- Re: [Freeciv-Dev] Hex tileset, Artur Biesiadowski, 1999/08/26
- Re: [Freeciv-Dev] Hex tileset, Jules Bean, 1999/08/26
- Re: [Freeciv-Dev] Hex tileset, Artur Biesiadowski, 1999/08/26
- Re: [Freeciv-Dev] Hex tileset,
Jules Bean <=
Re: [Freeciv-Dev] Hex tileset, Jules Bean, 1999/08/21
|
|