Java 3D API - Prevent small texture blurriness

311 views Asked by At

At the bottom of the 3D image, the blurriness is clear.

I have rendered this scene using the Java 3D API. At the bottom of the image, where the ground is closer to the viewer, there is a blurriness surrounding the black lines on the image. I would like to prevent this blurriness entirely. Here is the image I am using as the texture:

grid.png

As you can see, it is quite small but making the image larger is not an option. Are there any scaling methods I can change the type of such as a "nearest-neighbour" option for Java 3D texturing?

Thanks!

1

There are 1 answers

0
luke On

As Banthar suggested, I used:

texture.setMagFilter(Texture.BASE_LEVEL_POINT‌​);

and it works perfectly with no blurriness.