10 releases (6 breaking)

0.7.0 Feb 22, 2024
0.6.0 Aug 10, 2023
0.5.0 Mar 14, 2023
0.4.0 Nov 2, 2022
0.1.0 May 29, 2022

#366 in Parser implementations

Download history 283/week @ 2023-12-20 168/week @ 2023-12-27 339/week @ 2024-01-03 476/week @ 2024-01-10 418/week @ 2024-01-17 308/week @ 2024-01-24 301/week @ 2024-01-31 320/week @ 2024-02-07 350/week @ 2024-02-14 615/week @ 2024-02-21 667/week @ 2024-02-28 519/week @ 2024-03-06 483/week @ 2024-03-13 459/week @ 2024-03-20 470/week @ 2024-03-27 558/week @ 2024-04-03

2,091 downloads per month
Used in 8 crates (4 directly)

MIT license

175KB
3.5K 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 

Texture2D

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

PointCloud

Format Deserialize Serialize Feature
PCD pcd

VoxelGrid

Format Deserialize Serialize Feature
VOL vol

Dependencies

~2–21MB
~266K SLoC