Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (756)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (842)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Tile Map Connected Textures  (Read 2372 times)
0 Members and 1 Guest are viewing this topic.
Offline DazKins
« Posted 2013-02-18 18:50:02 »

What's the best way way to achieve smooth texture transitions between tiles in a tile mapped game, and not have the hard edge tiles normally produce.

I saw notch in minicraft had used his coloring technique to join the tiles together, but im using tiles that are statically coloured in the image editor


Check out my Dev Blog:
Offline jonjava
« Reply #1 - Posted 2013-02-18 19:18:18 »

Hmm... I am not sure what you mean.

Offline DazKins
« Reply #2 - Posted 2013-02-18 19:23:38 »

How can i get these smooth edges on tiles:

Instead of these hard edges?


Check out my Dev Blog:
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Danny02
« Reply #3 - Posted 2013-02-18 19:50:35 »

there are of course many different ways to approach this.

I will post the number of extra art in brackets at the end of each option in the case of 4 different tile types.
  • hand craft edges between different tiles for every possible combination and direction(24)
  • create a natural order for tile types (rock > grass > water) and hand craft edges for every tile typ and direction.
    Then when to tiles of a diferent type meet, choos the edge tile from the type which is higher in the hirachie(16)
  • use blending with an alpha map which is modulated linearly(4)
  • just blend linearly between two tiles on their edge(0)

In your case were you have little tiles with pixel art, I would choose option two. The extra work only scales linearly and pixelart with blending doesn't look that good.
Offline jonjava
« Reply #4 - Posted 2013-02-18 20:13:26 »

Basically what has been done there is he's drawn all the different tiles by hand and then chosen to draw the appropriate tile based where that tile is and what the tiles surroundings are.

Offline doos

Senior Devvie

Medals: 2
Projects: 2

Here be random

« Reply #5 - Posted 2013-02-20 23:14:00 »

People also get round this with lots of layers of tilemaps.. So a bottom layer for terrain, a middle layer for features (terrain dividers), and a top layer for items (trees and the like). The different layers can have different grid sizes if you want, so terrain can blend more easily.

Investigate how to use transparency (or the opposite opacity) in your graphics programs and use image types which handle transparency, like png. If you do it right you can have your trees on any terrain background (rock/desert/grass).
Pages: [1]
  ignore  |  Print  

DesertCoockie (52 views)
2018-05-13 18:23:11

nelsongames (83 views)
2018-04-24 18:15:36

nelsongames (74 views)
2018-04-24 18:14:32

ivj94 (759 views)
2018-03-24 14:47:39

ivj94 (87 views)
2018-03-24 14:46:31

ivj94 (643 views)
2018-03-24 14:43:53

Solater (102 views)
2018-03-17 05:04:08

nelsongames (184 views)
2018-03-05 17:56:34

Gornova (426 views)
2018-03-02 22:15:33

buddyBro (1086 views)
2018-02-28 16:59:18
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!