Last active
September 23, 2023 05:02
-
-
Save aspose-com-kb/46425a6d3a5efdb874c3e7805f8e368e to your computer and use it in GitHub Desktop.
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/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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