{"id":27198184,"url":"https://github.com/zakarialaoui10/ziko-gl","last_synced_at":"2025-04-09T20:33:06.594Z","repository":{"id":116563029,"uuid":"380831988","full_name":"zakarialaoui10/ziko-gl","owner":"zakarialaoui10","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-14T22:57:24.000Z","size":1353,"stargazers_count":34,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-06T00:02:05.472Z","etag":null,"topics":["javascript","threejs","webgl","ziko-addons","zikojs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/zakarialaoui10.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":"2021-06-27T20:26:37.000Z","updated_at":"2025-02-28T16:06:48.000Z","dependencies_parsed_at":"2023-12-06T23:29:34.748Z","dependency_job_id":"a6931e50-f61a-4626-9d9e-d9f3dac1b269","html_url":"https://github.com/zakarialaoui10/ziko-gl","commit_stats":null,"previous_names":["zakarialaoui10/zikogl","zakarialaoui10/ziko-gl"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zakarialaoui10%2Fziko-gl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zakarialaoui10%2Fziko-gl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zakarialaoui10%2Fziko-gl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zakarialaoui10%2Fziko-gl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zakarialaoui10","download_url":"https://codeload.github.com/zakarialaoui10/ziko-gl/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248107774,"owners_count":21049004,"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":["javascript","threejs","webgl","ziko-addons","zikojs"],"created_at":"2025-04-09T20:33:05.172Z","updated_at":"2025-04-09T20:33:06.579Z","avatar_url":"https://github.com/zakarialaoui10.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"ZikoGl is a [Zikojs](https://github.com/zakarialaoui10/ziko.js) plugin built on the top of [Threejs](https://threejs.org/)\n## Demo  \n [Windows entaglement](https://www.linkedin.com/posts/zakaria-elalaoui-810ab41b8_javascript-zikojs-threejs-activity-7144023650394918913-gatB?utm_source=share\u0026utm_medium=member_desktop)\n## Scene\nZikoGl provides a variety of scene setups to meet diverse rendering needs. Scenes in ZikoGl are an instance of ZikoElement, allowing you to utilize all ZikoElement methods.\nHere are the main scene types:\n ### SceneGl\n SceneGl is used for creating standard WebGL scenes. It supports adding 3D objects and includes various controls for interacting with the scene.\n ```js\n   gl=SceneGl(WIDTH,HEIGHT,BACKGROUND)\n   gl.add(/* ...ZikoGlObject */)\n   gl.useMapControls() \n   gl.useOrthographicCamera() \n ```\n ### SceneCss\n SceneCss allows for the integration of HTML/CSS elements into the 3D scene. This is useful for combining 3D graphics with traditional web elements.\n  ```js\n   gl=SceneCss(WIDTH,HEIGHT,BACKGROUND)\n   gl.add(/* ...ZikoGlObject,...ZikoElement*/)\n   gl.useMapControls()  \n ```\n## Objects \nZikoGl provides a set of predefined objects that you can easily add to your scene. These objects can be styled and positioned as needed.\n ```js\n  let sphere = sphere3(1)\n                .style({\n                    texture: /* Img Video Svg Canvas ...*/\n                })\n                .pos(x,y,z);\n                .useStandardMaterial()\n ```\n## Controls\nZikoGl includes a variety of control mechanisms to manipulate the camera and objects within the scene. These controls enhance user interaction and make it easier to navigate and modify the 3D environment.\n ### Camera Based Controls\n Camera-based controls allow users to navigate the scene by manipulating the camera's position and orientation.\n - ***OrbitControls :*** Enables orbiting around a target.\n - ***MapControls :***\n - ***FlyControls :*** \n - ***TrackballControls :*** \n - ***FirstPersonControls :*** \n - ***PointerControls :*** \n ### Object Based Controls\n Object-based controls are used to manipulate individual objects within the scene.\n\n - ***TransformControls:*** \n ```js\n  let mode=\"translate\"; // use can use either \"rotate\" and scale;\n  ctrl = useTransformControls(object);\n ```\n - ***DragContros:***\n  ```js\n  ctrl = useDragControls([objects]);\n  ctrL.onStart(callback1)\n      .onDrag(callback2)\n ```\n\n \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzakarialaoui10%2Fziko-gl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzakarialaoui10%2Fziko-gl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzakarialaoui10%2Fziko-gl/lists"}