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 exported by Three.js cannot import into Facebook 3D post #13380

Closed
Ben-Mack opened this issue Feb 21, 2018 · 3 comments
Closed

GLTF exported by Three.js cannot import into Facebook 3D post #13380

Ben-Mack opened this issue Feb 21, 2018 · 3 comments
Assignees
Milestone

Comments

@Ben-Mack
Copy link

Facebook recently annouced 3D post, with ability to view GLTF file on new feed.

I tried this GLTF binary sample, it working fine ( https://github.com/KhronosGroup/glTF-Sample-Models/tree/master/2.0/CesiumMilkTruck/glTF-Binary )

But GLB file exported from this Three.js example ( https://threejs.org/examples/?q=gltf#misc_exporter_gltf ) is not working, Facebook return this error:

GLB File Invalid: 3D Model Not Posted | Your 3D model could not be posted as it contains features we don't support, is of a file type we don't support, or contains errors

_

GLTF model validation by Facebook: https://developers.facebook.com/tools/3d/validation

Tutorial on how to upload GLTF file to Facebook: https://developers.facebook.com/docs/sharing/3d-posts#creating-3d-posts

@donmccurdy
Copy link
Collaborator

donmccurdy commented Feb 21, 2018

Testing Editor exports with their validator, I'm seeing this:

screenshot
screen shot 2018-02-20 at 8 44 25 pm

Running the same model through the official validator, I see:

GLB_CHUNK_LENGTH_UNALIGNED | Length of 0x4e4f534a chunk is not aligned to 4-byte boundaries.

... which was partially fixed with #13220, I guess there was another warning for GLB. I'm a little surprised that's an issue though, as three.js can render it anyway, but let's try fixing that and see if it solves the problem.

@donmccurdy
Copy link
Collaborator

Another validation warning when there is a camera, which our demo includes (but Facebook has stated in the FAQ they don't support cameras in the GLB, anyway) —

screen shot 2018-02-20 at 8 49 36 pm

@mrdoob
Copy link
Owner

mrdoob commented Feb 22, 2018

Closing in favour of #13397

@mrdoob mrdoob closed this as completed Feb 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants