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

VOXCONVERT: Object getting too large when converting .obj to .obj format #401

Open
hkunz opened this issue Feb 22, 2024 · 2 comments
Open

Comments

@hkunz
Copy link

hkunz commented Feb 22, 2024

I conducted several test voxel conversions from .obj to .obj and observed some inconsistencies. It's possible I may be mistaken, but when converting a 2m sphere (with a 1m radius) using voxformat_scale=4.0, I wouldn't expect the resulting voxel object to expand to 32x32x32m. It would be beneficial to have a method for enhancing voxel detail or resolution without increasing the object size. Perhaps introducing a parameter like voxformat_resolution could address this concern without disrupting any standardized voxel sizes, assuming such standards exist.

command used:
.\vengi-voxconvert.exe -set voxformat_scale 4.0 --input C:\sphere-2m.obj --output C:\out-32m.obj --force

image

@hkunz hkunz changed the title VOXCONVERT: Object getting to large when converting .obj to .obj format VOXCONVERT: Object getting too large when converting .obj to .obj format Feb 22, 2024
@hkunz
Copy link
Author

hkunz commented Feb 22, 2024

but if you export 2m sphere to vox and then back to obj you get the correct 8m output just not when doing .obj to .obj

@mgerhardy
Copy link
Collaborator

You are right - the scale is applied for importing and exporting for any mesh format - not just obj. Have to think about it.

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