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

High level abstraction of material specifiction #38

Open
simnalamburt opened this issue Mar 5, 2019 · 4 comments
Open

High level abstraction of material specifiction #38

simnalamburt opened this issue Mar 5, 2019 · 4 comments

Comments

@simnalamburt
Copy link
Owner

If we manage to parse the material information of Wavefront OBJ, most usecases of Wavefront OBJ format will be satisfied.

@dbrgn
Copy link

dbrgn commented Nov 10, 2019

Does this mean that materials are currently not handled? I'm asking because the README explicitly states "Wavefront .obj parser for Rust. It handles both .obj and .mtl formats".

@simnalamburt
Copy link
Owner Author

As README states, obj-rs does know how to parse MTL files. If you just want to parse the MTL file, you can call parse_mtl directly.

What we does not support is abstracting it with high level helpers like Obj type. I'm not sure if it's even possible since Wavefront Obj format is too flexible.

I'll update the README to make this issue more clear.

Reference

@simnalamburt simnalamburt changed the title Parse material High level abstraction of material specifiction May 9, 2020
@avl
Copy link

avl commented Nov 10, 2022

Are 'usemtl' statements in the obj-file parsed? Is there some way to know which primitives should have which material?

@simnalamburt
Copy link
Owner Author

simnalamburt commented Dec 15, 2022

They are being parsed but only shown in RawObj interface. See https://docs.rs/obj-rs/0.7.0/obj/raw/object/struct.RawObj.html#structfield.material_libraries

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

3 participants