Skip to content

Instantly share code, notes, and snippets.

@aspose-com-kb
Last active September 23, 2023 05:02
How to Convert OBJ to FBX using Java. For more details: https://kb.aspose.com/3d/java/how-to-convert-obj-to-fbx-using-java/
import com.aspose.threed.*;
public class Main
{
public static void main(String[] args) throws Exception // Change OBJ to FBX in Java
{
// Set the licenses
new License().setLicense("License.lic");
// Load the input OBJ file
Scene scene = Scene.fromFile("Aspose3D.obj");
// Initialize the FbxSaveOptions object
FbxSaveOptions options = new FbxSaveOptions(FileFormat.FBX7500_BINARY);
// Convert OBJ to FBX format
scene.save("OBJtoFBX.fbx", options);
System.out.println("Done");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment