LibGDX tilemap smoothing

Hi again, it’s been a while.

Soo, I have been messing around with a Simplex Noise, and made kinda like a map.It’s built with tiles in 2D array as the pic shows, so it really isn’t that good looking.

edit. hmmmh. Forumn doesn’t support ImgUr?
anyway. here is the pic:

Imgur

So I was just wondering if someone could give me some pointers on how to kinda like smooth tiles out, blending or so. I have read about texture splattering and have tried to implement some with Alpha mask texture. With one tile it’s fine (because they are top on each other), but I just cant get it, how Can I smooth transfer like grass -> stone [grass][stone] if they are next to each other . Should I some how check the neighbours and create a mask that blends with neighbours texture? Or is there some other way? No, I dont want to draw tiles for different transforms or so.

Thanks in advance :slight_smile:

Tumppu

This forum supports images, yes. You need to use the BBCode where you use the image tags like

And as for blending, if your map is static, you can put them all into a texture and do bilinear filtering on it. Probably not the best option though

Oh, had wrong link first, not the .png one. Now, the pic works. ::slight_smile:

So bilinear filtering, as it is described

“Bilinear filtering is a texture filtering method used to smooth textures when displayed larger or smaller than they actually are. Most of the time, when drawing a textured shape on the screen, the texture is not displayed exactly as it is stored, without any distortion.”

I really dont see, how could I use this with two tiles transition. But oh well, have to do some research more. Thanks for the input tho :).

Tumppu