StandardCyborg / StandardCyborgCocoa

Everything you need for 3D scanning on iOS
https://www.standardcyborg.com
Other
143 stars 49 forks source link

About the error of saving the object file as gltf. #28

Open sxy771 opened 1 year ago

sxy771 commented 1 year ago

I tried to save and hope to check that file by blender.

writeToGLTF in saveScene doesn't seem to work well.

스크린샷 2022-09-08 오전 9 41 34

Because it cant be opened caused by worn saved file format.

스크린샷 2022-09-07 오후 5 38 24

Then, I checked the file compared with the commonly used gltf file as Damaged Helmet.

if showed quite different data information as below.

Caused by the lack of access permission, I could just look up the header files. How to fix and save the gltf file appropriately to be able to be shown by blender?

스크린샷 2022-09-07 오후 5 35 01

If anyonw knows the solution, could you give me advice about that?

sxy771 commented 1 year ago

Is there anyone who can know/solve this issue?

geodesicDavid commented 1 year ago

I've also been running into the same issue

meichen8050753 commented 1 year ago

I have the same issue

aaptho commented 1 year ago

The GLTF format we write here is actually not quite valid. If anyone wants to volunteer and fix our GLTF writing, I’d welcome the PR! Check out SceneGraphFileIO_GLTF.cpp

macayer commented 8 months ago

Hello @aaptho

Did anyone found a solution yet to export the GLTF file with a valid format nor the 3d object outside the app?

I would need to use the file outside of the application.

Thx

aaptho commented 7 months ago

Nobody has submitted a PR to fix the implementation of WriteSceneGraphToGltf, but I welcome the fix. It’s likely to be something simple.

In the mean time, PLY and OBJ export may work correctly.