LibreMetaverse.ModelFormats
3.2.0
Prefix Reserved
dotnet add package LibreMetaverse.ModelFormats --version 3.2.0
NuGet\Install-Package LibreMetaverse.ModelFormats -Version 3.2.0
<PackageReference Include="LibreMetaverse.ModelFormats" Version="3.2.0" />
<PackageVersion Include="LibreMetaverse.ModelFormats" Version="3.2.0" />
<PackageReference Include="LibreMetaverse.ModelFormats" />
paket add LibreMetaverse.ModelFormats --version 3.2.0
#r "nuget: LibreMetaverse.ModelFormats, 3.2.0"
#:package LibreMetaverse.ModelFormats@3.2.0
#addin nuget:?package=LibreMetaverse.ModelFormats&version=3.2.0
#tool nuget:?package=LibreMetaverse.ModelFormats&version=3.2.0
▗▖ ▄ ▗▖ ▄▄▄ ▗▞▀▚▖▗▖ ▗▖▗▞▀▚▖ ■ ▗▞▀▜▌▄ ▄ ▗▞▀▚▖ ▄▄▄ ▄▄▄ ▗▞▀▚▖
▐▌ ▄ ▐▌ █ ▐▛▀▀▘▐▛▚▞▜▌▐▛▀▀▘▗▄▟▙▄▖▝▚▄▟▌█ █ ▐▛▀▀▘█ ▀▄▄ ▐▛▀▀▘
▐▌ █ ▐▛▀▚▖█ ▝▚▄▄▖▐▌ ▐▌▝▚▄▄▖ ▐▌ ▀▄▀ ▝▚▄▄▖█ ▄▄▄▀ ▝▚▄▄▖
▐▙▄▄▖█ ▐▙▄▞▘ ▐▌ ▐▌ ▐▌
▐▌
LibreMetaverse.ModelFormats
3D model files in, Second Life models out, and the other way round. It loads Collada, glTF 2.0 and Wavefront OBJ into the ModelPrim structures that mesh upload uses, keeping rigging and materials, and it exports meshes you have downloaded, rigged ones included, as glTF, OBJ or Collada.
Archiving · Utilities · Voice.Vivox · Voice.WebRTC
│ built on the client
LibreMetaverse the client: login, managers, inventory
│
Transport UDP socket, reliable circuit, throttle
│
Protocol packets and capability messages
│
Assets the offline data model
├── [ModelFormats] · Rendering.MeshFoundry · Rendering.Simple
│
StructuredData · Imaging.Abstractions
│
Types UUID, vectors, quaternions, colors
on their own: PrimMesher · Imaging.Skia · RLV · LslTools
A name in brackets is this package. Packages use the ones beneath them; the Depends on section below is exact.
What is in it
- Loaders, all behind the
IModelLoaderinterface (andIDiagnosticModelLoader, which adds a list of what it found wrong or changed):ColladaLoaderfor.dae, with skins, joint weights and materials.GltfLoaderfor.gltfand.glb, including skins and, if you ask (LoadPbrTextures), the PBR textures.ObjLoaderfor.obj, with the color, opacity and diffuse texture of its.mtlmaterials.
- Exporters:
GltfExporter(aGltfDocument, or a binary.glbwithToGlb()),ObjExporterandColladaExporter(each gives you the files to write, asExportedFiles). Give them anImageProviderto include textures. - Collada schema classes: the COLLADA object model (the 1.4.1 schema), for when you need to read or write the document yourself.
- Limits you can change: loaders read textures only from beside the model unless you turn off
RestrictTexturesToModelDirectory, refuse files overMaxFileSize(256 MiB) and meshes overMaxVertices(4 million), and cap the number of joints at what a rigged mesh may have.
Example
using LibreMetaverse.Imaging.Skia;
using LibreMetaverse.ImportExport;
var loader = new GltfLoader(new SkiaTextureCodec());
ModelLoadResult result = loader.LoadWithDiagnostics("chair.glb", loadImages: true);
foreach (ModelDiagnostic note in result.Diagnostics)
Console.WriteLine(note);
Console.WriteLine($"{result.Prims.Count} objects ready to upload");
The loaders take an optional ITextureCodec to decode the pictures that come with a model; LibreMetaverse.Imaging.Skia provides one.
To upload what you loaded, pass the ModelPrims to client.Inventory.UploadModelAsync in the LibreMetaverse package, which checks the model against the grid's rules first.
Use it when
You are importing models into Second Life or OpenSim, converting between model formats, or exporting what you can see in the world. The data model (ModelPrim, the upload checks, the level-of-detail generators) is in LibreMetaverse.Assets, so a tool that only validates or converts models can use this package without the client.
Depends on
LibreMetaverse.Assets and LibreMetaverse.Types, and CoreJ2K. It targets .NET Standard 2.1, .NET Framework 4.8.1, and .NET 8, 9 and 10.
Install
dotnet add package LibreMetaverse.ModelFormats
More
- Source, issues and discussion: https://github.com/cinderblocks/libremetaverse
- Moving from 3.1: the migration guide
- License: BSD-3-Clause
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. 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. |
| .NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.1 is compatible. |
| .NET Framework | net481 is compatible. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.8.1
- CoreJ2K (>= 2.4.1)
- LibreMetaverse.Assets (>= 3.2.0)
- LibreMetaverse.Types (>= 3.2.0)
-
.NETStandard 2.1
- CoreJ2K (>= 2.4.1)
- LibreMetaverse.Assets (>= 3.2.0)
- LibreMetaverse.Types (>= 3.2.0)
-
net10.0
- CoreJ2K (>= 2.4.1)
- LibreMetaverse.Assets (>= 3.2.0)
- LibreMetaverse.Types (>= 3.2.0)
-
net8.0
- CoreJ2K (>= 2.4.1)
- LibreMetaverse.Assets (>= 3.2.0)
- LibreMetaverse.Types (>= 3.2.0)
-
net9.0
- CoreJ2K (>= 2.4.1)
- LibreMetaverse.Assets (>= 3.2.0)
- LibreMetaverse.Types (>= 3.2.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 3.2.0 | 34 | 10/13/2026 |