{"id":37039437,"url":"https://github.com/simulation-tree/cameras","last_synced_at":"2026-01-14T04:40:48.446Z","repository":{"id":314764116,"uuid":"850432136","full_name":"simulation-tree/cameras","owner":"simulation-tree","description":null,"archived":false,"fork":false,"pushed_at":"2025-09-24T03:04:10.000Z","size":51,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-09T23:23:57.307Z","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/simulation-tree.png","metadata":{"files":{"readme":"README.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-08-31T18:48:34.000Z","updated_at":"2025-09-24T03:01:11.000Z","dependencies_parsed_at":"2025-09-14T17:37:43.186Z","dependency_job_id":"30fc0726-2546-464c-a467-a2508facf595","html_url":"https://github.com/simulation-tree/cameras","commit_stats":null,"previous_names":["simulation-tree/cameras"],"tags_count":50,"template":false,"template_full_name":null,"purl":"pkg:github/simulation-tree/cameras","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simulation-tree%2Fcameras","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simulation-tree%2Fcameras/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simulation-tree%2Fcameras/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simulation-tree%2Fcameras/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simulation-tree","download_url":"https://codeload.github.com/simulation-tree/cameras/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simulation-tree%2Fcameras/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28409753,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"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":[],"created_at":"2026-01-14T04:40:47.916Z","updated_at":"2026-01-14T04:40:48.439Z","avatar_url":"https://github.com/simulation-tree.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cameras\n\nCameras for rendering.\n\n### Projection data\n\nExtending from the `rendering` project, an extension method is available to fetch\nthe projection and view matrices from a `Camera`:\n```cs\nusing World world = new World();\nCamera mainCamera = new(world, CameraFieldOfView.FromDegrees(90f));\nCameraProjection cameraProjection = mainCamera.GetProjection();\n(Matrix4x4 projection, Matrix4x4 view) = cameraProjection;\n```\n\n### Ray from screen point\n\nWhen a screen point is available, a ray can be calculated from the camera's perspective:\n```cs\nVector2 mousePosition = ...\nVector2 screenPoint = camera.Destination.GetScreenPointFromPosition(mousePosition);\n(Vector3 origin, Vector3 direction) = cameraProjection.GetRayFromScreenPoint(screenPoint);\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimulation-tree%2Fcameras","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimulation-tree%2Fcameras","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimulation-tree%2Fcameras/lists"}