Getting Started
Getting Started with Aspose.3D FOSS for .NET
Welcome to Aspose.3D, a free, open-source .NET library for loading, building, and exporting 3D scenes. This guide takes you from a fresh environment to a working scene in minutes.
Prerequisites
| Requirement | Detail |
|---|---|
| .NET SDK | .NET 10.0 or later |
| IDE | Visual Studio 2022+, Rider, or VS Code with C# extension |
| OS | Windows, macOS, or Linux |
| Package manager | NuGet (included with .NET SDK) |
Installation
- Create or open a .NET project:
dotnet new console -n My3DApp
cd My3DApp- Add the NuGet package:
dotnet add package Aspose.3D --version 26.1.0- Verify the reference compiles:
using Aspose.ThreeD;
var scene = new Scene();
Console.WriteLine("Aspose.3D loaded successfully.");dotnet runSee the Installation Guide for more detail on project setup and verification.
What You Can Do
Once installed you can immediately:
- Load OBJ, STL, glTF 2.0 / GLB, FBX, COLLADA, PLY, and 3MF files via
Scene.Open() - Inspect scene hierarchies: traverse
Nodetrees, readMeshgeometry, access vertex normals and UVs - Transform nodes: set
Translation,Rotation(viaQuaternion), andScalethrough theTransformclass - Apply materials: assign
LambertMaterial,PhongMaterial, orPbrMaterialto nodes - Export to any supported format with per-format
SaveOptions - Build geometry: create
Box,Sphere, andCylinderprimitives and convert them toMeshviaToMesh()
Quick Start
Load a 3D file, print the scene hierarchy, and re-save in GLB format:
using Aspose.ThreeD;
var scene = new Scene();
scene.Open("input.obj");
Console.WriteLine($"Root children: {scene.RootNode.ChildNodes.Count}");
foreach (var node in scene.RootNode.ChildNodes)
{
var entityType = node.Entity?.GetType().Name ?? "no entity";
Console.WriteLine($" {node.Name} [{entityType}]");
}
scene.Save("output.glb");
Console.WriteLine("Saved output.glb");Next Steps
- Installation Guide: Detailed NuGet setup, project configuration, and verification
- Developer Guide: Format support, mesh operations, materials, and transforms
- Features and Functionalities: Deep-dive into every feature area with C# examples