Friday Facts #199 - The story of tile transitions

Regular reports on Factorio development.
ihumangetmeoutofhere
Burner Inserter
Burner Inserter
Posts: 7
Joined: Thu Sep 10, 2015 9:15 pm
Contact:

Re: Friday Facts #199 - The story of tile transitions

Post by ihumangetmeoutofhere »

Devs,
Often in past updates you have adapted things from mods into game, and for this particular issue, the mod Water Fix may have the answers. I've been using it for a while and IMHO it looks much better than the suggested fix for water in the FFF. It also allows concrete to be placed right up to the shore's edge. I admit, I don't actually know how a lot of this works, but possibly you may be able to integrate that mod in the update? I know its been suggested by other people also.

User avatar
bobingabout
Smart Inserter
Smart Inserter
Posts: 7351
Joined: Fri May 09, 2014 1:01 pm
Contact:

Re: Friday Facts #199 - The story of tile transitions

Post by bobingabout »

Instead of having the file transition "Inside the grass tile" or "Inside the water tile", why not draw something right on the boarder overlapping the two? That way, both the water tile and the grass tile both look "About 32 pixels wide".
Creator of Bob's mods. Expanding your gameplay since version 0.9.8.
I also have a Patreon.

drozh
Burner Inserter
Burner Inserter
Posts: 7
Joined: Wed Jun 28, 2017 11:46 am
Contact:

Re: Friday Facts #199 - The story of tile transitions

Post by drozh »

bobingabout wrote:Instead of having the file transition "Inside the grass tile" or "Inside the water tile", why not draw something right on the boarder overlapping the two? That way, both the water tile and the grass tile both look "About 32 pixels wide".
Agree!
This way, both would be possible,
- the old tile :
Image
- and the new tile
Image

Engimage
Smart Inserter
Smart Inserter
Posts: 1067
Joined: Wed Jun 29, 2016 10:02 am
Contact:

Re: Friday Facts #199 - The story of tile transitions

Post by Engimage »

bobingabout wrote:Instead of having the file transition "Inside the grass tile" or "Inside the water tile", why not draw something right on the boarder overlapping the two? That way, both the water tile and the grass tile both look "About 32 pixels wide".
I do understand that adding another layer is too complex and will require complete rework.
So I will throw an idea a bit similar to this one
Make transition from grass to water through sand beach. In this case you can change both tiles - grass and water - to have small transition from sand.
This gives you several opportunities:
1. Sand beach line will be in desired position between ground and water tiles visually separating them in connection line
2. You can have a single set of such tiles for water and can have unique tiles for different ground biomes transitioning to water - all will be compatible
3. You are not really limited by a thin border to draw such transition - you can add surf etc on water tiles and whatever you wish on ground

Julissa Doe
Burner Inserter
Burner Inserter
Posts: 12
Joined: Thu Jul 06, 2017 9:48 pm
Contact:

Re: Friday Facts #199 - The story of tile transitions

Post by Julissa Doe »

PacifyerGrey wrote:
bobingabout wrote:Instead of having the file transition "Inside the grass tile" or "Inside the water tile", why not draw something right on the boarder overlapping the two? That way, both the water tile and the grass tile both look "About 32 pixels wide".
I do understand that adding another layer is too complex and will require complete rework.
So I will throw an idea a bit similar to this one
Make transition from grass to water through sand beach. In this case you can change both tiles - grass and water - to have small transition from sand.
This gives you several opportunities:
1. Sand beach line will be in desired position between ground and water tiles visually separating them in connection line
2. You can have a single set of such tiles for water and can have unique tiles for different ground biomes transitioning to water - all will be compatible
3. You are not really limited by a thin border to draw such transition - you can add surf etc on water tiles and whatever you wish on ground
This.

The problem now is deciding where the transition will begin, on the grass tile or the water tile. Having a buffer zone between the two solves a lot of texture issues.

But then, what would be in the old tile:
Image
will show up as two-tile thick grass. One tile thick grass would look better now.

RobertTerwilliger
Fast Inserter
Fast Inserter
Posts: 196
Joined: Wed Nov 18, 2015 10:12 am
Contact:

Re: Friday Facts #199 - The story of tile transitions

