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

Free Support Forum - aspose.com

Aspose 3D .NET Converting .FBX to OBJ

Hi,

I have been using the NuGet package Aspose.3D .Net for a purpose of converting FBX file to OBJ and following your example and implementing it by modifying the Aspose.3D.Examples.CSharp.DocumentToStream as follows:

namespace CSharp.Loading_Saving

{

class DocumentToStream

{

public static void Run()

{

// The path to the documents directory.

string MyDir = RunExamples.GetDataDir();

string fromFile = MyDir + “Airbrush.fbx”;

// Load a 3D document into Aspose.3D

Scene scene = new Scene(fromFile);

scene.Save(MyDir + “Package.obj”, FileFormat.WavefrontOBJ);

Console.WriteLine("\nConverted 3D document to stream successfully.");

}

}

}

I do succeed in creating the file, I generated OBJ,STL, 3DS, though all of them end up 1KB size files, which is not realistic in my opinion considering the .fbx file is 7MB

What am I missing not implementing correctly?

Hi


Thank you for contacting support and using Aspose.3D API.

Upon converting FBX to OBJ, STL and 3DS formats, this example code is fine. Did you open the resultant files by any 3D software and also can you open them perfectly? Please provide your source FBX file in this forum thread for testing purposes. We’ll investigate and reply you appropriately.

Note: Please prepare an archive (ZIP) of the source FBX before attaching it to your post.

Hi


In addition to the above reply, please use this sample code and let us know how it goes on your side:

[.NET, C#]
// load an FBX file into Aspose.3D.
Aspose.ThreeD.Scene document = new Aspose.ThreeD.Scene();
document.Open(MyDir + “Document.fbx”);

// Save it in the STL format.
document.Save(MyDir + “Output.obj”, FileFormat.WavefrontOBJ);