WorldAlignedTexture node is blurring texture

I’m attempting to use the WorldAlignedTexture node with a texture using nearest neighbor filtering, but the result is blurred. Help would be appreciated.

1 Like

What is the resolution of the texture? If it is really low it sometimes gets blurred.

Yeah, It’s intentionally a low res texture (128x128) which is why I’m using nearest neighbor filtering. The texture is only blurred when used with the worldalignedtexture node.

Oh I don’t know much about textures but it may be worth scaling the resolution and giving that a shot.

Can we see a picture of your material network and the material preview?

Just a guess: maybe it is a mipmap scaling the resolution down?

Thanks for the reply. I’ll check that out and get back to you.

Same thing with no mipmaps

Yeah sure!

I think the problem is in the WorldAlign Function. I put my custom world aligned texture through it and it became blurred, but was crisp using my own uvs.

It’s quite funny, I just tried to use the World Aligned Texture and was upset about how textures were filtered.
so I made a material that did the same thing and maintained nearest neighbor filtering. Cheers.

Thanks so much for this! Any way it could work with normals?
edit: this also only seems to work on one axis

I made an improvement to the node set up, The first was a quick and dirty solution, texture were mirrored on certain sides. This new set up fixes all that. It’s still not perfect but if you need unfiltered textures it works like a charm, I hope that the ue4 team could make a version that preserves set filtering at some point, but they got better thing to worry about I suppose.

The solution actually are much simpler. All you need to do is to create a copy of worldalignedtexture function and change the following values in it: Microsoft OneDrive - Access files anywhere. Create docs with free Office Online.

Now just use this function and it will give you sharp lorwres textures :slight_smile:
Works for all axis, just like the original one

Oh, and don’t forget to set texture filtering to nearest: Microsoft OneDrive - Access files anywhere. Create docs with free Office Online.

3 Likes

Thank you, you’re a lifesaver

Here is the definitive solution:
double click the worldAlignedTexture material function node, then change the sampler source on the texture samples within it to be “use texture asset”.

3 Likes

This was the correct answer for me, thank you!

It helps, thanks!