Hey I’m very new to 3d and JME3 so I hope I address this correctly on the right spot.
When I build a cube, size 0.5f, 0.5f, 0.5f and I put a texture on if which is 32x32 pixels the view I get is a blurred version of my texture, which I think is cause by the software filling in the gaps. My questions: what is this effect, and how do I stop it from happening. I want my cubes to look like they came from the first Wolvenstein, not the last ;).
My (simple) code so far 90% still from helloworld.java from the examples:
Box box = new Box( new Vector3f(i,-3,j), 0.5f,0.5f,0.5f);
Spatial wall = new Geometry(“Box”, box );
Material mat_brick = new Material(
assetManager, “Common/MatDefs/Misc/SimpleTextured.j3md”);
mat_brick.setTexture(“m_ColorMap”,
assetManager.loadTexture(“Textures/grass(32x32).jpg”));
wall.setMaterial(mat_brick);
wall.setLocalTranslation(1,1,1);
Texture tex_wall = assetManager.loadTexture(“Interface/Logo/Monkey.jpg”);
rootNode.attachChild(wall);
tex_wall.setMagFilter(Texture.MagFilter.Nearest);
tex_wall.setMinFilter(Texture.MinFilter.NearestNoMipMaps);
Just set the texture’s min and mag filter to “nearest”