Jump to content

  • Log In with Google      Sign In   
  • Create Account

We need your feedback on a survey! Each completed response supports our community and gives you a chance to win a $25 Amazon gift card!


Elegantly tile transition blending


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
5 replies to this topic

#1 pitxardo   Members   -  Reputation: 126

Like
0Likes
Like

Posted 19 October 2012 - 02:15 PM

Hi everyone!

I'm working in a tile based game that uses OpenGL and QUADS to draw each tile.

In these two images you can see an example:

Posted Image

Posted Image

You can see that there is a ground and water tiles, each one with its own texture. Also there are different gradient colors depending of the depth or altiture of the tile. The red square is a provisional cursor.

The game background logic works with bidimensional array of tiles.

Here is a full capture without zoom:

Posted Image

You can see the game has a retro/ugly style that I want to change. At least, I want to beauty that squared-as-a-hell tiles with some transition between them.

There is some taken into account options:

1. I can try with a good tileset like this:

Posted Image
Source: http://forums.tigsou...hp?topic=9859.0

And change the tile's texture depending of the neighbor tiles. But... I want a very high variety of tiles and texture, so the combination of them could be in a ver high and complex tileset.


2. Multi-texturing the tiles:

I can mix texture in one tile, but I have no idea how to do it and have a nice result...

The ideal approach is to do something like this:

Posted Image

Of course, I must take in care the 4 corners.

But I only know to do something like this:

Posted Image

:-(


3. My last idea was embrance the retro style and leave the tiles as they are.



Any suggestion or idea for a good looking tile map?

I tried with some terrain tutorials, but they are never based on tiles or texture per tile that I want.

I think the idea is near to the multitexturing and blending, but I have not too much idea about multitexturing and different types of blending :-(

Edited by pitxardo, 19 October 2012 - 02:17 PM.


Sponsor:

#2 zacaj   Members   -  Reputation: 643

Like
0Likes
Like

Posted 19 October 2012 - 02:34 PM

Are you using shaders?

#3 pitxardo   Members   -  Reputation: 126

Like
0Likes
Like

Posted 19 October 2012 - 03:25 PM

Are you using shaders?


No, there is no shaders and not idea how to apply it.

My level with OpenGL is very basic :-(

#4 FLeBlanc   Crossbones+   -  Reputation: 3125

Like
0Likes
Like

Posted 19 October 2012 - 03:46 PM

You could always go with the technique outlined here: http://www.gamedev.net/page/resources/_/technical/game-programming/tilemap-based-game-techniques-handling-terrai-r934

Essentially, each type of terrain has a set of alpha-blended transitions intended to be drawn over neighboring terrain.

#5 zacaj   Members   -  Reputation: 643

Like
0Likes
Like

Posted 19 October 2012 - 03:50 PM

In order to achieve #2, the easiest way would be to draw the bottom layer, then draw the top layer with alpha blending, setting each corner specifically based on what kind of gradient you want

#6 pitxardo   Members   -  Reputation: 126

Like
0Likes
Like

Posted 20 October 2012 - 04:17 AM

You could always go with the technique outlined here: http://www.gamedev.n...ing-terrai-r934

Essentially, each type of terrain has a set of alpha-blended transitions intended to be drawn over neighboring terrain.

In order to achieve #2, the easiest way would be to draw the bottom layer, then draw the top layer with alpha blending, setting each corner specifically based on what kind of gradient you want


Thanks!

I think that I need to apply a mix of this two techniques :-)




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS