public inbox for xconq7@sourceware.org
 help / color / mirror / Atom feed
From: Hans Ronne <hronne@comhem.se>
To: Eric McDonald <mcdonald@phy.cmich.edu>
Cc: xconq7@sources.redhat.com
Subject: Re: IMFApp Office
Date: Tue, 10 Aug 2004 20:44:00 -0000	[thread overview]
Message-ID: <l03130302bd3ecd44f8da@[212.181.162.155]> (raw)
In-Reply-To: <Pine.LNX.4.44.0408101432080.18981-100000@leon.phy.cmich.edu>

>>You will notice
>> that if a 44x48 image is used as a tile, it is trimmed to 32x32 size first.
>
>But why? If that's not the same size as the cell actually used
>with 32x32 views in Xconq, then what is the point?
>
>And I think you must mean "scaled" instead of "trimmed", because
>the bright "transparent" border colors outlining the hex were
>still showing. If cropping had taken place, then most, if not all, of
>that would have gone away. I will double-check to make sure that
>this is what I saw, but I am fairly certain.

No, the images are indeed cropped, not scaled. For example, you will notice
that the top and the bottom corners of the background hexes have been
trimmed off.

There are actually two completely different ways to draw terrain in Xconq:
as tiles or as individual images.

Tiled drawing always uses square images that are not necessarily lined up
with the hex grid. These square images are found either in special gif
files (sea.gif and advt32x32.gif) or in terrain.imf itself (everything
named "tile", e.g. (imf "plains" ((64 64 tile) ...

Non-tiled terrain drawing uses the 44x48 sized hexagons that you find in
files like advt44x48.gif. In this case, each individual cell is drawn
separately. The files usually contain a row of subimages that are used in a
semi-random way to provide some variety. If a non-tiled image is encoded
directly in an .imf file, it is called a "terrain" image instead of a
"tile" image.

Now, if IMFApp does not find a special "tile" image (which it will never do
in the case of a unit) it will make one from the available image and use it
as a tile. That is why the background unit images are trimmed to 32x32
size. They were converted to "tiles" before being used to draw the
background.

I would add that the whole tile drawing machinery is semi-obsolete, a
remnant from the time when Xconq did not have true images. The best way to
draw terrain is certainly the latter, on any platform that supports it
(meaning everything but cconq and xtconq). Tiled drawing is now mainly used
a small magnifications, usually in the world map, where there are no
hexagon images available (and where cells are square-shaped anyway).

One could of course make IMFApp draw backgrounds by using individual images
instead of tiles, but this would require a lot of work, so I did not assign
it a high priority.

Hans


  reply	other threads:[~2004-08-10 19:50 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-04  1:31 Improved IMFApp Hans Ronne
2004-08-04  1:59 ` Eric McDonald
2004-08-04 17:57   ` Hans Ronne
2004-08-04 18:46     ` Eric McDonald
2004-08-05  2:27       ` Hans Ronne
2004-08-05  3:18         ` Eric McDonald
2004-08-05 16:17       ` Jim Kingdon
2004-08-05 17:12         ` IMFApp Office (was Re: Improved IMFApp) Eric McDonald
2004-08-06 17:52           ` IMFApp Office Hans Ronne
2004-08-08  0:34             ` Eric McDonald
2004-08-08  1:02               ` Hans Ronne
2004-08-08  1:34                 ` Eric McDonald
2004-08-08 22:52                   ` Hans Ronne
2004-08-10 10:22                     ` Eric McDonald
2004-08-10 13:25                       ` Hans Ronne
2004-08-10 15:21                         ` Eric McDonald
2004-08-10 19:02                           ` Hans Ronne
2004-08-10 19:50                             ` Eric McDonald
2004-08-10 20:44                               ` Hans Ronne [this message]
2004-08-11  2:28                                 ` Eric McDonald
2004-08-11  2:30                                 ` Eric McDonald
2004-08-11  8:52                                   ` Eric McDonald
2004-08-11 15:55                                   ` Hans Ronne
2004-08-11 17:00                                     ` Eric McDonald
2004-08-12  1:56                                       ` Hans Ronne
2004-08-04  9:50 ` Improved IMFApp Eric McDonald

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='l03130302bd3ecd44f8da@[212.181.162.155]' \
    --to=hronne@comhem.se \
    --cc=mcdonald@phy.cmich.edu \
    --cc=xconq7@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).