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

tex_coord data compression doesn't work #50

Open
Rouen007 opened this issue Mar 14, 2024 · 1 comment
Open

tex_coord data compression doesn't work #50

Rouen007 opened this issue Mar 14, 2024 · 1 comment

Comments

@Rouen007
Copy link

Rouen007 commented Mar 14, 2024

I used the following two pieces of code to judge the encoding performance of tex_coord data:
binary1 = DracoPy.encode(pos_data, face_data, preserve_order=True)
binary2 = DracoPy.encode(pos_data, face_data, tex_coord=np.array(tex_data), preserve_order=True)

and tex_coord is list (29753 size) which is 29753 x 2 x 4 = 238024 Bytes

and I found that binary1's size is 245450 bytes and binary2's size is 483480 bytes. so I could have the conclusion that the tex_coord data of the whole data is 483480-245450=238030 Bytes

After encoding is capacity of tex_coord part is greater to the original part 6 Bytes, which is rather confusing. I' ve no idea why, could
you help me.

@william-silversmith
Copy link
Contributor

Hi there, I'm not quite sure why that would be, but I don't currently have time to investigate this. If anyone is able to figure it out, PRs are welcome!

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