This gist explains the steps and code snippet on how to convert FBX to OBJ format using Aspose.3D Cloud SDK for .NET.
For more information, please visit
This gist explains the steps and code snippet on how to convert FBX to OBJ format using Aspose.3D Cloud SDK for .NET.
For more information, please visit
This Gist contains code snippets related to conversion FBX file to OBJ format using Aspose.3D Cloud SDK for .NET |
// Get ClientID from https://dashboard.aspose.cloud/ | |
string clientSecret = "d757548a9f2558c39c2feebdf85b4c44"; | |
string clientID = "4db2f826-bf9c-42e7-8b2a-8cbca2d15553"; | |
// name of input FBX file | |
String inputFileName = "Wolf-Blender-2.82a.fbx"; | |
// resultant file format | |
String newFormat = "wavefrontobj"; | |
// name of output file | |
String newFileName = "resultant.obj"; | |
// create an instance of ThreeDCloud API | |
ThreeDCloudApi threeDCloudApi = new ThreeDCloudApi("client_credentials", clientID, clientSecret); | |
try | |
{ | |
// load input FBX from local drive | |
using (var inputStream = new FileStream("C:\\Users\\nayyer\\Downloads\\" + inputFileName, FileMode.Open)) | |
{ | |
// upload file to Cloud storage | |
threeDCloudApi.UploadFile(inputFileName, inputStream); | |
// initiate the file conversion operation | |
var response = threeDCloudApi.PostConvertByFormatWithHttpInfo(inputFileName, newFormat, newFileName, null, isOverwrite: true, null); | |
// print success message if conversion is successful | |
if (response != null && response.Equals("OK")) | |
{ | |
Console.WriteLine("Successfully converted FBX to OBJ !"); | |
Console.ReadKey(); | |
} | |
} | |
}catch (Exception ex) | |
{ | |
Console.WriteLine("error:" + ex.Message + "\n" + ex.StackTrace); | |
} |