Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (499)
Games in Android Showcase (118)
games submitted by our members
Games in WIP (567)
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 861 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

DazKins

Check out my Dev Blog: http://dazkins.tumblr.com
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?


DazKins

Check out my Dev Blog: http://dazkins.tumblr.com
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 Member


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  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

Pippogeek (39 views)
2014-09-24 16:13:29

Pippogeek (30 views)
2014-09-24 16:12:22

Pippogeek (19 views)
2014-09-24 16:12:06

Grunnt (45 views)
2014-09-23 14:38:19

radar3301 (27 views)
2014-09-21 23:33:17

BurntPizza (63 views)
2014-09-21 02:42:18

BurntPizza (33 views)
2014-09-21 01:30:30

moogie (41 views)
2014-09-21 00:26:15

UprightPath (50 views)
2014-09-20 20:14:06

BurntPizza (54 views)
2014-09-19 03:14:18
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org 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‑gaming.org
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!