For more details, please visit Convert OBJ File to FBX or glTF GLB File in Java
Last active
December 22, 2021 20:27
-
-
Save aspose-com-gists/959a1d627af6c8f8b9fd80cd9306b407 to your computer and use it in GitHub Desktop.
Convert 3D Object OBJ File to FBX or glTF GLB File Programmatically in 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
//// Load the OBJ in an object of Scene class | |
Scene document = new Scene("template.obj"); | |
// Create an instance of FbxSaveOptions | |
FbxSaveOptions options = new FbxSaveOptions(FileFormat.FBX7500ASCII); | |
// Convert 3D Object OBJ File to FBX | |
document.save("output.fbx", options); |
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
// Load the OBJ in an object of Scene class | |
Scene document = new Scene("template.obj"); | |
// Create an instance of GltfSaveOptions | |
GltfSaveOptions options = new GltfSaveOptions(FileFormat.GLTF2); | |
// Convert 3D Object OBJ File to glTF file | |
document.save("output.gltf", options); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment