Texture filter prior to loading model


When loading a model that contains embedded materials:


Spatial model = assetManager.loadModel(“test.obj”);



… the textures are obviously loaded using whatever the default MinMagFilter and MaxMagFilter are.

What’s the correct way to set these texture parameters?

Ok, so I can get the model texture via a rather twisted and model-specific set of calls:


Node model = (Node) assetManager.loadModel("test.obj");

Geometry geom = (Geometry) model.getChild("test-geom-0");

MatParam m = geom.getMaterial().getParam("DiffuseMap");

Texture2D t = (Texture2D) m.getValue();





But it makes no difference. I think the texture is probably already loaded before I

can set the Min/Mag filter.

I tell a lie, selecting the correct geometry did it (for some reason it was the second one in the exported model).

1 Like