{"id":13692507,"url":"https://github.com/l3kn/raytracer","last_synced_at":"2025-05-02T19:32:23.370Z","repository":{"id":67933214,"uuid":"57392314","full_name":"l3kn/raytracer","owner":"l3kn","description":"CPU Raytracer written in the crystal language","archived":true,"fork":false,"pushed_at":"2019-08-24T00:04:42.000Z","size":21189,"stargazers_count":45,"open_issues_count":0,"forks_count":0,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-11-12T18:41:32.563Z","etag":null,"topics":["computer-graphics","crystal","fractal","raytracer"],"latest_commit_sha":null,"homepage":"","language":"Crystal","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/l3kn.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}},"created_at":"2016-04-29T14:53:26.000Z","updated_at":"2024-03-09T22:07:27.000Z","dependencies_parsed_at":"2023-07-29T18:15:19.056Z","dependency_job_id":null,"html_url":"https://github.com/l3kn/raytracer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/l3kn%2Fraytracer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/l3kn%2Fraytracer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/l3kn%2Fraytracer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/l3kn%2Fraytracer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/l3kn","download_url":"https://codeload.github.com/l3kn/raytracer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252095389,"owners_count":21693909,"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","crystal","fractal","raytracer"],"created_at":"2024-08-02T17:00:58.853Z","updated_at":"2025-05-02T19:32:20.231Z","avatar_url":"https://github.com/l3kn.png","language":"Crystal","funding_links":[],"categories":["Misc"],"sub_categories":[],"readme":"# Raytracer\n\n[Documentation](https://docs.leonrische.me/raytracer/)\n\n\n## Scenes\n\n### `scenes/cornell_box.cr`\n\n![](images/cornell.png)\n\n_400x400px, 20000 samples / pixel, time: ~4h_\n\n### `scenes/light2.cr`\n\n![](images/light2.png)\n\n_800x400px, 10000 samples / pixel, time: 2h15m_\n\n### `scenes/teapot.cr`\n\n![](images/teapot_lambertian.png)\n![](images/teapot_metal.png)\n![](images/teapot_dielectric.png)\n\n_400x400px, 100 samples / pixel, no lights, 2464 triangles with interpolated normals, time: 64s, 60s, 120s_\n\nThe cube map in this example is\n\"[Yokohama 3](http://www.humus.name/Textures/Yokohama3.zip)\" by\n[Emil \"Humus\" Persson](http://www.humus.name/index.php?page=Textures),\nlicensed under [CC BY 3.0](http://creativecommons.org/licenses/by/3.0/)\n\n### `scenes/minecraft.cr`\n\n![](images/minecraft.png)\n\n_800x400px, 100 samples / pixel, no lights, time: 410s_\n\n### `scenes/fractal1.cr`\n\n![](images/fractal1.png)\n\n_400x400px, 5 samples / pixel, no lights, time: 3m10s_\n\n### `scenes/fractal2.cr`\n\n![](images/fractal2.png)\n\n_800x400px, 3 samples / pixel, no lights, time: 18s_\n\n### `scenes/fractal5.cr`\n\n![](images/fractal5.png)\n\n_400x400px, 5 samples / pixel, no lights, time: 30s_\n\n### [WIP] `scenes/sponza.cr`\n\n![](images/sponza.png)\n\n_400x400px, 5000 samples / pixel, 1 light, time: 13h_\n\nModel: [Crytek Sponza](http://www.crytek.com/cryengine/cryengine3/downloads)\n\n### [WIP] `scenes/sponza_phong.cr`\n\n![](images/sponza_phong.png)\n\n_400x400px, 5 samples / pixel, 1 light, phong lighting, time: 37s_\n\nModel: [Crytek Sponza without Banner](http://graphics.cs.williams.edu/data/meshes.xml#2)\n\n### `scenes/metaball.cr`\n\n![](images/metaball.png)\n\n_800x400px, 10 samples / pixel, no lights, time: 5m_\n\nThe cube map in this example is\n\"[Yokohama](http://www.humus.name/Textures/Yokohama.zip)\" by\n[Emil \"Humus\" Persson](http://www.humus.name/index.php?page=Textures),\nlicensed under [CC BY 3.0](http://creativecommons.org/licenses/by/3.0/)\n\nIn order to run this example:\n\n1. Download the [set of cubemaps](http://www.humus.name/Textures/Yokohama.zip)\n2. Unzip the folder\n3. Convert each .jpg to .png\n    e.g. using `mogrify -format png *.jpg` etc.\n    (`convert` is part of the imagemagick)\n4. Copy all six png files (`negx.png`, `negy.png`, `negz.png`, `posx.png`, `posy.png`, `posz.png`) to `cube_maps/Yokohama`\n5. Mirror `negx.png`, e.g. using `convert negx.png -flop negx.png` \n\n## Resources\n\n\n* [Raytracing in One Weekend](http://in1weekend.blogspot.de/2016/01/ray-tracing-in-one-weekend.html)\n* [Raytracing: the Next Week](http://in1weekend.blogspot.de/2016/01/ray-tracing-second-weekend.html)\n* [Raytracing: the Rest of your Life](http://in1weekend.blogspot.de/2016/03/ray-tracing-rest-of-your-life.html)\n* [Modeling with Distance Functions](http://iquilezles.org/www/articles/distfunctions/distfunctions.htm)\n* [Distance Estimated 3D Fractals (I-V)](http://blog.hvidtfeldts.net/index.php/2011/06/distance-estimated-3d-fractals-part-i/)\n\n## Models\n\n* `teapot.obj` (Utah teapot, used by `scenes/teapot1.cr`)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fl3kn%2Fraytracer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fl3kn%2Fraytracer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fl3kn%2Fraytracer/lists"}