Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Jettucis opened this issue Sep 5, 2024 · 4 comments
Open

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

Jettucis opened this issue Sep 5, 2024 · 4 comments

Comments

@Jettucis
Copy link

Jettucis commented Sep 5, 2024

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
Copy link
Author

Jettucis commented Sep 6, 2024

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

@ScoreUnder
Copy link
Collaborator

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
Copy link
Author

Jettucis commented Sep 7, 2024

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
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants