13 releases (8 breaking)

new 0.9.1 Dec 13, 2024
0.9.0 Nov 28, 2024
0.8.0 Nov 20, 2024
0.7.0 Feb 22, 2024
0.3.0 Jul 7, 2022

#193 in Game dev

Download history 993/week @ 2024-08-22 944/week @ 2024-08-29 971/week @ 2024-09-05 996/week @ 2024-09-12 1158/week @ 2024-09-19 1297/week @ 2024-09-26 1099/week @ 2024-10-03 1065/week @ 2024-10-10 1071/week @ 2024-10-17 1151/week @ 2024-10-24 1096/week @ 2024-10-31 1080/week @ 2024-11-07 1064/week @ 2024-11-14 1143/week @ 2024-11-21 1085/week @ 2024-11-28 989/week @ 2024-12-05

4,449 downloads per month
Used in 9 crates (4 directly)

MIT license

185KB
4K SLoC

three-d-asset

crates.io Docs.rs Continuous integration MIT licensed

This is an attempt to do a general crate for loading, saving and editing 3D assets. The idea is that it should be possible to use it as a base for any type of visualization or advanced editing tools, a bit like the image crate, just for 3D assets. Contributions are very much appreciated!

The crate contain a set of common assets that are useful when doing graphics which can be loaded using the io module or constructed manually. When in memory, the assets can be for example be

  • visualised, for example using the three-d crate or in a CPU ray tracer
  • imported into a rust-based game engine
  • edited and saved again

Model

Format Deserialize Serialize Feature
OBJ/MTL obj
GLTF/GLB gltf
STL stl

Texture2D

Format Deserialize Serialize Feature
PNG png
JPEG jpeg
HDR hdr
GIF gif
TGA tga
TIFF tiff
BMP bmp
SVG svg

PointCloud

Format Deserialize Serialize Feature
PCD pcd

VoxelGrid

Format Deserialize Serialize Feature
VOL vol

Dependencies

~2–18MB
~251K SLoC