{"id":21674994,"url":"https://github.com/alokmenghrajani/php-raytracer","last_synced_at":"2025-07-29T10:09:10.296Z","repository":{"id":144929433,"uuid":"1589791","full_name":"alokmenghrajani/php-raytracer","owner":"alokmenghrajani","description":"A toy ray tracer written in PHP. Comes with sample scenes.","archived":false,"fork":false,"pushed_at":"2024-08-26T05:44:23.000Z","size":205,"stargazers_count":16,"open_issues_count":0,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-12T04:29:37.114Z","etag":null,"topics":["lolz","php","php-raytracer","raytracer","raytracing"],"latest_commit_sha":null,"homepage":"https://www.quaxio.com/raytracer/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alokmenghrajani.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":"2011-04-08T23:55:50.000Z","updated_at":"2025-04-09T10:09:11.000Z","dependencies_parsed_at":"2024-11-25T16:05:27.429Z","dependency_job_id":null,"html_url":"https://github.com/alokmenghrajani/php-raytracer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/alokmenghrajani/php-raytracer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alokmenghrajani%2Fphp-raytracer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alokmenghrajani%2Fphp-raytracer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alokmenghrajani%2Fphp-raytracer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alokmenghrajani%2Fphp-raytracer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alokmenghrajani","download_url":"https://codeload.github.com/alokmenghrajani/php-raytracer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alokmenghrajani%2Fphp-raytracer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267668690,"owners_count":24124966,"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","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["lolz","php","php-raytracer","raytracer","raytracing"],"created_at":"2024-11-25T13:50:33.796Z","updated_at":"2025-07-29T10:09:10.265Z","avatar_url":"https://github.com/alokmenghrajani.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"What is php-raytracer?\n======================\n\nThis is a ray tracing software written in PHP. It's pretty much pointless, I just wrote it \"for the lolz\".\n\nWhat is a ray tracer?\n=====================\n\nA ray tracer is a piece of software which generate 3D images by simulating the physics of light. The result\nis a very realistic 3D image.\n\n[sample image](https://github.com/alokmenghrajani/php-raytracer/blob/master/images/sample_04.png).\n\nIf you want to read more about ray tracing, you should checkout www.povray.org (a real raytracer).\n\nWhy write pointless code?\n=========================\n\nI decided to share various pieces of functional code (dubbed \"for the lolz\"). These pieces of code are\nmeant to illustrate fundamental computer science concepts, so someone looking at this code might learn\nsomething useful.\n\nIf you are teaching programming and you find a use in these projects, feel free to use my code however\nyou like.\n\nCoordinate System\n=================\n\nThe coordinate system is the following:\n* x points right\n* y points up\n* z points away from you\n\nThis system is also known as the \"left-hand\".\n\nRunning the sample code\n=======================\n\nFor Linux or Mac OS:\n--------------------\n```bash\ngit clone git://github.com/alokmenghrajani/php-raytracer.git\ncd php-raytracer\nphp sample_01.php\n```\n\nand then open `images/sample_01.bmp` in your favourite image viewer.\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falokmenghrajani%2Fphp-raytracer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falokmenghrajani%2Fphp-raytracer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falokmenghrajani%2Fphp-raytracer/lists"}