{"id":43051382,"url":"https://github.com/subdavis/raytracer","last_synced_at":"2026-01-31T10:37:02.567Z","repository":{"id":78496162,"uuid":"51123640","full_name":"subdavis/raytracer","owner":"subdavis","description":"My implementation of a ray tracer using native c++","archived":false,"fork":false,"pushed_at":"2016-07-18T13:48:19.000Z","size":43,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-11T23:38:56.466Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C++","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/subdavis.png","metadata":{"files":{"readme":"README.txt","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":"2016-02-05T03:27:59.000Z","updated_at":"2018-06-23T09:13:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"7deb5fcf-055f-4a20-88c6-b2b974633d94","html_url":"https://github.com/subdavis/raytracer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/subdavis/raytracer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subdavis%2Fraytracer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subdavis%2Fraytracer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subdavis%2Fraytracer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subdavis%2Fraytracer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/subdavis","download_url":"https://codeload.github.com/subdavis/raytracer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subdavis%2Fraytracer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28938788,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T10:18:23.202Z","status":"ssl_error","status_checked_at":"2026-01-31T10:18:22.693Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":[],"created_at":"2026-01-31T10:36:59.673Z","updated_at":"2026-01-31T10:37:02.553Z","avatar_url":"https://github.com/subdavis.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"  _____               _______                        _____  ______          _____  __  __ ______ \n |  __ \\             |__   __|                      |  __ \\|  ____|   /\\   |  __ \\|  \\/  |  ____|\n | |__) |__ _ _   _     | |_ __ __ _  ___ ___ _ __  | |__) | |__     /  \\  | |  | | \\  / | |__   \n |  _  // _\" | | | |    | | '__/ _\" |/ __/ _ \\ '__| |  _  /|  __|   / /\\ \\ | |  | | |\\/| |  __|  \n | | \\ \\ (_| | |_| |    | | | | (_| | (_|  __/ |    | | \\ \\| |____ / ____ \\| |__| | |  | | |____ \n |_|  \\_\\__,_|\\__, |    |_|_|  \\__,_|\\___\\___|_|    |_|  \\_\\______/_/    \\_\\_____/|_|  |_|______|\n               __/ |                                                                             \n              |___/     Written by Brandon Davis with C++ and GNU/Linux                              \n\n. . . . . . . . . . . . . . . . . . . .    ================ Compile Instructions ================ \n. . . . . . . . . . . . . . . . . . . .\n. . . . . . . . . . . . . . . . . . . .     + unzip this archive\n. . . . . . . . █ █ █ █ . . . . . . . .     + open a terminal and cd to the source directory\n. . . . . . . █ █ █ █ █ █ . . . . . . .     + run \"./build.sh\"\n_ _ _ █ █ █ _ █ █ █ █ █ █ _ █ █ █ _ _ _     + run \"./run.sh\"  (runtime ~15 seconds)\n_ _ _ █ █ █ _ █ █ █ █ █ █ _ █ █ █ _ _ _     + images will be located in ./Images\n_ _ _ _ _ _ _ █ █ █ █ █ █ _ _ _ _ _ _ _\n_ _ _ _ _ _ _ _ █ █ █ █ _ _ _ _ _ _ _ _\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\n\n======================================== Build Requirements =====================================\n|\n|   + Any OS with a BASH shell\n|   + The g++ compiler (I used version 5.2.1)\n|       * Can be installed on ubuntu-based systems via \"sudo apt-get install build-essential\"\n|   + An image viewer that supports the .ppm format\n|       * Alternatively, use imagemagick to create a .png from the .ppm output\n|       * \"sudo apt-get install imagemagick\"\n|       * \"cd Images\"\n|       * \"./convert.sh\"\n|   + OpenGL is NOT required.\n|\n======================================= Description of Parts ====================================\n|\n|   This project is build from a few components:\n|   + A room, which contains:\n|       * Drawables: these implement an intersect function and a getOrtho, which returns an orthogonal ray for any point in space.\n|           - Sphere\n|           - Plane\n|           - Each drawable has a PhongProp - Phong properties that the tracer will use to compute lighting\n|       * A camera: a point in threespace to make the origin of each ray.\n|       * Any number of lights, each of which will be computed spearately in the trace function.\n|       * A View window: Can be set to any 3 coplanar points in space.  \n|       * The room will generate initial camera rays based on the camera and view window\n|   + The Tracer, which only implements perspective tracing but could be easily refactored to allow for orthographic tracing.\n|       * Tracer logic: check if a camera ray has any intersections, then compute lighting for the closest intersect point it finds.\n|   + The Renderer, which encapsulates antialiasing and image resolution.  \n|       * The same room can be passed twice to the same tracer with different renderers to get either\n|           - Different resolutions\n|           - A different representation of the room (i.e. the ASCII preview you see)\n|   + Helper Classes such as\n|       * Color: normalized at the end of rendering based on the global min and max \n|       * Vector3: used for both vectors and points\n|       * Ray: Which wraps a vector and a point together, and is the basic unit for checking intersection\n|\n|   For more detailed information, see inline comments.\n|\n=================================================================================================","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsubdavis%2Fraytracer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsubdavis%2Fraytracer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsubdavis%2Fraytracer/lists"}