Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (808)
Games in Android Showcase (239)
games submitted by our members
Games in WIP (872)
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 4973 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 Devvie

Medals: 2

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


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 :]


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 »

"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..."

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  

Riven (847 views)
2019-09-04 15:33:17

hadezbladez (5795 views)
2018-11-16 13:46:03

hadezbladez (2603 views)
2018-11-16 13:41:33

hadezbladez (6211 views)
2018-11-16 13:35:35

hadezbladez (1499 views)
2018-11-16 13:32:03

EgonOlsen (4734 views)
2018-06-10 19:43:48

EgonOlsen (5793 views)
2018-06-10 19:43:44

EgonOlsen (3276 views)
2018-06-10 19:43:20

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

nelsongames (5501 views)
2018-04-24 18:15:36
A NON-ideal modular configuration for Eclipse with JavaFX
by philfrei
2019-12-19 19:35:12

Java Gaming Resources
by philfrei
2019-05-14 16:15:13

Deployment and Packaging
by philfrei
2019-05-08 15:15:36

Deployment and Packaging
by philfrei
2019-05-08 15:13:34

Deployment and Packaging
by philfrei
2019-02-17 20:25:53

Deployment and Packaging
by mudlee
2018-08-22 18:09:50

Java Gaming Resources
by gouessej
2018-08-22 08:19:41

Deployment and Packaging
by gouessej
2018-08-22 08:04:08 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!