warrenm / GLTFKit2

A glTF 2.0 asset loader and exporter for Objective-C and Swift.
MIT License
156 stars 27 forks source link

GLTF Export missing #9

Closed daniel-packard closed 2 years ago

daniel-packard commented 2 years ago

Hello @warrenm - we're looking for a way to export an SCNScene to gltf/glb formats.

According to the readme:

GLTFKit2 is an efficient glTF loader and exporter for Objective-C and Swift.

But it looks like an objective-c wrapper for the "exporter" part of cgltf has not been implemented yet.

Do you have plans to implement soon and/or are you looking for contributions?

PS: Really enjoyed your Metal by Example material!

warrenm commented 2 years ago

The readme is more aspirational than actual. Export support isn’t on the immediate roadmap, but we can use this issue to discuss the baseline export feature set you’d like to use.

daniel-packard commented 2 years ago

Thanks!

We're looking to export static triangular meshes with a single base texture.

(no animation, rigging, metallic textures, etc)

daniel-packard commented 2 years ago

FYI - we have the option to do the format conversion on our server, so that's what we will do for now

But we're still very much interested in a mobile library for converting to gltf on the client. We'll keep an eye on your development plans and would be happy to pitch in.

(we = the https://www.spectre3d.io/ team)

warrenm commented 2 years ago

Appreciate the additional details, and sorry to have created false hope. I’ve laid the groundwork for export, but it’ll be a while yet before it supports even your basic use cases. I’ll make export of core features a priority as time allows.