Post by RobertTerwilliger »

I reckon someone have suggested this before, but wouldn't it be simplier to draw L-W transition on edge of tiles? Then it'll need just few transition sprites for each edge (top, right, bottom, left) (few - just for variability) and 8 corners (4 inner and 4 outer) (I believe 1 corner sprite is enough for one corner, no need to make multiple, as they're quite sparce).
Just make sure water pixels are tiny bit further than the land edge (to avoid structures partialy floatong on water), and last pixel goes no further than half a tile in both durections, to make 1-wide land AND water look correct.
Holding formation further and further,
Millions of lamb stay in embrace of Judas.
They just need some bread and faith in themselves,
BUT
THE TSAR IS GIVEN TO THEM IN EXCHANGE!
Original: 5diez - "ะ˜ั‰ัƒ, ั‚ะตั€ัั" (rus, 2013)

davidjs
Burner Inserter
Burner Inserter
Posts: 5
Joined: Sat Jul 22, 2017 10:46 am
Contact:

Re: Friday Facts #199 - The story of tile transitions

Post by davidjs »

Can only agree on what others have said.

The actual problem that you have the transition in the middle of the tile instead of on the edges. It would be a whole lot simpler if every tile was either water or land.

In both the current version of the game, and in the solution you propose there are tiles that contain both water and terrain, the user has no direct way of knowing wether they can actually build on the mixed tile.

What you need to do is to make sure a tile that is water has a sprite that contains a majority of water.

So this:
Image
Becomes
Image

Likewise, a tile that is land should contain majorly land.

User avatar
featherwinglove
Filter Inserter
Filter Inserter
Posts: 579
Joined: Sat Jun 25, 2016 6:14 am
Contact:

Re: Friday Facts #199 - The story of tile transitions

Post by featherwinglove »

I agree. Especially since we Factorio players and devs are living on the edge in so many other senses :mrgreen:

uber5001
Burner Inserter
Burner Inserter
Posts: 15
Joined: Thu Sep 15, 2016 8:30 pm
Contact:

Re: Friday Facts #199 - The story of tile transitions

Post by uber5001 »

Can't marching squares be used for the tiling issue? It wouldn't even require large asset changes. All it takes is offsetting the tiles halfway off the grid.

I've got a demo on github pages that shows how it would work. Here's a gif of it in action:
Image

It doesn't solve the "'tile correction logic' that we hate so much". That would likely need to be solved with sprite layering.

IronCartographer
Filter Inserter
Filter Inserter
Posts: 454
Joined: Tue Jun 28, 2016 2:07 pm
Contact:

Re: Friday Facts #199 - The story of tile transitions

Post by IronCartographer »

uber5001 wrote:Can't marching squares be used for the tiling issue? It wouldn't even require large asset changes. All it takes is offsetting the tiles halfway off the grid.

I've got a demo on github pages that shows how it would work. Here's a gif of it in action:
Image

It doesn't solve the "'tile correction logic' that we hate so much". That would likely need to be solved with sprite layering.
-> viewtopic.php?f=6&t=51194
FFF-200 wrote:But people in the office convinced me with arguments like "FFF is the only good thing we have", so we probably have to continue for a little longer.
It's not the only good thing you have...but it's certainly one of the best! This kind of feedback is a huge part of what has made Factorio not only a cooperative game, but a cooperative experience for the developers along with the community!

hcf
Manual Inserter
Manual Inserter
Posts: 1
Joined: Sun Sep 10, 2017 5:01 am
Contact:

Re: Friday Facts #199 - The story of tile transitions

Post by hcf »

Hi,

I was thinking about the problem where the transition is drawn on the either tile it looks wierd. How about as a solution you don't allow Landfill to be used as one tile but minimun 2 tiles.

pleegwat
Filter Inserter
Filter Inserter
Posts: 252
Joined: Fri May 19, 2017 7:31 pm
Contact:

Re: Friday Facts #199 - The story of tile transitions

Post by pleegwat »

That solves the landfill cheat, but that's just as easily solved by deducting multiple landfill if the tile correction logic needs to add additional land tiles.

You still need tile correction logic during normal world generation.

Post Reply

Return to โ€œNewsโ€