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

Vertex count varies #326

Closed
ameliemaia opened this issue Jan 5, 2018 · 7 comments
Closed

Vertex count varies #326

ameliemaia opened this issue Jan 5, 2018 · 7 comments

Comments

@ameliemaia
Copy link

Hello,

I'm using the draco encoder to convert 5 .obj models to .drc. All 5 obj models have the same vertex count. When I load the models via the threejs draco loader I've noticed the vertex count changes between the models. Since i'm blending between objects I need persistant vertex count.

Is there any encoder setting that allows this?

@mhsaar
Copy link

mhsaar commented Jan 5, 2018 via email

@FarhadG
Copy link

FarhadG commented Mar 19, 2018

How do do sequential encoding, @mhsaar?

@mhsaar
Copy link

mhsaar commented Mar 19, 2018 via email

@FarhadG
Copy link

FarhadG commented Mar 19, 2018

Thanks for the quick response, @mhsaar. I assume by compression, you're referring to quantization. When I set the qp to 0 to disable quantization, the model generated, but could not render it in THREE.js. You can see the error outlined here: #353

How do I se the expert_encoder? Sorry, but I couldn't find anything about this in the documentation.

Thank you!

@mhsaar
Copy link

mhsaar commented Mar 19, 2018 via email

@FarhadG
Copy link

FarhadG commented Mar 19, 2018

I must be missing something then, @mhsaar. Because that was the very thing I did and I don't see anything outlined here about the expert_encoder:

Main options:
  -h | -?               show help.
  -i <input>            input file name.
  -o <output>           output file name.
  -point_cloud          forces the input to be encoded as a point cloud.
  -qp <value>           quantization bits for the position attribute, default=14.
  -qt <value>           quantization bits for the texture coordinate attribute, default=12.
  -qn <value>           quantization bits for the normal vector attribute, default=10.
  -qg <value>           quantization bits for any generic attribute, default=8.
  -cl <value>           compression level [0-10], most=10, least=0, default=7.
  --skip ATTRIBUTE_NAME skip a given attribute (NORMAL, TEX_COORD, GENERIC)
  --metadata            use metadata to encode extra information in mesh files.

@ondys
Copy link
Collaborator

ondys commented Mar 20, 2018

to set compression level to 0, use -cl 0 argument

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

5 participants