Skip to content

Instantly share code, notes, and snippets.

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