Blur bitmap depending on distance

Is anyone aware of a script or way to blur a game objects bitmap texture depending on distance from camera? Sort of a selective DOF effect.

I believe Blender has something like this

I’m trying to selectively remove moire on some textures with fine vertical lines.

If you’re dealing with Moire patterns, you need to take advantage of anisotropic filtering.

For the texture you need blurred, go to where it is imported as an asset and click it.

In the Inspector panel, first make sure that the texture dimensions are powers of two numbers (128, 256, 512, etc). If they are, make sure you can select various mip mapping levels at the bottom of Inspector panel by dragging a small slider right above the texture preview.

Also, make sure that Aniso level is set to at least 1 or more (it should be by default if you didn’t touch it).

Finally, make sure that you’re using the anisotropic textures by going to Project Settings → Quality,
And under the quality preset that you use, the option “Anisotropic textures” is set either Per Texture, or Forced On.

Your problem (Moire) is basically the exact reason anisotropic filtering and mipmaps were invented. It’s basically using pre-blurred (automatically) versions of a texture at longer distances from the camera and when a surface is viewed under steep angles.

yes… but it was such a detailed (and very much appreciated) answer:)
tried the suggestions and am posting a link…still no luck

@Eudaimonium I think my issue has to do with the actual mesh and is a LOD problem…perhaps too many vertical lines in the mesh closely spaced? It’s a model I purchased, part of a larger fbx file.

I have a slow horizontal pan on the camera and that is when I see the moire on most of the vertical lines in the building

Just uploading the video and will edit this post with the link once its up

If you agree it IS a LOD issue, are there any of the many LOD assets in the asset store you might recommend? crazy price range from 5-$90!