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

uv and uv2 disappear after compression. #58

Closed
DudduYum opened this issue Feb 9, 2017 · 4 comments
Closed

uv and uv2 disappear after compression. #58

DudduYum opened this issue Feb 9, 2017 · 4 comments

Comments

@DudduYum
Copy link

DudduYum commented Feb 9, 2017

Basically when I encode obj model and decode it with javascript decoder I loose all uv coordinates. So it is impossible to add a texture to a model.

@ondys
Copy link
Collaborator

ondys commented Feb 9, 2017

Can you please post an example of this problem? Draco encodes texture coordinates defined in .OBJ files and the example javascript decoder shows how to decode them as well.

@DudduYum
Copy link
Author

DudduYum commented Feb 12, 2017

I link you my question on stackoverflow. I have an .OBJ that have uv maps, but when I decode it, I can't see uv map in geometry._buffergeometry.attributes. I have .OBJ with one .MTL file

@ondys
Copy link
Collaborator

ondys commented Feb 13, 2017

I just tried it on a simple model and the "uv" attribute was decoded correctly.

  1. Are you using the latest DRACOloader.js ? Support for texture coordinates has been added relatively recently. If you are using an older version, the uv coordinates would not be decoded.

  2. If you are using the latest version, can you please share a sample .drc file (and if possible .obj as well) ?

@DudduYum
Copy link
Author

You was right I had the old version.

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