sharp textures

Posted By: 3run

sharp textures - 11/09/13 22:42

I just wanted to ask, how to disable blurring for level block textures.. To make the scene look oldschool.
Something like NOFLITER, but for level blocks (using it with level_ent, leads to crap shadows.. but textures are still blurred).


Greets
Posted By: Iglarion

Re: sharp textures - 11/10/13 10:33

Did you try set d3d_mipmapping to zero?
Posted By: 3run

Re: sharp textures - 11/10/13 10:45

Originally Posted By: Iglarion
Did you try set d3d_mipmapping to zero?
Sure man! I did, but there are no results.. Take a look here:

But as you can see, on the distance, textures are sharper than before, but this isn't what I'm looking for..
At close distance, it looks like they are still blurred.

Greets
Posted By: Quad

Re: sharp textures - 11/10/13 12:27

Mipmapping stops blurring of the parts marked with green:


For the parts you marked with red, either use higher resolution textures or use them in smaller scales.
Posted By: 3run

Re: sharp textures - 11/10/13 12:48

Quad@ so there is no way, to use let's say texture with 64x64 resolution, but without any blurring?
Posted By: alibaba

Re: sharp textures - 11/10/13 13:56

I think what 3run means is to have textures like in minecraft
Posted By: 3run

Re: sharp textures - 11/10/13 14:25

Ok.. as I see, my explanation wasn't clear enough.. Here are some screens:
Quote:
This is how it looks now:

This is how I want it to looks like:
But this is a sprite, and I could use NOFILTER to disable the blurring. What about level block textures?

Edit: yes, as alibaba said, I want my textures looks like in minecraft grin

Greets
Posted By: Superku

Re: sharp textures - 11/10/13 16:43

What you need is to use a material for the blocks that disables the filtering. It's possible to maintain the default block rendering using those fixed function effects and has been posted on this forum some time/ years ago (but I don't know about that stuff, try the forum search) or write a shader that disables all filtering modes in the texture sampler.
Posted By: miez

Re: sharp textures - 11/13/13 09:08

Here, try this:

Code:
MATERIAL* mat_old = {
	effect ="
	texture entSkin1;
	texture entSkin2;
	technique old_school
	{
		pass p0 {
			Texture[0] = <entSkin1>;   
			MinFilter[0] = NONE;
			MagFilter[0] = NONE;
			MipFilter[0] = NONE;
			Texture[1] = <entSkin2>;   
			MinFilter[1] = NONE;
			MagFilter[1] = NONE;
			MipFilter[1] = NONE;
			TexCoordIndex[0] = 0;
			ColorArg1[0] = Texture;
			ColorArg2[0] = Diffuse;
			ColorOp[0] = Modulate2x;			
		}
	}
	
	";	
}

//...
//camera.material = mat_old;



This should do it for levelblocks.
© 2024 lite-C Forums