HTML JPG PDF XML 3DS
  Product Family
GLTF

Convert 3DS to GLTF via Python

Render 3DS as GLTF without any 3D modeling and rendering software.

How to Convert 3DS to GLTF Using Python

In order to convert 3DS to GLTF, we’ll use

Aspose.3D for Python via .NET

API which is a feature-rich, powerful and easy to use document manipulation and conversion API for Python. Open

NuGet

package manager, search for Aspose.3D and install. You may also use the following command from the Package Manager Console.

Command line


pip install aspose-3d

Steps to Convert 3DS to GLTF via Python

Python programmers can easily load & convert 3DS files to GLTF in just a few lines of code.

  1. Load 3DS file via the from_file of Scene class
  2. Create an instance of AmfSaveOptions
  3. Set GLTF specific properties for advanced conversion
  4. Call the Scene.save method
  5. Pass the output path with GLTF file extension & object of GltfSaveOptions
  6. Check resultant GLTF file at specified path

System Requirements

Before running the Python conversion code, make sure that you have the following prerequisites.

  • Microsoft Windows or Linux based OS.
  • Python 3.5 or later.
  • Aspose.3D for Python referenced in your project.
  • A 3D File Processing Library to manipulate 3D files without any modeling and rendering software. The 3D API supports Discreet3DS, WavefrontOBJ, FBX (ASCII, Binary), STL (ASCII, Binary), Universal3D, Collada, glTF, GLB, PLY, DirectX, Google Draco file formats and more. Developers can create, read, convert, modify and control the substance of 3D document formats easily.

    3DS What is 3DS File Format?

    A file with 3DS extension represents 3D Studio (DOS) mesh file format used by Autodesk 3D Studio. Autodesk 3D Studio has been in 3D file format market since 1990s and has now evolved to 3D Studio MAX for working with 3D modeling, animation and rendering. A 3DS file contains data for 3D representation of scenes and images and is one of the popular file formats for 3D data import and export. It considers information like camera locations, Mesh data, lighting information, viewport configurations, smoothing group data, bitmap references and attributes to create vertices and polygons for rendering a scene.

    Read More

    gltf What is gltf File Format?

    glTF (GL Transmission Format) is a 3D file format that stores 3D model information in JSON format. The use of JSON minimizes both the size of 3D assets and the runtime processing needed to unpack and use those assets. It was adopted for the efficient transmission and loading of 3D scenes and models by applications. glTF was developed by the Khronos Group 3D Formats Working Group and is also described as JPEG of 3D by its creators. The format defines an extensible, common publishing format for 3D content tools and services that streamlines authoring workflows and enables interoperable use of content across the industry. The intention behind the creation of glTF file format was to define an extensible, common publishing format for 3D content tools and services that should streamline authoring workflows and enable interoperable use of content across the industry. It minimizes runtime processing by applications using WebGL and other APIs.

    Read More

    Other Supported Conversions

    You can also convert 3DS into many other file formats including few listed below.

    3DS TO AMF (Additive Manufacturing Format)
    3DS TO DAE (Digital Asset Exchange)
    3DS TO FBX (3D Format)
    3DS TO HTML (Hyper Text Markup Language)
    3DS TO OBJ (3D File Format)
    3DS TO PDF (Portable Document Format)
    3DS TO PLY (Polygon File Format)
    3DS TO RVM (AVEVA Plant Design Model)
    3DS TO STL (Interchangeable 3D Surface Geometry)
    3DS TO U3D (Universal 3D)