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

Output quantization #5

Open
crobi opened this issue Mar 20, 2015 · 0 comments
Open

Output quantization #5

crobi opened this issue Mar 20, 2015 · 0 comments

Comments

@crobi
Copy link
Contributor

crobi commented Mar 20, 2015

Implement a simple customizable geometry quantization. The model format should be fast to load, so don't bother with complex schemes like a predictive encoding with variable bit rates.

  • Collect global ranges of values for vertex positions, node positions, and node scaling vectors
  • Implement int16 and int8 encoding of floats (use above ranges for encoding/decoding)
  • Add options to select encoding for binary data
    • Separate options for vertex positions, vertex normals, texture coordinates, node positions, node quaternions, node scale, transform matrix?
    • Or just one option for positions, one for texture coordinates, one for normals/quaternions?
  • Add options to select the number of digits for JSON/text data
  • Add convenience functions to write JSON numbers, something like:
enum Semantic{
  VertexPosition,
  VertexNormal,
  TextureCoordinate,
  NodePosition,
  NodeQuaternion,
  NodeScale,
  TransformationMatrix
};
function roundNumber(value: number, semantic: Semantic, options: Options): number;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant