ActDim.Three
1.0.1
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package ActDim.Three --version 1.0.1
NuGet\Install-Package ActDim.Three -Version 1.0.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ActDim.Three" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ActDim.Three" Version="1.0.1" />
<PackageReference Include="ActDim.Three" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ActDim.Three --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ActDim.Three, 1.0.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package ActDim.Three@1.0.1
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=ActDim.Three&version=1.0.1
#tool nuget:?package=ActDim.Three&version=1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
ActDim.Three
ActDim.Three is a 3D graphics math, geometry, scene graph, and serialization library for .NET inspired by standard three.js data structures and workflows.
Features
- Linear Algebra & 3D Math Primitives: High-performance 3D math types (
Vector3,Matrix4,Euler,Quaternion,Color). - Scene Graph Hierarchy:
Scene,Element,BufferGeometry,Camera(PerspectiveCamera,OrthographicCamera), and Lights (AmbientLight,DirectionalLight,PointLight,SpotLight). - Standard Materials:
MeshBasicMaterial,MeshStandardMaterial,MeshPhongMaterial,MeshLambertMaterial,LineBasicMaterial,PointsMaterial. - High-Performance Typed Arrays: Efficient buffer memory abstractions (
Float32Array,Float64Array,Int32Array,Uint8Array,Uint8ClampedArray). - JSON Scene Serialization: Built-in
ThreeSerializerfor serializing and deserializing 3D scene graphs (SceneDocument,DocumentGraph) compatible with JSON interchange formats.
Installation
Install via the .NET CLI:
dotnet add package ActDim.Three
Or via Package Manager Console:
Install-Package ActDim.Three
Quick Start Examples
1. Scene & Camera Setup
using ActDim.Three.Cameras;
using ActDim.Three.Core;
using ActDim.Three.Geometries;
using ActDim.Three.Lights;
using ActDim.Three.Materials;
using ActDim.Three.Math;
using ActDim.Three.Scenes;
// Create 3D scene
var scene = new Scene();
// Add ambient light and directional light
var ambientLight = new AmbientLight(new Color(0x404040));
scene.Add(ambientLight);
var dirLight = new DirectionalLight(new Color(0xffffff), 1.0f);
dirLight.Position.Set(5, 10, 7.5f);
scene.Add(dirLight);
// Create perspective camera
var camera = new PerspectiveCamera(75.0f, 16.0f / 9.0f, 0.1f, 1000.0f);
camera.Position.Set(0, 0, 5);
2. Scene Graph Serialization
using ActDim.Three.Scenes;
using ActDim.Three.Serialization;
var scene = new Scene();
// ... configure scene geometry & materials ...
// Serialize 3D scene to JSON string
string jsonString = ThreeSerializer.Serialize(scene);
// Deserialize 3D scene from JSON
Scene restoredScene = ThreeSerializer.DeserializeScene(jsonString);
License
This project is licensed under the MIT License.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- Newtonsoft.Json (>= 13.0.4)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on ActDim.Three:
| Package | Downloads |
|---|---|
|
ActDim.Three.NewtonsoftJson
Newtonsoft.Json serializer adapters and custom converters for ActDim.Three 3D scene graphs and typed array buffers. |
GitHub repositories
This package is not used by any popular GitHub repositories.