{"id":24093725,"url":"https://github.com/m3str3/rust3d","last_synced_at":"2026-06-12T11:31:48.573Z","repository":{"id":270133780,"uuid":"909424619","full_name":"M3str3/Rust3D","owner":"M3str3","description":"An interactive 3D viewer written in Rust, for .obj models.","archived":false,"fork":false,"pushed_at":"2024-12-28T18:00:21.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-10T10:34:55.994Z","etag":null,"topics":["geometry","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/M3str3.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-12-28T17:00:18.000Z","updated_at":"2024-12-28T18:00:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"ca9c3a74-713c-4d07-9049-5fca1f96dd4d","html_url":"https://github.com/M3str3/Rust3D","commit_stats":null,"previous_names":["m3str3/rust3d"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/M3str3%2FRust3D","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/M3str3%2FRust3D/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/M3str3%2FRust3D/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/M3str3%2FRust3D/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/M3str3","download_url":"https://codeload.github.com/M3str3/Rust3D/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241008963,"owners_count":19893259,"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":["geometry","rust"],"created_at":"2025-01-10T10:34:12.284Z","updated_at":"2026-06-12T11:31:48.520Z","avatar_url":"https://github.com/M3str3.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rust3D\n\nA basic 3D viewer written in Rust for rotating, zooming, and loading `.obj` files.\n\n## Features\n\n- Rotate the 3D model.\n- Zoom in and out.\n- Load `.obj` files dynamically.\n\n## Controls\n\n| **Key/Mouse**         | **Action**               |\n|------------------------|-------------------------|\n| **Left Click + Drag**  | Rotate the model        |\n| **Space**              | Toggle auto-rotation    |\n| **B**                  | Change background color |\n| **M**                  | Change object color     |\n| **Up / +**             | Zoom in                 |\n| **Down / -**           | Zoom out                |\n| **L**                  | Load a new `.obj` file  |\n| **Escape**             | Exit the program        |\n\n## How It Works\nhttps://github.com/user-attachments/assets/ac892f1e-226b-4b58-ac04-caeccd5660a2\n### Rotation Matrices\nThe 3D point \\((x, y, z)\\) is rotated using standard rotation matrices:\n\n- **X-axis Rotation**:\n```math\n\\begin{cases}\nx' = x \\\ny' = y \\cos\\theta - z \\sin\\theta \\\nz' = y \\sin\\theta + z \\cos\\theta \n\\end{cases}\n```\n\n- **Perspective Projection**:\n```math\n\\begin{cases}\nu = x \\cdot \\frac{\\text{scale}}{z + \\text{distance}} + \\frac{\\text{screen\\_width}}{2} \\\nv = -y \\cdot \\frac{\\text{scale}}{z + \\text{distance}} + \\frac{\\text{screen\\_height}}{2}\n\\end{cases}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm3str3%2Frust3d","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fm3str3%2Frust3d","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm3str3%2Frust3d/lists"}