Conversion from USDZ file to glTF file - arkit

I am currently trying to work with AR in android but I have been given models in .usdz format. So far I have been looking for a way to convert this file into one that works with android (.fbx .obj .gltf), preferably being .gltf.
Can someone tell me if there is some support to this kind of conversion?
From what I have researched there is a support to convert files the other way around, meaning from .obj .fbx to .unsz.

Updated: May 10, 2022.
Now USDZ to glTF conversion is possible
At first, you need to install Autodesk Maya 2020 | 2022 | 2023 with Maya USD plug-in.
Then unzip a USDZ zero-compressed archive to get a binary USDC (sometimes ascii USDA) file format and a set of textures. You need to import USDC into Maya. And if you need you can edit those PNG or JPG textures.
Unzipping a USDZ file in macOS
In macOS Finder change the suffix of USDZ file to ZIP.
Uncompress ZIP file using Archive_Utility.app or RAR_Extractor.app.
In Autodesk Maya (with pre-installed USD plugin) import USDC model.
Edit USDC model.
Use Babylon exporter to produce a glTF format.

Recording this for posterity.
You can convert a USDZ file to GLB easily through the following steps.
Open said USDZ file in XCode.
File -> Export... , select Digital Asset Exchange (DAE)
From here you can choose any other tool like https://products.aspose.app/3d/conversion/dae-to-glb or https://github.com/KhronosGroup/COLLADA2GLTF (it's just much easier to find DAE to GLB convertors.)
Voila. However, do note that while on iOS quick look obeys your pivot point origin, but on Android Scene Viewer does not.

Related

Unity: .car file format?

