{"id":21020184,"url":"https://github.com/bringhurst/webgl-unproject","last_synced_at":"2025-05-15T07:33:54.615Z","repository":{"id":1342276,"uuid":"1288303","full_name":"bringhurst/webgl-unproject","owner":"bringhurst","description":"A Javascript port of the standard gluUnProject function used for mapping window coordinates to object coordinates.","archived":false,"fork":false,"pushed_at":"2022-02-06T21:56:17.000Z","size":6,"stargazers_count":13,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-03T05:32:00.859Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/bringhurst.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}},"created_at":"2011-01-24T16:38:26.000Z","updated_at":"2022-02-06T21:56:20.000Z","dependencies_parsed_at":"2022-07-21T11:29:05.977Z","dependency_job_id":null,"html_url":"https://github.com/bringhurst/webgl-unproject","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/bringhurst%2Fwebgl-unproject","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bringhurst%2Fwebgl-unproject/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bringhurst%2Fwebgl-unproject/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bringhurst%2Fwebgl-unproject/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bringhurst","download_url":"https://codeload.github.com/bringhurst/webgl-unproject/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254297140,"owners_count":22047434,"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-19T10:36:05.017Z","updated_at":"2025-05-15T07:33:54.337Z","avatar_url":"https://github.com/bringhurst.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"WebGL Unproject\n===============\n\nThis is a port of the usual gluUnProject function to javascript for use in WebGL applications. To use, read the included JSDoc for the unProject function -- it closely matches the API for the common C variant of the same function.\n\nThis code was originally written for picking support in Lanyard (http://github.com/fintler/lanyard). See lanyard.BasicOrbitView for a working example.\n\nSimple Example\n--------------\n```js\nconst viewportArray = [\n    viewportOriginX, viewportOriginY, viewportWidth, viewportHeight\n];\n\n// The results of the operation will be stored in this array.\nconst modelPointArrayResults = [];\n\nconst success = GLU.unProject(\n    windowPointX, windowPointY, windowPointZ,\n    modelViewMatrix, projectionMatrix,\n    viewportArray, modelPointArrayResults);\n\nmodelPointArrayResults[0] = \u003c'x' model coordinate value\u003e\nmodelPointArrayResults[1] = \u003c'y' model coordinate value\u003e\nmodelPointArrayResults[2] = \u003c'z' model coordinate value\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbringhurst%2Fwebgl-unproject","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbringhurst%2Fwebgl-unproject","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbringhurst%2Fwebgl-unproject/lists"}