three-d-asset icon indicating copy to clipboard operation
three-d-asset copied to clipboard

FBX format (deserialize)

Open asny opened this issue 3 years ago • 4 comments

asny avatar May 30 '22 19:05 asny

I came to ask instructions on implementing custom "parsers", I did not look closely in an IDE, but by glancing on GH I'm not sure how the loaders resolve to one type or another. Could you give pointers?

Thanks, I just started using three-d and I love its flexibility

EDIT: Found the entry: https://github.com/asny/three-d-asset/blob/0850040c21bbc7f0d7354a5a98e2735da9b7a6b8/src/io.rs#L155-L183

Just not 100% sure about the wasm part but it seems to be handled at an higher level, anyhow I'll give it a go

melMass avatar Mar 26 '23 18:03 melMass

Thank you for the kind words 🙏 Sounds great you want to give it a go and yes, you found the right spot. And I think you should not worry too much about wasm. Of course there are some limitations on web (no threads for example) but if it works on native, it should be straight forward to get it to work on web.

asny avatar Mar 26 '23 19:03 asny

Nice I got a very basic version working (no object transforms, no materials) using the fbxcel crate. I just found Amient's implementation: https://github.com/AmbientRun/Ambient/tree/main/crates/model_import/src/fbx It looks quite feature complete and I will take inspiration from it for the materials this weekend! I'll propose a PR then or early next week

melMass avatar Mar 27 '23 15:03 melMass

Super nice 💪 Sounds like a good plan! 🙂

asny avatar Mar 28 '23 08:03 asny