Comments (10)
A substantial amount work has been going on over the last month or so. New macros have been added to gltf-derive
which have simplified the main crate code considerably. The JSON data structures are much friendlier to use. I expect the whole crate code will be reduced by ~70% when it's ready.
I'm planning to open a large PR soon. There will be a final 1.4.1 release for the latest fixes before a 2.0 release is entertained.
from gltf.
Any plans to take other 3d-formats and export to glTF? (perhaps even visa-versa)
My use case is that I would like to serve .stp, .stl and .3mf files to a renderer in the frontend. My infrastructure is all rust, and would like to stay in rust if possible.
I'm not sure about the scope of what I'm asking. From what I managed to glean from basic research, it would seem that there isn't really any libraries to do this, just software features. I think it would be a great contribution to the community at large if there was a single library that managed this, so instead of it becoming absorbed into the codebase of blender, for example, it exists as part of a pseudo-standard library that can be integrated into any software that needs to work with gltf.
I think you might want to create a new issue for this. That being said, while I'd love to have that functionality, the scope of what you're asking about is pretty big.
If I understand you correctly, you mainly care about converting 3d formats to glTF, right?
Without going into the other possible formats you might care about (usd, 3dxml, collada ...) each file format has its own unique quirks and features that don't map cleanly to glTF and vice versa. Each will have special cases that you have to handle one way or another with annoying trade-offs, or even information that you have to drop altogether because it isn't cleanly supported (say comments, or multiple levels of details etc).
If you want to allow conversions in both directions, you double this complexity. If you want to allow converting from any format to any format, you now either have to support an exponential number of converters (
That being said, I'd really appreciate it too if such a library existed, but I don't think you can reasonably expect it to be added to this crate.
from gltf.
A new release with #414 in it is now the only thing blocking emilk/egui#4160.
from gltf.
Have you got any plans to support the EXT_mesh_features and EXT_structural_metadata extensions?
Having support for writing/reading these extensions would be very useful now they are fully supported in Cesium Ion.
Thanks
from gltf.
@scottmcnab, if the only requirement is to be able to read the JSON then these objectives will make supporting new extensions much easier. Having said that, there are no plans to support any particular extension in the near future. If you need a quick solution in the meantime then you might want to consider using #395.
from gltf.
I've come up with a neat (albeit slightly cursed) way of auto-generating the top-level glTF crate: https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=516e6a2c73525eb5efbd0412789923e1
The generated document suffers a bit but perhaps the type references could be generated too.
from gltf.
from gltf.
Any plans to take other 3d-formats and export to glTF? (perhaps even visa-versa)
My use case is that I would like to serve .stp, .stl and .3mf files to a renderer in the frontend. My infrastructure is all rust, and would like to stay in rust if possible.
I'm not sure about the scope of what I'm asking. From what I managed to glean from basic research, it would seem that there isn't really any libraries to do this, just software features. I think it would be a great contribution to the community at large if there was a single library that managed this, so instead of it becoming absorbed into the codebase of blender, for example, it exists as part of a pseudo-standard library that can be integrated into any software that needs to work with gltf.
from gltf.
Thanks for the feedback. I can now see the nature of my question better, and see that is probably well out-of-scope of this project.
from gltf.
Looking forward to the 1.4.1 release with the dependency bumps! 🤞
Thank you for your work!
from gltf.
Related Issues (20)
- Semver violating change in gltf-json v1.2 HOT 3
- Add Animations? HOT 1
- gltf-json 1.3 breaks semver HOT 3
- Allow importing large images
- Can we have a feature which accumulates all the other features in it?
- Expose Scheme API publicly or allow access to encoded images
- Panics on reading a large GLTF due to the .bin being more than ~4GB and `byteLength` using a u32 HOT 3
- Possible to return a slice intead of an iterator ? HOT 1
- gltf::animation::Sampler and gltf::animation::Channel should have `.index()` HOT 1
- Add support for KHR_mesh_quanitization HOT 2
- Validation apparently takes ages
- Is there anyway to use gltf in constants? HOT 4
- version 1.4 violates semantic versioning HOT 1
- Support EXT_mesh_gpu_instancing HOT 1
- Pin sub-crate versions HOT 1
- Optional simd-json decoding
- bug: Reader::read_positions does not honour `accessor.componentType` HOT 3
- `gltf::import_buffers` consumes `Vec<u8>` blob HOT 1
- Consider adding export or splitting representation into separate crate HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gltf.