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

access raw uv coordinates from obj #145

Open
mshooter opened this issue Jan 20, 2023 · 3 comments
Open

access raw uv coordinates from obj #145

mshooter opened this issue Jan 20, 2023 · 3 comments

Comments

@mshooter
Copy link

mshooter commented Jan 20, 2023

Hi,

I liked that I could access the raw vertices from the obj file, however, is it also possible to access the raw uvs?

scene = pywavefront.Wavefront(os.path.join(data_dir, "smal_data/barc.obj"), parse=True) scene.vertices

@einarf
Copy link
Member

einarf commented Jan 20, 2023

#87 (comment)

@mshooter
Copy link
Author

mshooter commented Feb 1, 2023

I think you misunderstood my question, I want the uv's in the order that the uv's are in the obj file.

@einarf
Copy link
Member

einarf commented Feb 4, 2023

I don't think there is a simple way unless you extend the current parser. Maybe trimesh have something for this? https://github.com/mikedh/trimesh

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