MIT License

项目介绍

sandrofigo/VoxReader 是一个托管在 GitHub 上的开源项目,主要使用 C# 编写,采用 MIT License 许可证,目前获得 92 个 Star、5 次 Fork。

仓库全名
sandrofigo/VoxReader
开源许可证
MIT License
Star 数
92
Fork 数
5
未关闭 Issue
2

README 摘要

VoxReader A C# library to read .vox files created with MagicaVoxel Currently supported features At the moment it is possible to read: the name, size, position and rotation of all models all individual voxels including their color and position the palette that was used for the model the notes stored in the palette all raw data related to the scene miscellaneous raw data Usage Unity The package is also available on…

完整内容见 GitHub 原始 README 或本页 。

常见问题

VoxReader 用什么语言开发?

主要使用 C# 编写,采用 MIT License 许可证,目前有 92 个 Star。

VoxReader 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 VoxReader 的源码?

可以直接克隆仓库:git clone https://github.com/sandrofigo/VoxReader.git,默认分支为 develop;安装与运行步骤见仓库 README。

VoxReader 最近还在维护吗?

仓库最近一次更新为 5月13日,当前有 2 个未关闭 Issue;Star 数为 92,可作为社区活跃度的参考。

语言占比

Batchfile
C#
PowerShell
Shell

Release

README

VoxReader

logo

latest openupm downloads test

A C# library to read .vox files created with MagicaVoxel


Currently supported features

At the moment it is possible to read:

  • the name, size, position and rotation of all models
  • all individual voxels including their color and position
  • the palette that was used for the model
  • the notes stored in the palette
  • all raw data related to the scene
  • miscellaneous raw data

Usage

// Read .vox file
IVoxFile voxFile = VoxReader.Read("my_awesome_model.vox");

// Access models of .vox file
IModel[] models = voxFile.Models;

// Access voxels of first model in the file
Voxel[] voxels = models[0].Voxels;

// Access properties of a voxel
Vector3 position = voxels[0].GlobalPosition;
Color color = voxels[0].Color;

// Access palette of .vox file
IPalette palette = voxFile.Palette;

// Access raw data of a chunk
byte[] rawData = voxFile.Chunks[0].Content;

Unity

The package is also available on OpenUPM for the Unity game engine. Follow the manual installation or the CLI installation instructions on the OpenUPM page to install the package in your project.

Extending the library

The file format specification made by ephtracy is available at .vox file format

Support this project with a ⭐️, report an issue or if you feel adventurous and would like to extend the functionality open a pull request.

评论

暂无评论