Hi monkeys! So, I had a problem about my texture being blurry, but it has been fixed by changing the MagFilter of my DiffuseMap to Nearest. Now, I just wanna know if there’s a way to make this change in the Material file (.j3m). Because I really want to just load my .j3o without doing anything else to make it look good.
In 3.1 you can set it either through the j3m or through code when you manually load the texture.
In order to do it through the j3m you do this:
Material Some Name : Common/MatDefs/Light/Lighting.j3md {
MaterialParameters {
DiffuseMap: MagNearest "textures/weather/cloud.jpg"
}
}
This will ensure the texture has magnification filter set to “Nearest”.
You can do the same with WrapMode using Wrap[MODE] where [MODE] is one of “Repeat”, “MirroredRepeat” or “EdgeClamp”. In fact any of the WrapMode enums will work. Repeat also accepts “_S”, “_T” and “_R” after to control the axis to wrap on.
You can specify several options in the j3m, just ensure that the texture path is last in the list. For instance.
I have tried to put the MagNearest before the Flip, use textures instead of Textures in the String, use any other parameters you specify above. Nothing works.