 |
|
jimmyh
|
|
Sunny Old England
Sep 2001 time: 05:23
|
|
Hi,
Can any one tell me where in the freeciv code does it smooth out the map so that the coast is all correctly laid out and that the different terrain blends smoothly into each other.
Cheers.
James.
|
|
|  |
 |
|
MacHatter
|
|
All the map creation code is in mapgen.c
I suspect the function is the appropriately named smooth_map() which begins near line 1350.
|
|
|  |
 |
|
Thue
|
|
Copenhagen, Denmark
Jan 1970 time: 06:23
|
|
For the isometric map:
Blending of normal tiles from client/gui-*/mapview.c
/ **************************************************
************************
Blend the tile with neighboring tiles.
Only used for isometric view.
**************************************************
************************/
static void dither_tile
Coasts are drawn by fitting the rigth sprites together. These are chosen in fill_tile_sprite_array_iso in client/tilespec.c and drawn in pixmap_put_tile_iso in mapview.c
For the non-isometric map:
this is done by fitting tiles together appropriately. See fill_tile_sprite_array in client/tilespec.c
|
|
|  |
 |
|  |
All times are GMT. The time now is 05:23. Apolyton Time is 00:23. |
top of page
|
|
|
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is ON
vB code is ON
Smilies are ON
[IMG] code is ON
|
|
|
|
|
|