Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (406)
games submitted by our members
Games in WIP (293)
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 324 times)
0 Members and 1 Guest are viewing this topic.
Offline DazKins

Junior Member


Medals: 1
Projects: 1



« Posted 2013-02-18 19: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

JGO Knight


Medals: 32



« Reply #1 - Posted 2013-02-18 20:18:18 »

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

Offline DazKins

Junior Member


Medals: 1
Projects: 1



« Reply #2 - Posted 2013-02-18 20: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!
Try the Free Demo of Droid Assault
Offline Danny02

JGO Knight


Medals: 36



« Reply #3 - Posted 2013-02-18 20: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

JGO Knight


Medals: 32



« Reply #4 - Posted 2013-02-18 21: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-21 00: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  
 
 

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Get high quality music tracks for your game!

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

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (76 views)
2013-05-17 21:29:12

alaslipknot (87 views)
2013-05-16 21:24:48

gouessej (117 views)
2013-05-16 00:53:38

gouessej (112 views)
2013-05-16 00:17:58

theagentd (123 views)
2013-05-15 15:01:13

theagentd (112 views)
2013-05-15 15:00:54

StreetDoggy (156 views)
2013-05-14 15:56:26

kutucuk (178 views)
2013-05-12 17:10:36

kutucuk (177 views)
2013-05-12 15:36:09

UnluckyDevil (185 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
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!
Page created in 0.093 seconds with 21 queries.