{"id":20395091,"url":"https://github.com/uba/rayden.py","last_synced_at":"2026-05-21T16:43:09.039Z","repository":{"id":166672548,"uuid":"397689872","full_name":"uba/rayden.py","owner":"uba","description":"⚡ Rayden - Simple Python Ray Tracing","archived":false,"fork":false,"pushed_at":"2021-08-18T19:38:17.000Z","size":1970,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-15T10:57:47.088Z","etag":null,"topics":["computer-graphics","python","raytracing","rendering","simulation"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/uba.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":"2021-08-18T17:52:34.000Z","updated_at":"2021-09-01T14:23:01.000Z","dependencies_parsed_at":"2023-07-27T23:15:46.888Z","dependency_job_id":null,"html_url":"https://github.com/uba/rayden.py","commit_stats":null,"previous_names":["uba/rayden.py"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uba%2Frayden.py","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uba%2Frayden.py/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uba%2Frayden.py/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uba%2Frayden.py/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uba","download_url":"https://codeload.github.com/uba/rayden.py/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241945474,"owners_count":20046865,"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":["computer-graphics","python","raytracing","rendering","simulation"],"created_at":"2024-11-15T03:55:20.766Z","updated_at":"2025-12-02T20:04:34.260Z","avatar_url":"https://github.com/uba.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rayden.py\n⚡ Rayden - Simple Python Ray Tracing\n\n## Features\n- **Geometry**: Sphere, Plane, Triangle, Torus\n- **Light**: Point, Area (rectangle)\n- **Material**: Diffuse, Specular, Mirror, Glass, Checkerboard, Procedural Textures, Normal Map\n- **Distributed Ray Tracing**: samples per pixel and shadow\n- **Depth of Field**: depth and dispersion setup\n- Scene description from JSON file\n- Using *numpy* and *multiprocessing*\n- FQS - Fast Quartic and Cubic solver (https://github.com/NKrvavica/fqs) for computing roots of a quartic equation (torus intersection)\n- 2D, 3D and 4D Simplex Noise functions from https://github.com/dangillet/space_tactical/blob/master/simplexnoise.py\n- Colour (https://github.com/vaab/colour) for named colors\n\n## Usage\n```\nrayden.py --help\nusage: rayden [-h] --scene SCENE --output OUTPUT [--samplesPerPixel SPIXEL] [--samplesPerShadow SSHADOW]\n              [--depthComplexity DEPTHCOMPLEXITY] [--dispersion DISPERSION] [--phong]\n\nRayden - Simple Python Ray Tracing\n\noptional arguments:\n  -h, --help            show this help message and exit\n  --scene SCENE, -s SCENE\n                        Scene description file\n  --output OUTPUT, -o OUTPUT\n                        Output file\n  --samplesPerPixel SPIXEL, -sp SPIXEL\n                        Samples per pixel\n  --samplesPerShadow SSHADOW, -ss SSHADOW\n                        Samples per shadow\n  --depthComplexity DEPTHCOMPLEXITY, -dp DEPTHCOMPLEXITY\n                        Depth complexity (depth of field)\n  --dispersion DISPERSION, -dis DISPERSION\n                        Dispersion (depth of field)\n  --phong               Use classical Phong for specular component. Blinn-Phong, otherwise.\n```\n\n## Examples                                                 \n```\nrayden.py -s ./scenes/red-sphere.json -o ./results/red-sphere.png\n```\n\u003cimg src=\"results/red-sphere.png\" width=\"256px\"/\u003e\n\n```\nrayden.py -s ./scenes/red-sphere-shadow.json\n```\n\u003cimg src=\"results/red-sphere-shadow.png\" width=\"256px\"/\u003e\n\n```\nrayden.py -s ./scenes/hello-rayden.json\n```\n\u003cimg src=\"results/hello-rayden.png\" width=\"256px\"/\u003e\n\n```\nrayden.py -s ./scenes/hello-rayden.json --samplesPerPixel 4\n```\n\u003cimg src=\"results/hello-rayden-4px.png\" width=\"256px\"/\u003e\n\n```\nrayden.py -s ./scenes/hello-rayden.json --samplesPerPixel 16\n```\n\u003cimg src=\"results/hello-rayden-16px.png\" width=\"256px\"/\u003e\n\n```\nrayden.py -s ./scenes/hello-rayden.json --samplesPerPixel 16 --samplesPerShadow 4\n```\n\u003cimg src=\"results/hello-rayden-16px-4shadow.png\" width=\"256px\"/\u003e\n\n```\nrayden.py -s ./scenes/hello-rayden.json --samplesPerPixel 16 --samplesPerShadow 4 --depthComplexity 8\n```\n\u003cimg src=\"results/hello-rayden-16px-4shadow-8depth.png\" width=\"256px\"/\u003e\n\n```\nrayden.py -s ./scenes/hello-rayden.json --samplesPerPixel 16 --samplesPerShadow 4 --depthComplexity 8 --dispersion 10\n```\n\u003cimg src=\"results/hello-rayden-16px-4shadow-8depth-10dispersion.png\" width=\"256px\"/\u003e\n\n```\nrayden.py -s ./scenes/hello-rayden.json --samplesPerPixel 16 --samplesPerShadow 4 --depthComplexity 8 --dispersion 16\n```\n\u003cimg src=\"results/hello-rayden-16px-4shadow-8depth-16dispersion.png\" width=\"256px\"/\u003e\n\n```\nrayden.py -s ./scenes/pyramid.json\n```\n\u003cimg src=\"results/pyramid.png\" width=\"256px\"/\u003e\n\n```\nrayden.py -s ./scenes/torus.json\n```\n\u003cimg src=\"results/torus.png\" width=\"256px\"/\u003e\n\n```\nrayden.py -s ./scenes/torus-mirror.json\n```\n\u003cimg src=\"results/torus-mirror.png\" width=\"256px\"/\u003e\n\n```\nrayden.py -s ./scenes/torus-glass.json\n```\n\u003cimg src=\"results/torus-glass.png\" width=\"256px\"/\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuba%2Frayden.py","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuba%2Frayden.py","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuba%2Frayden.py/lists"}