{"id":41669549,"url":"https://github.com/datavorous/tinytracer","last_synced_at":"2026-01-24T17:36:37.674Z","repository":{"id":314711111,"uuid":"1056444436","full_name":"datavorous/tinytracer","owner":"datavorous","description":"A tiny path tracer written in vanilla python to produce realistic renders","archived":false,"fork":false,"pushed_at":"2025-12-18T08:03:23.000Z","size":18611,"stargazers_count":14,"open_issues_count":6,"forks_count":5,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-18T14:39:38.603Z","etag":null,"topics":["pathtracing","python","raytracer","raytracing","winter-of-open-source"],"latest_commit_sha":null,"homepage":"","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/datavorous.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-14T05:25:34.000Z","updated_at":"2025-12-18T08:13:26.000Z","dependencies_parsed_at":"2025-09-14T10:17:11.955Z","dependency_job_id":null,"html_url":"https://github.com/datavorous/tinytracer","commit_stats":null,"previous_names":["datavorous/smol-path-tracer","datavorous/tinytracer"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/datavorous/tinytracer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datavorous%2Ftinytracer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datavorous%2Ftinytracer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datavorous%2Ftinytracer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datavorous%2Ftinytracer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/datavorous","download_url":"https://codeload.github.com/datavorous/tinytracer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datavorous%2Ftinytracer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28732759,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-24T10:24:43.181Z","status":"ssl_error","status_checked_at":"2026-01-24T10:24:36.112Z","response_time":89,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["pathtracing","python","raytracer","raytracing","winter-of-open-source"],"created_at":"2026-01-24T17:36:37.586Z","updated_at":"2026-01-24T17:36:37.662Z","avatar_url":"https://github.com/datavorous.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TinyTracer\n\n\u003ca href=\"https://winter-of-open-source.vercel.app/\"\u003e\u003cimg src=\"media/banner.png\"\u003e\u003c/a\u003e\n\n[![made-with-python](https://img.shields.io/badge/Made%20with-Python-1f425f.svg)](https://www.python.org/)\n\u003ca href=\"https://github.com/psf/black\"\u003e\u003cimg alt=\"Code style: black\" src=\"https://img.shields.io/badge/code%20style-black-000000.svg\"\u003e\u003c/a\u003e\n\n**TinyTracer** is a Python path tracer that simulates light paths to generate realistic images.  \n\nThis project is part of **[Winter of Open Source](https://winter-of-open-source.vercel.app/)**, where contributors can improve the engine, add materials, implement new shapes, optimize performance etc.\n\n## Table of Contents\n\n- [Installation](#installation)\n- [Demo Images](#demo-images)\n- [Usage](#usage)\n- [How to Contribute](#how-to-contribute)\n- [Code of Conduct](#code-of-conduct)\n- [References](#references)\n\n## Demo Images\n\n\u003cimg src=\"tinytracer/output/demos/demo1.png\" width=\"500\"\u003e   \n\u003cimg src=\"tinytracer/output/demos/demo3.png\" width=\"500\"\u003e\n\u003cimg src=\"tinytracer/output/demos/demo2.png\" width=\"500\"\u003e\n\u003cimg src=\"tinytracer/output/demos/demo5.png\" width=\"500\"\u003e\n\u003cimg src=\"tinytracer/output/demos/demo6.png\" width=\"500\"\u003e\n\n\n\u003e Some demos may look noisy due to low sampling for faster renders.\n\n## Features\n\nImplemented so far:\n- Sphere and Quadrilateral geometry\n- Four material types: Lambertian, Metal, Dielectric, Emissive\n- Multiprocessing for faster rendering\n- Basic caching optimizations\n\n## Installation\n\n```bash\ngit clone https://github.com/datavorous/tinytracer.git\ncd tinytracer\n\npython3 -m venv .venv\nsource .venv/bin/activate # Linux/macOS\n# .venv\\Scripts\\activate # Windows\n\npip install -e .\npip install uv pytest\n\n```\n\n\u003e The generated image will be in `.ppm` format, inside the `output` folder.\n\n## Usage\nRun the TinyTracer renderer using `uv`:\n```bash\nuv run tinytracer/main.py\n```\nAdvanced controls:\n```bash\nuv run main.py [-help] [--format {png,ppm}] [--width WIDTH] [--height HEIGHT] [--samples SAMPLES] [--output OUTPUT] [--depth DEPTH] [--aspectratio ASPECTRATIO]\n```\n\nThe generated image will be in `.ppm` format by default at `tinytracer\\output` folder.\n\nTo run tests:\n```bash\nuv run pytest\n```\n### Available Arguments :\n- `width` To adjust width of output image.\n    ```bash\n    uv run  main.py --width=INTEGER # Default = 400\n    ``` \n    \n- `height` To adjust width of output image.\n    \n    ```bash\n    uv run main.py --height=INTEGER # Default = 225\n    ``` \n- `aspectratio` To adjust aspect ratio of output image (OVERRIDDEN if both height and width given)\n\n    ```bash\n    uv run main.py --aspectratio=X:Y # Default = 16:9\n    ``` \n- `samples` To adjust number of samples per pixel.\n\n    ```bash\n    uv run main.py --samples=INTEGER # Default = 200\n    ``` \n- `depth` To adjust depth of ray tracing.\n\n    ```bash\n    uv run main.py --depth=INTEGER # Default = 50\n    ``` \n- `output` To select file output path \u003ci\u003e( INCLUDING FILENAME )\u003c/i\u003e.\n\n    ```bash\n    uv run main.py --output=PATH # Default = tinytracer/output/image.ppm\n    ``` \n- `format` To select file output format [ png / ppm ]\n\n    ```bash\n    uv run main.py --format={png/ppm} # Default = ppm\n    ``` \n\n\n\n\n\n\n## How to Contribute\n\nThis project has issues prepared for contributors at all levels: [Open Issues](https://github.com/datavorous/tinytracer/issues)\n\n\u003e Each issue is labeled by difficulty (`good-first-issue`, `easy`, `medium`, `hard`) and has clear instructions.\n\nPlease follow [CONTRIBUTING.md](CONTRIBUTING.md) for step-by-step guidance on:\n\n* Setting up your environment\n* Choosing and assigning issues\n* Branching, committing, and creating PRs\n* Code style and formatting rules (using `black`)\n* PR acceptance criteria and points system\n\n\u003e [!WARNING]  \n\u003e Work on only one issue at a time.\n\n## Code of Conduct\n\nPlease follow [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md) to ensure a welcoming and productive environment for all contributors.\n\n## References\n\n* [Ray Tracing in One Weekend](https://raytracing.github.io/) (Part 1 and Part 2)\n* [Understanding the Viewport](https://www.reddit.com/r/GraphicsProgramming/comments/1ej5ffo/raytracing_in_one_weekend_not_understanding_the/)\n* See [explained.md](media/explained.md) for additional explanations.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatavorous%2Ftinytracer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatavorous%2Ftinytracer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatavorous%2Ftinytracer/lists"}