We're sorry AsposeCloud doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.cloud

How Do I Convert OBJ Files with MTL to USDZ Using Aspose.3D REST API

Hi,

I managed to convert usdz to gltf files successfully with Aspose cloud/curl. It works a treat! :grinning_face_with_smiling_eyes: :+1:

Now my follow-up question: Is it possible to turn .obj files including .mtl and the respective texture image .jpg files to an usdz file? As the .obj file alone can’t contain the materials and requires an accompanying .mtl file and image files.

If it’s possible, how would I “merge” the obj/mtl/jpg files into an .usdz package using the cloud/curl API?

@cburgdorfer

Please try PostConvertByFormat API method of Aspose.3D Cloud API to convert OBJ files with MTL to USDZ. If you face any issue in this regard, then please share your input OBJ and expected USDZ. We will look into the issue and will guide you.

POSt ​/3d​/saveas​/newformat Convert file on server to other formats with fileformat parameter

Convert OBJ to USDZ with Aspose.3D Cloud Online Converter

## Upload OBJ file to Storage
curl -X PUT "https://api.aspose.cloud/v3.0/3d/storage/file/Temp/test.obj"
-H "accept: application/json"
-H "authorization: Bearer [Access_Token]"
-H "Content-Type: multipart/form-data"
-T "C:/Users/hp 840 g3/Downloads/test.obj"

## Convert OBJ to USDZ
curl -X POST "https://api.aspose.cloud/v3.0/3d/saveas/newformat?name=test.obj&newformat=usdz&newfilename=test.usdz&folder=Temp&IsOverwrite=false" 
-H "accept: application/json" 
-H "authorization: Bearer [Access_Token]" 
1 Like

@cburgdorfer

Thanks for sharing the sample OBJ file. We have tested the scenario and noticed the reported issue. We logged a ticket THREEDCLOUD-72 for further investigation and rectification. We will update you as soon as it is resolved.

1 Like