{"id":16541762,"url":"https://github.com/simnalamburt/obj-rs","last_synced_at":"2025-04-08T09:10:52.462Z","repository":{"id":24378646,"uuid":"27778212","full_name":"simnalamburt/obj-rs","owner":"simnalamburt","description":":shipit: Wavefront obj parser for Rust","archived":false,"fork":false,"pushed_at":"2025-03-24T07:22:30.000Z","size":1202,"stargazers_count":80,"open_issues_count":12,"forks_count":36,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-01T18:13:57.975Z","etag":null,"topics":["crates","glium","rust","wavefront"],"latest_commit_sha":null,"homepage":"https://docs.rs/obj-rs","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/simnalamburt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-12-09T17:30:24.000Z","updated_at":"2025-03-24T07:22:35.000Z","dependencies_parsed_at":"2024-03-26T07:31:09.091Z","dependency_job_id":"b95347bb-7c0c-46fa-a439-29f7d45972b7","html_url":"https://github.com/simnalamburt/obj-rs","commit_stats":{"total_commits":298,"total_committers":12,"mean_commits":"24.833333333333332","dds":0.08389261744966447,"last_synced_commit":"be75f0cd5138355f3eaa2ec29c91a317e590ad04"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simnalamburt%2Fobj-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simnalamburt%2Fobj-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simnalamburt%2Fobj-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simnalamburt%2Fobj-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simnalamburt","download_url":"https://codeload.github.com/simnalamburt/obj-rs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247809964,"owners_count":20999816,"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":["crates","glium","rust","wavefront"],"created_at":"2024-10-11T18:55:49.706Z","updated_at":"2025-04-08T09:10:52.423Z","avatar_url":"https://github.com/simnalamburt.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"obj-rs [![version]][crates.io]\n========\n[Wavefront .obj] parser for Rust. It handles both `.obj` and `.mtl` formats.\nSee [Documentation] for the further details.\n\n```toml\n[dependencies]\nobj-rs = \"0.7\"\n```\n```rust\nuse std::fs::File;\nuse std::io::BufReader;\nuse obj::{load_obj, Obj};\n\nlet input = BufReader::new(File::open(\"tests/fixtures/dome.obj\"))?;\nlet model: Obj = load_obj(input)?;\n\n// Do whatever you want\nmodel.vertices;\nmodel.indices;\n```\n\n\u003cimg alt=\"Rendered image of cute Rilakkuma\" src=\"https://i.hyeon.me/obj-rs/bear.png\" width=300\u003e\n\n\u0026nbsp;\n\nGlium support\n--------\n**obj-rs** supports [glium] out of the box.\n\n```toml\n[dependencies]\nglium = \"0.35\"\nobj-rs = { version = \"0.7\", features = [\"glium\"] }\n```\n```rust\nuse std::fs::File;\nuse std::io::BufReader;\nuse obj::{load_obj, Obj};\n\nlet input = BufReader::new(File::open(\"rilakkuma.obj\")?);\nlet obj: Obj = load_obj(input)?;\n\nlet vb = obj.vertex_buffer(\u0026display)?;\nlet ib = obj.index_buffer(\u0026display)?;\n```\n\nPlease see the [working sample] for the further details. Use can execute it with\nthe command below.\n```bash\ncargo run -p sampleapp\n```\n\n\u0026nbsp;\n\n--------\n*obj-rs* is primarily distributed under the terms of both the [Apache License\n(Version 2.0)] and the [MIT license]. See [COPYRIGHT] for details.\n\n[version]: https://badgen.net/crates/v/obj-rs\n[crates.io]: https://crates.io/crates/obj-rs\n\n[Wavefront .obj]: https://en.wikipedia.org/wiki/Wavefront_.obj_file\n[Documentation]: https://docs.rs/obj-rs/\n[glium]: https://github.com/tomaka/glium\n[working sample]: sampleapp/src/main.rs\n\n[MIT license]: LICENSE-MIT\n[Apache License (Version 2.0)]: LICENSE-APACHE\n[COPYRIGHT]: COPYRIGHT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimnalamburt%2Fobj-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimnalamburt%2Fobj-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimnalamburt%2Fobj-rs/lists"}