Hello Needle Developers,
Iâm trying to build a react-AR App, but struggling with the USDZExporter. I already tried different ways, no success right now.
What I did:
-
Using React and the âoldâ three.js Exporter, but the modified version from you (2022?) which supports keyframe animations. This is working (exept a strange problem with rotation/quaternation, objects get stretches instead of rotating properly)
The exporter is a bit old now, but the good thing is, it can be used standalone. -
I found your demo âreact-three-fiber-sampleâ, which is working with react, but trying to use the USDZExporter from that package throws a JavaScript Error: âcanât access property âquerySelectorâ, context.domElement.shadowRoot is nullâ, in ensureQuicklookLinkIsCreated quicklook.ts:5
So it expects a shadow root for the download-link, which I cannot find. I tryed to change the code directly in the node module, but the vite cache was blocking this.
And the demo is already some years old. Using Needle 3.18.0 + npm:@needle-tools/three@^0.154.3 -
Just using React Three Fiber and import the needle-engine (to get the newer Exporter) is not working. Obviously geometrie created via react, without âgeometry___needleâ get ignored in the usdz-file.
But, as far I understand, the newer UDZExporters are only working in a needle environment. Or is there still a standalone version?
So, what can Id do? Updating the âreact-three-fiber-sampleâ-Sample, removing the Bug? Build on this?
Or maybe there is another, better way?
Of course I would rather use the newer exporterâŠ
Any help very appreciated
btw: What animation-types are supported now? Bones? Shape-key?