Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (497)
Games in Android Showcase (114)
games submitted by our members
Games in WIP (563)
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  
  Connecting tiles to make a smooth transition  (Read 1877 times)
0 Members and 1 Guest are viewing this topic.
Offline Regenuluz
« Posted 2012-03-27 21:50:41 »

So I've got my map working, however I can't quite figure out how to connect tiles, so that they make a smooth transition from one type to another.

Like from grass -> dirt -> sand -> beach -> water, stuff like that. Any suggestions on how to do it smoothly? Smiley Should I just make a tile for each type of transition, and use that on tiles that's connecting to other tiles of a different type?
Offline coltonoscopy

Junior Member


Medals: 2



« Reply #1 - Posted 2012-03-27 23:35:18 »

Regenuluz,

The way I'm doing it in the engine I've created is to basically have transitional tiles for all of the tiles that need it.... from dirt to stone, for example. It really depends on the game, but as long as you're not using too much memory or processing with your engine, then having different tiles being placed depending on their transitional necessity really shouldn't be an issue. Try it with one tile set and see how that works out for you :]

Colton

Straight flippin.
Offline sproingie

JGO Kernel


Medals: 202



« Reply #2 - Posted 2012-03-27 23:38:41 »

The traditional technique for making tiles blend together smoothly is called "texture splatting".  I don't have a lot of insights into how to do it, but that should at least give you a very searchable term (I believe JGO even has a few posts on the topic)
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline theagentd
« Reply #3 - Posted 2012-03-27 23:41:30 »

http://www.gamedev.net/page/resources/_/technical/game-programming/tilemap-based-game-techniques-handling-terrai-r934
http://www.codeproject.com/Articles/106884/Implementing-Auto-tiling-Functionality-in-a-Tile-M

"Hey, dude! There's this really cool site! It let's you just write in some text and it'll magically find things related to it! It's called Google..."

Myomyomyo.
Offline Regenuluz
« Reply #4 - Posted 2012-03-28 07:48:00 »

@coltonoscopy, that's probably how I'll end up doing it! Smiley Thanks!

@sproingie, I think that'll be a little too advanced/overkill for this, but it's something I'll keep in the back of my mind for the future! Smiley

@theagentd, Eh? Google? What's that!? Shocked - I tried google, but didn't come up with such beautiful links as you did! I'll give them a read and then I should probably start making a map editor soon, or else I fear I'll have trouble actually testing it out. Tongue

And lastly, thanks for the help so far guys! Here, have some appriciation! Smiley
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.

BurntPizza (21 views)
2014-09-19 03:14:18

Dwinin (35 views)
2014-09-12 09:08:26

Norakomi (62 views)
2014-09-10 13:57:51

TehJavaDev (87 views)
2014-09-10 06:39:09

Tekkerue (42 views)
2014-09-09 02:24:56

mitcheeb (65 views)
2014-09-08 06:06:29

BurntPizza (47 views)
2014-09-07 01:13:42

Longarmx (35 views)
2014-09-07 01:12:14

Longarmx (40 views)
2014-09-07 01:11:22

Longarmx (36 views)
2014-09-07 01:10:19
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!