I have file (not mine) with extension .car. As I understand, it is resource/model, that can be used in Unity Engine. Thats the beginning of file:
UnityFS\0\0\0\0\u{06}5.x.x\05.3.5f1\0\0\0\0\0\0\u{19}O—\0\0\0B\0\0\0[\0\0\0C\u{1E}\0\u{01}\0±\u{01}\0m\u{03}x\0\u{19}O\'\0A\u{0E}\0\u{08}\u{01}\0\0\u{1A}\0ð\u{19}\0\0\u{04}CAB-67e90ee36cdeede366978c2174a31d41\0]\0\0\u{08}\0\0\0aJ„Ð Ñ\u{10}Ô\u{0F}uÁÇç=çÎÀŸÀ˜×\u{02}£\u{7F}ÓOÇ\u{12}‹€\u{0F}\u{1E}\u{10}ª\n;\\Vÿ|Íü\u{17} N}´\u{1B}•QréýnI\n3p͸e¢~\u{0B}(õ×<o¨Éw{\u{10}\u{0C}ÎJgx\u{04}ºa–q\n\u{1E}\r\u{0B}\u{01}ß¾Ÿ\u{02}%Ѓ3gc‚{Õ*³éÓÓßH[ùë\u{0F}b!yÈ\u{10}ðqîà},²}ñ\u{0B}éª4¤Dš”\'ˆÐ×ÿ‚†nœ ”„}dû›ö×Pj=\u{06}æ®e}Hél\"F•›è¾’ÄxPb¯\"³=\u{1A}à!\u{1A}|ß>Ð\u{10}ªv\u{14}Ò]²\u{13}ª K\t\u{0C}\u{05}rè%G\u{10}}‡û\u{12}ýù\u{14}ú&p¨l‹\u{1F}kÔ%á8ß#;\u{02}e[üqL±¬²Çª:Lx 1º3+fZR˜…ˆ¯[\u{01}npg1\u{03}
I've tried to add it to Unity Editor, but there I can't do anything with this file.
Can you please explain what the file it is and how can I use It (if it is possible) ?
CAR stands for Component Application Resource. The CAR files contain information about the assets that are available for a software application being run on the Brew Mobile Platform. This platform is used to operate applications on a variety of mobile phones. The CAR files are compiled into a binary BAR file. This file is automatically loaded when the application is run.
The .car file extension is also used for AtHome Assistant files, Biosym chemical modeler input files, NeoBook Cartoon image format files, CAR Archive compressed archive files, CardMaker card files, Carnivores Ice Age resource files, Design-Your-CD data files and Railroad Tycoon 3 car properties files.
As for using it, I'm not sure you would probably have to dig deep into the brew sdk:
https://developer.brewmp.com/content/about-brew-mp-sdk

What file formats are supported by Unity and Hololens?

What file formats does Unity and Hololens support ? We assume only FBX and GLTF file formats only?
Are there open source tools to convert to these formats ?
The ARR service accept FBX and GLTF file formats only.
Unity supports FBX, GLTF, OBJ and Maya files.
Unfortunately, Microsoft doesn't provide any specific tooling to convert a CAD file to these formats. However, Microsoft has recommended using programs like PiXYZ ( https://www.pixyz-software.com/studio/ ) to convert from various CAD formats to a tessellated mesh , which Unity or ARR can read in (such as FBX). Note, the HoloLens itself doesn't care too much about the the format as long as it is a triangulated mesh of polygons. (HoloLens is just a UWP device that uses DirectX). But, Unity does the heavy lifting of sending the polygon data to DirectX. You will likely have to optimize/reduce their CAD data since the HoloLens is a mobile device it can't render much more than 100-200k polygons at 60 frames per second. So, if you need more "complex" representations of the CAD data that's where ARR can help.
Thank you Cameron for providing me/us the info! Microsoft Developers are the best.

I want to import an external fbx file to a stand alone unity project

Hello how can I import an fbx file to a unity build project without using unity engine.so I can access the new fbx file from the exe that I have built.
Use this link It will work for sure. It can handle all formats like fbx, obj, glb, gltf etc.

Is there any way to import solidworks files into unity as assets?

I'm attempting to program a simple chess game using the unity game engine. However, I can't work out how to import the assets that I've created in Solidworks into Unity.
Is it possible to do?
SolidWorks files tend to describe parametric geometry, such as NURBs, but most game engines prefer to work with raw polygons.
Unity has direct support for the following model formats: FBX, OBJ, DAE, 3DS.
SolidWorks can export to STL format, which other programs should be able to convert to OBJ, DAE, and/or FBX. Recommending a specific tool is beyond the scope of Stack Overflow, but I know that such tools exist. I recommend searching terms such as "stl to obj conversion".
These sorts of headaches are fairly common with 3D assets, since so many programs use customized file formats.
Also with 3DS studio max, you can directly open Solidwork files and then export as them as .fbx (you need to have Solidworks installed in the same machine as 3DS Max).
about SolidWorks (SLDPRT, SLDASM) Files:
http://help.autodesk.com/cloudhelp/2015/ENU/3DSMax/files/GUID-861F1B25-0F1B-4E79-A660-821F4CD2175B.htm
Other free tool for converting 3D files: (can save as .obj, which unity reads)
MeshLab
http://meshlab.sourceforge.net/
*Update for 2018:
Unity has partnered with this CAD importer company, and its available to purchase from: https://unity3d.com/pixyz
They support pretty much all the available CAD formats, including SolidWorks
full importer list at https://www.pixyz-software.com/plugin/
Just for reference, since Solidworks 2019 it is not necessary to use any AddIn/3rd Party Plugin. It is supported out of the box: https://help.solidworks.com/2019/english/whatsnew/t_export_using_extended_reality.htm
the "XR exporter" in SOLIDWORKS will allow you to export the model with some additional content (animation, appearances, metadata) to the GLTF / GLB fileformat and using the GLTF importer for unity (should be free) you're done.

How do I load a collada file in Away3d broomstick

Do you have an example of loading a 3d object and displaying it from a collada file? I've browsed around and haven't found a good example.
I'm afraid that in Broomstick version is Collada file loading not yet implemented. Available parsers are AC3D, AWD, MD2, MD5, 3DS and OBJ (see git hub parses source folder)..