OBJ to 3DS C#

An OBJ file is a geometry defination file containing vertex, vertex normals, vertices, etc. However, a 3DS file can contain information about 3D vector graphics. In certain use cases, you might want to convert an OBJ file to 3DS format. In accordance with such requirements, this article covers how to convert an OBJ file to 3DS format programmatically in C#.

OBJ to 3DS Converter – C# API Installation

Aspose.3D for .NET API supports working with various 3D files from within your applications. You can easily install the API by downloading its reference DLL files from the New Releases page or use the NuGet installation command below:

PM> Install-Package Aspose.3D

How To Convert OBJ to 3DS File in C#

You can convert an OBJ file to a 3DS file with the following steps:

  1. Load the source object file from the disk or a stream.
  2. Convert the OBJ file to 3DS format.

Convert OBJ to 3DS File in C#

Please follow the steps below to convert an OBJ file to 3DS format:

  1. Initialize an instance of the Scene class to load the source object file.
  2. Export the OBJ to 3DS file using the Save method.

The following sample code elaborates how to convert an OBJ file to 3DS format programmatically in C#:

Get Free Temporary License

You can evaluate all of the features in the API in full capacity by requesting a free temporary license.

Online Demo

You may try the OBJ to 3DS Converter web app developed using this API.

Conclusion

In this article, you have learned how to convert an OBJ file to 3DS format. However, the API offers many other features to work with three dimensional scenes and models. You may take a look at different sections in the documentation space. You can contact us at the forum to discuss any of your query or concerns.

See Also

Convert JPG Image to Lithophane in C#