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

Material ID required for the various faces #20

Open
Esharc opened this issue Jul 7, 2023 · 0 comments
Open

Material ID required for the various faces #20

Esharc opened this issue Jul 7, 2023 · 0 comments

Comments

@Esharc
Copy link

Esharc commented Jul 7, 2023

When parsing the .obj file the used material for the current face being parsed needs to be stored.

I need the index for the material being used for the face that is currently being parse, but I see that only the last used material is being stored in the Group of the data store.

In the copy of your library that I am using I added a MaterialIndex to the FaceVertex struct in the Face.cs file, and then in the FaceParser.cs file I added functionality to determine the index of the current material being used for the face.

This is an old project, so I assume most people that use this only have one colour in their .obj file. I have four.

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

1 participant