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

Object requires a newer version of IOS #344

Closed
wallabyway opened this issue Sep 30, 2021 · 4 comments
Closed

Object requires a newer version of IOS #344

wallabyway opened this issue Sep 30, 2021 · 4 comments
Labels

Comments

@wallabyway
Copy link

I can load and view a normal test.GLB file on my iPhone, using the three.js USDZ exporter. It converts the three.js scene into a USDZ file, so it can be viewed with AR QuickLook, on iPhone.

However, if I compress the same test.GLB file with mesh-optimizer, and load this in three.js with meshOpt, then, it appears to preview correctly in three.js, but when it converts it to a USDZ file, and tries to view that on the iPhone quicklook preview.. then the following error message appears: "Object requires a newer version of IOS" when viewing in IOS QuickLook.

Could this be something wrong with the USDZ exporter, or something wrong with the buffer structure?

meshOpt-no-usdz-threejs

@wallabyway
Copy link
Author

wallabyway commented Sep 30, 2021

oh wait.. there's something wrong with the USDZExporter.

it's reporting this error in the console...

usdz-error

for ( let i = 0; i < data.length; i += 3 ) {

		array.push( `(${ data[ i + 0 ].toPrecision( PRECISION ) }, ${ data[ i + 1 ].toPrecision( PRECISION ) }, ${ data[ i + 2 ].toPrecision( PRECISION ) })` );

@wallabyway
Copy link
Author

wallabyway commented Sep 30, 2021

Cross Referencing: mrdoob/three.js#22609

@zeux
Copy link
Owner

zeux commented Sep 30, 2021

FWIW this is probably going to be reproducible without -c as well, and likely says that USDZ exporter doesn't support interleaved arrays. Either way that's a three.js issue, gltfpack doesn't know what USDZ is.

@zeux zeux added invalid and removed enhancement labels Sep 30, 2021
@zeux zeux closed this as completed Sep 30, 2021
@wallabyway
Copy link
Author

Bug was in three.js. Now fixed via this pull request: mrdoob/three.js#22633)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants