Open Rubenvdveen opened 2 years ago
Exporting my 3D object to USDZ using the USDZ exporter works fine.
Can you share the file you're converting to USDZ?
@mrdoob In what format do you want it? Before converting it's a ThreeJS scene, built from several .obj files and .png's.
On another forum, someone suggested that I check the scale of the USDZ. He noticed it was x1000 for almost all scales, which could be the reason why QuickLook does not show the model correctly. I'm going to do that somewhere in the upcoming days, I'll keep you posted here.
Describe the bug
I’m trying to use QuickLook AR to show the 3D ThreeJS model in AR on iOS. Exporting my 3D object to USDZ using the USDZ exporter works fine. When opening the USDZ file in XCode everything seems to be fine.
Though, when opening the USDZ in QuickLook AR, the 3D model is flying above the ground, on my camera’s Y level. The camera PoV is positioned exactly in the middle of the X and Z axis of the 3D model and at the bottom of the Y level.
I have another problem with opening the USDZ in QuickLook AR, which is; When opening the USDZ in QuickLook AR, the model is invisible at first. Then when I scale the model down to < 10%, the model becomes visible, though it does not scale in size at all. Also, the “Model” tab in QuickLook does not even show the 3D model. When switching between the “Model” and “AR” tabs, the model flies by really quick.
To Reproduce
For reference, I’ve added my USDZ model below.
Button click code:
saveUSDZString function:
save function:
USDZ model: scene (43).usdz.zip
Expected behavior
What I’m trying to accomplish is to position the 3D model in front of me, and for the 3D model to acknowledge the world shown by the camera. The 3D model should stick to walls, or at least the floor to begin with.
Platform: