{"id":26967075,"url":"https://github.com/tsvikas/torch-raytrace","last_synced_at":"2025-09-25T13:57:50.902Z","repository":{"id":285855184,"uuid":"959561731","full_name":"tsvikas/torch-raytrace","owner":"tsvikas","description":"Ray tracing from scratch with PyTorch for educational and illustrative purposes.","archived":false,"fork":false,"pushed_at":"2025-04-03T03:21:04.000Z","size":429,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-03T03:22:29.988Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/tsvikas.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-04-03T01:38:40.000Z","updated_at":"2025-04-03T03:21:07.000Z","dependencies_parsed_at":"2025-04-03T03:22:54.602Z","dependency_job_id":"c8de5abb-ccec-4231-b556-3dc7f1767dc5","html_url":"https://github.com/tsvikas/torch-raytrace","commit_stats":null,"previous_names":["tsvikas/torch-raytrace"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsvikas%2Ftorch-raytrace","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsvikas%2Ftorch-raytrace/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsvikas%2Ftorch-raytrace/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsvikas%2Ftorch-raytrace/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tsvikas","download_url":"https://codeload.github.com/tsvikas/torch-raytrace/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248062997,"owners_count":21041694,"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":[],"created_at":"2025-04-03T08:38:19.014Z","updated_at":"2025-09-25T13:57:45.841Z","avatar_url":"https://github.com/tsvikas.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# torch-raytrace\n\n[![Tests][tests-badge]][tests-link]\n[![uv][uv-badge]][uv-link]\n[![Ruff][ruff-badge]][ruff-link]\n[![Black][black-badge]][black-link]\n[![codecov][codecov-badge]][codecov-link]\n\\\n[![Made Using tsvikas/python-template][template-badge]][template-link]\n\n## Overview\n\nRay tracing from scratch with PyTorch for educational and illustrative purposes.\n\n## Usage\n\nInstall the package using pip, or with a dependency manager like uv:\n\n```bash\npip install git+https://github.com/tsvikas/torch-raytrace.git\n```\n\nand import the package in your code:\n\n```python\nimport raytrace\n\naxis, rays, triangles, screen = raytrace.plot_render.render_pikachu()\nraytrace.plot_render.plot_render(axis, rays, triangles, screen)\n```\n\n![raytracing output](pikachu.png)\n\n## Development\n\n### Getting started\n\n- install [git][install-git], [uv][install-uv].\n- git clone this repo: `git clone https://github.com/tsvikas/torch-raytrace.git`\n- run `uv run just prepare`\n\n### Tests and code quality\n\n- use `uv run just format` to format the code.\n- use `uv run just lint` to see linting errors.\n- use `uv run just test` to run tests.\n- use `uv run just check` to run all the checks (format, lint, test, and pre-commit).\n- Run a specific tool directly, with `uv run pytest`/`ruff`/`mypy`/`black`/...\n\n[black-badge]: https://img.shields.io/badge/code%20style-black-000000.svg\n[black-link]: https://github.com/psf/black\n[codecov-badge]: https://codecov.io/gh/tsvikas/torch-raytrace/graph/badge.svg\n[codecov-link]: https://codecov.io/gh/tsvikas/torch-raytrace\n[install-git]: https://git-scm.com/book/en/v2/Getting-Started-Installing-Git\n[install-uv]: https://docs.astral.sh/uv/getting-started/installation/\n[ruff-badge]: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json\n[ruff-link]: https://github.com/astral-sh/ruff\n[template-badge]: https://img.shields.io/badge/%F0%9F%9A%80_Made_Using-tsvikas%2Fpython--template-gold\n[template-link]: https://github.com/tsvikas/python-template\n[tests-badge]: https://github.com/tsvikas/torch-raytrace/actions/workflows/ci.yml/badge.svg\n[tests-link]: https://github.com/tsvikas/torch-raytrace/actions/workflows/ci.yml\n[uv-badge]: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/uv/main/assets/badge/v0.json\n[uv-link]: https://github.com/astral-sh/uv\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsvikas%2Ftorch-raytrace","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftsvikas%2Ftorch-raytrace","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsvikas%2Ftorch-raytrace/lists"}