{"id":19750735,"url":"https://github.com/game4all/bevy_vox_mesh","last_synced_at":"2025-04-30T10:30:57.668Z","repository":{"id":50652416,"uuid":"355193372","full_name":"Game4all/bevy_vox_mesh","owner":"Game4all","description":"A bevy engine plugin for loading magica voxel files directly in bevy as usable meshes.","archived":false,"fork":false,"pushed_at":"2024-01-12T15:25:43.000Z","size":196,"stargazers_count":32,"open_issues_count":5,"forks_count":8,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-09-17T00:38:02.834Z","etag":null,"topics":["asset-loader","bevy","bevy-engine","magicavoxel","voxel"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Game4all.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-04-06T13:11:49.000Z","updated_at":"2024-07-31T22:45:00.000Z","dependencies_parsed_at":"2023-01-23T12:10:15.233Z","dependency_job_id":null,"html_url":"https://github.com/Game4all/bevy_vox_mesh","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Game4all%2Fbevy_vox_mesh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Game4all%2Fbevy_vox_mesh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Game4all%2Fbevy_vox_mesh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Game4all%2Fbevy_vox_mesh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Game4all","download_url":"https://codeload.github.com/Game4all/bevy_vox_mesh/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224208333,"owners_count":17273674,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["asset-loader","bevy","bevy-engine","magicavoxel","voxel"],"created_at":"2024-11-12T02:38:36.970Z","updated_at":"2024-11-12T02:38:37.562Z","avatar_url":"https://github.com/Game4all.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1\u003e\n\u003ccode\u003ebevy_vox_mesh\u003c/code\u003e\n\u003c/h1\u003e\n\n\u003ca href=\"https://crates.io/crates/bevy_vox_mesh\"\u003e\n\u003cimg height=\"24\" src=\"https://img.shields.io/crates/v/bevy_vox_mesh?style=for-the-badge\"/\u003e\n\u003c/a\u003e\n\nA plugin for the bevy engine which allows loading magica voxel `.vox` files directly into usable meshes. This uses mesh vertex coloring.\n\n## Bevy compatibility\n\n| Bevy version | Plugin version |\n| ------------ | -------------- |\n| 0.5          | 0.1, 0.2       |\n| 0.8          | 0.4            |\n| 0.9          | 0.5            |\n| 0.10         | 0.6            |\n| 0.11         | 0.7, 0.7.1     |\n| 0.12         | 0.8            |\n\n## Usage\n\n![demo screenshot](https://raw.githubusercontent.com/Game4all/bevy_vox_mesh/master/assets/screenshot.PNG)\n\n```rust\n\nuse bevy::prelude::*;\nuse bevy_vox_mesh::VoxMeshPlugin;\nuse std::f32::consts::PI;\n\nfn main() {\n    App::default()\n        .add_plugins(DefaultPlugins)\n        .add_plugin(VoxMeshPlugin::default())\n        .add_startup_system(setup)\n        .run();\n}\n\nfn setup(\n    mut commands: Commands,\n    mut meshes: ResMut\u003cAssets\u003cMesh\u003e\u003e,\n    mut stdmats: ResMut\u003cAssets\u003cStandardMaterial\u003e\u003e,\n    assets: Res\u003cAssetServer\u003e,\n) {\n    commands.spawn(Camera3dBundle {\n        transform: Transform::from_xyz(-2.0, 2.5, 5.0).looking_at(Vec3::ZERO, Vec3::Y),\n        ..Default::default()\n    });\n\n    commands.spawn(PbrBundle {\n        transform: Transform::from_scale((0.01, 0.01, 0.01).into())\n            * Transform::from_rotation(Quat::from_axis_angle(Vec3::Y, PI)),\n        mesh: assets.load(\"chicken.vox\"),\n        material: stdmats.add(Color::rgb(1., 1., 1.).into()),\n        ..Default::default()\n    });\n}\n\n\n\n```\n\nTake a look in the `examples/` directory for a complete working example.\n\n## Acknowledgements\n\nThis asset loader is powered by the awesome [`block-mesh-rs`](https://github.com/bonsairobo/block-mesh-rs) crate.\n\nPorted to bevy 0.12.0 thanks to @baranyildirim.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgame4all%2Fbevy_vox_mesh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgame4all%2Fbevy_vox_mesh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgame4all%2Fbevy_vox_mesh/lists"}