{"id":18582305,"url":"https://github.com/ubpa/raytracinginoneweekend","last_synced_at":"2025-07-07T08:38:18.448Z","repository":{"id":55276341,"uuid":"190033194","full_name":"Ubpa/RayTracingInOneWeekend","owner":"Ubpa","description":"rewrite Ray Tracing in a Weekend","archived":false,"fork":false,"pushed_at":"2019-06-13T14:14:36.000Z","size":308,"stargazers_count":17,"open_issues_count":0,"forks_count":5,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-24T20:38:14.814Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","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/Ubpa.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}},"created_at":"2019-06-03T15:32:52.000Z","updated_at":"2025-02-01T01:54:44.000Z","dependencies_parsed_at":"2022-08-14T19:02:37.243Z","dependency_job_id":null,"html_url":"https://github.com/Ubpa/RayTracingInOneWeekend","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/Ubpa%2FRayTracingInOneWeekend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ubpa%2FRayTracingInOneWeekend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ubpa%2FRayTracingInOneWeekend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ubpa%2FRayTracingInOneWeekend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ubpa","download_url":"https://codeload.github.com/Ubpa/RayTracingInOneWeekend/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248208688,"owners_count":21065205,"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":"2024-11-07T00:10:32.253Z","updated_at":"2025-04-10T11:36:05.144Z","avatar_url":"https://github.com/Ubpa.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ray Tracing in One Weekend\n\n![RTOneWeekend.jpg](assets/RTOneWeekend.jpg)\n\n## 简介\n\n本项目是对 [Ray Tracing in One Weekend](http://www.realtimerendering.com/raytracing/Ray%20Tracing%20in%20a%20Weekend.pdf) 的重构。\n\n笔记为 [notes](notes.md) \n\n因为 GitHub 不支持公式，推荐用 [Typora](https://www.typora.io/) 查看 md 文件。\n\n程序生成的图片格式为 PPM，可用[格式工厂](http://www.pcfreetime.com/formatfactory/CN/index.html)将其转换为 PNG 格式后再查看。\n\n## 环境\n\n### Windows\n\n- VS 2017\n- [CMake](https://cmake.org/) 3.1 以上\n\n### Linux\n\n- C++11\n- [CMake](https://cmake.org/) 3.1 以上\n\n## 安装\n\n### Windows\n\n搭建工程\n\n```bash\nmkdir build\ncd build\ncmake ..\nstart RayTracingInOneWeekend.sln\n```\n\n或者直接运行 `setup.bat` \n\n打开 VS 后\n\n在解决方案中，右键 `CMakePredefinedTargets/INSTALL`，点击“生成”，各种 exe 就会安装在 `bin/` 中了。\n\n### Linux\n\n```shell\nmkdir build\ncd build\ncmake ..\nmake\nmake install\n```\n\n这样所有的程序都在 `bin/` 中，执行这些程序，输出结果在 `data/` 中\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fubpa%2Fraytracinginoneweekend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fubpa%2Fraytracinginoneweekend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fubpa%2Fraytracinginoneweekend/lists"}