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
- How To Convert OBJ to 3DS File in C#
- Convert OBJ to 3DS File 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:
- Load the source object file from the disk or a stream.
- 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:
- Initialize an instance of the Scene class to load the source object file.
- 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.
You may try the OBJ to 3DS Converter web app developed using this API.
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.