Tracker: Feature Requests

5 Graphics - allow objects to overlay tile above - ID: 2864993
Last Update: Settings changed ( burschik )

Whenever I attempt to make a new forest, jungle etc, I encounter this
limitatation - while the graphics should be 2 and 1/2 Dimensional, all
tiles are just 2D. They are centered in the middle. That was not a real
problem in Civ two ot Free Civ, where tiles are small and objects like
trees are only few pixels tall, they are like a texture.

In Free Col, with 128x64 tiles this becomes an issue however, when we're
drawing trees of aprox half the heigh of the tile, the forest can use only
the bottom half of the tile, since there is no room for trees obove it's
center! There are visual tricks to make this problem less obtrusive, like
drawing smaller trees, and pretending that the tile has it's own,
perspective, but it all boils down to forests, settlements, etc being being
visibly flat. If we want to take advantage of isometric view that Fee Col
has, this would have to be fixed.


Misiulo ( misiulo ) - 2009-09-23 12:57

5

Closed

None

Nobody/Anonymous

freecol.org website

Added (Trunk)

Public


Comments ( 7 )

Date: 2009-12-01 02:57
Sender: nobody

YES, that's exactly what I wanted, now I can make forest look more 3D
easily and quickly :)


Date: 2009-11-06 07:54
Sender: burschikProject Admin

I have changed overlays and forests to be anchored at the lower edge of the
tile in trunk. Please check whether this is what you want.


Date: 2009-10-22 15:31
Sender: nobody

Ok it seems I was mistaken there. I only worked with centered ones and it
seemed the most logical way.
But the mountains and ships are drawn with an upward extension, except the
manowar which is centered.

It seem several devs had different ideas on how to make and place the
images, the folder hierarchy is pretty scrambled as well. Someone might
want to clean that up and make sure that all images center.


Date: 2009-10-21 11:47
Sender: misiulo

All images?

I agree, that it should be the same, but, well... it's not. While the
cities, which can have different sizes are centered, the forest, which is
strictly 64x128, expadnds itself downwards only, it cannot cross the upper
tip. How can I center it?




Date: 2009-10-16 23:24
Sender: duke2112

Rember that all images will be centered (that shouldn't be different for
forests)
very rough drawing:
http://yfrog.com/0btileexamplep
did you make your image like on the left? i made a city that way and it
worked. the right one would slip down.

By the way, you can use any size you want not just powers of two, as long
as the base of your motive is centered.


Date: 2009-09-23 15:53
Sender: misiulo

Let me demostrate how it works in reality:

http://img89.imageshack.us/i/errorog.jpg/

This is what happens when I'm using 128x128 picture; in this example It's
an overkill, but it ilustrates the problem. Because of the fact that
pictures are anchored to the top of the tile, if the forrest is any taller
than 64 pixels, it justs replaces itself down - some trees end up growing
out of water.

To have a realistic 3D impression the opposite would be in order. A tree
always grows from the ground, and if it's tsll enough, it may overlap whats
on the tile behind it.

Maybe a simple way to deal with it would be to attach the picture to the
bottom of the tile instead of the top?


Date: 2009-09-23 13:48
Sender: abartels

This should already be possible, by just enlarging the tile graphic being
used. If I recall correctly, tile graphics are simply drawn centered on the
pixel they belong.

So, if you increased image size from 128x64 to, say, 128x128, you should
have some space to play with. Keep in mind, though, that tiles are drawn
from top to bottom and left to right, so tiles drawn "later" will overlay
those drawn "earlier".


Attached File

No Files Currently Attached

Changes ( 4 )

Field Old Value Date By
close_date - 2009-12-01 06:42 burschik
allow_comments 1 2009-12-01 06:42 burschik
artifact_group_id None 2009-12-01 06:42 burschik
status_id Open 2009-12-01 06:42 burschik