Sign in to follow this  
Lunatix

[GL, C#] Texture flags and setup like in Minecraft

Recommended Posts

Lunatix    144
Hi!


I'm building a Voxel Shooter Game and i stuck at the textures. I have a chunk and map system and now trying to texturize the voxels via tile-textureing. All tiles of the texture are 32x32 and the texture itself is 512x512.

[Picture 1]
[img]http://www.abload.de/img/minecraft_test_003asgidy.jpg[/img]

[Picture 2]
[img]http://www.abload.de/img/minecraft_test_003boyisc.jpg[/img]

[Picure 3]
[img]http://static.allegro.cc/image/cache/c/9/c9ca1a3751b402e348a6173d9ca222f5.png[/img]

So, as you see, the tiles look like they are blurred [Pic. 2] and there are seems [Pic. 1] between them. I thought the mipmapping was causing it, also i've ad one extra pixel to prevent bleeding [Pic. 3] - but nothing seems to work. For example, the minecraft tiles are 16x16 - and they are sharp as hell.

So, i would like to ask, if somebody knows a good texture setup for this... maybe i have to write my own "BuildMipMaps" function? With a "Pixel Resize" Downsampling Mode like in Paint Shop Pro?

Share this post


Link to post
Share on other sites
Waterlimon    4398
You should probably use some GL_NEAREST (or something like that) for the full resolution tile, and some interpolation for the rest if thats possible (though i dont know if you should use nearest for those too) when setting the setting up the texture. Edited by Waterlimon

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this