ConnorDY / OSRS-Environment-Exporter

Tool for exporting Old School RuneScape environments so they can be used in 3D modeling programs like Blender.
GNU General Public License v3.0
48 stars 16 forks source link

How to determine what texture each face is using? #192

Open Jettucis opened 3 weeks ago

Jettucis commented 3 weeks ago

More of a question than an issue/bug/feature request. I am also sorry if my question may sound stupid, but I really have no idea.

When importing gltf model in Blender it has material - rs_textured which is cool and all, but how can I check what face has what texture applied on?

For example, I am re-exporting the model in .fbx format (since I need to have it in fbx) and later I am "painting" the faces manually in a different engine, but the problem is that from the exported textures there's no real info which texture is used for which face, it's more of a guess work which texture is applied to which face.

Jettucis commented 3 weeks ago

I tried exporting other regions and all of them have the same textures, is that how it's supposed to be?

ScoreUnder commented 3 weeks ago

There are two materials: rs_untextured and rs_texture_(number). The numbered textures correspond to the texture image files in the Textures directory, and anything using the untextured material should just be coloured according to the vertex colour. Is there more info you needed?

Jettucis commented 3 weeks ago

Well I have only following material and don't find any other references to the exact textures used image

as I stated, I want to know what face uses what texture

ScoreUnder commented 3 weeks ago

That is for untextured faces, i.e. those which don't use an image as the texture. Instead a solid colour is used per vertex, and that is encoded in the glTF mesh.