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

gltf-utils #78

Closed
alteous opened this issue Aug 23, 2017 · 3 comments
Closed

gltf-utils #78

alteous opened this issue Aug 23, 2017 · 3 comments

Comments

@alteous
Copy link
Member

alteous commented Aug 23, 2017

In the upcoming version (0.9) some of the existing functionality, notably accessor iteration, will be moved to a new crate, namely gltf-utils. This issue exists to discuss the design and implementation of this new crate.

Rationale

  • The main gltf crate may stabilise more quickly.
  • Accessor iteration et al. may remain unstable post gltf 1.0.
  • gltf-importer may stabilise with gltf.

Currently planned features

  • A Source trait for sourcing pre-existing buffer data. This must be implemented by the user.
  • A generic Iterator that visits the components of an Accessor.
  • Hence, iterators for visiting the positions, indices, colours, etc. of a Primitive.
  • Flat normal generation.
  • Tangent generation using the mikktspace algorithm.

Note

The gltf-json crate will continue to exist in order to reduce compile times. Its semver post gltf 1.0 will match that of gltf although the crate is not intended to stabilise. This should be mentioned in the documentation.

@alteous
Copy link
Member Author

alteous commented Sep 5, 2017

I failed to realise that gltf-utils depends on gltf so in order to avoid version mismatch issues the semver must match that of gltf.

@erlend-sh
Copy link

It's getting to that point where it might be handy to have these glTF libraries collected in a @gltf-rs org. @bwasty's gltf-viewer could be in there too.

@alteous
Copy link
Member Author

alteous commented Sep 5, 2017

@erlend-sh Good idea. I'll set it up soon.

@alteous alteous closed this as completed Oct 17, 2017
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

2 participants