Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

GLTF export produces bad output #149

Open
doug-moen opened this issue Nov 13, 2021 · 1 comment
Open

GLTF export produces bad output #149

doug-moen opened this issue Nov 13, 2021 · 1 comment

Comments

@doug-moen
Copy link
Member

Describe the bug

  1. If you export a GLTF file with a large number of vertices, the output is corrupted. This appears to be caused by the fact that vertices in the GLTF file are represented using 16 bits, so the output is corrupt if there are more than 65536 vertices.
  2. The GLTF standard states that +Y is the vertical axis, while Curv (and 3MF, and the 3D printing industry) uses +Z as the vertical axis. So possibly the X/Z axes should be swapped when outputting GLTF.

To Reproduce

$ curv -o cube.gltf -Ovsize=0.01 -Ojit -x cube

CC: @lf94 @zeeyang

@lf94
Copy link
Contributor

lf94 commented Jan 27, 2023

Should we maybe reduce the scope of what formats curv should support due to small resources available to maintain it?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants