Archive 17/01/2023.

[Solved]Change Pixel Filtering Urho3D

GoogleBot42

Yep another question. :wink:

By default Urho3D make an image blury when up close to an image when there is no more detail. I want each pixel to be preserved.

Here is a screenshtot I made with irrlicht. To enable this I did this to the mesh:

mesh->setMaterialFlag(video::EMF_BILINEAR_FILTER, false);

How do I do this in Urho3D?

Yes I am planning on making a minecraft clone. :slight_smile:

GoogleBot42

Never mind I figured it out…

weitjong

I think you can also do that declaratively instead of programmatically. See this section of the documentation urho3d.github.io/documentation/H … s_Textures.

GoogleBot42

Hmmm I am going to make a game that is modable and the mods will load their own textures… can I load a material that doesn’t have a texture specified and load the texture later?

EDIT: Here’s a pic of the same textures rendered in Urho3D. :smiley:

thebluefish

Yes you can change the texture in the material. Just know that all geometry that uses that material will have the new texture, but you can clone it if you need to.

GoogleBot42

Thanks! Just what I needed to know! I think am am begining to get Urho3D’s structure. :slight_smile:

EDIT: I just realized how silly it is that irrlicht allows for one to change the texture filtering mode in the mesh… it just doesn’t make sense and it is confusing for those who don’t understand what the difference is between a mesh, material, and texture…