{"id":18850525,"url":"https://github.com/manthanank/angular-threejs-app","last_synced_at":"2026-02-03T09:30:20.356Z","repository":{"id":251246491,"uuid":"836788237","full_name":"manthanank/angular-threejs-app","owner":"manthanank","description":"Angular Three.js Application","archived":false,"fork":false,"pushed_at":"2024-08-01T16:56:59.000Z","size":130,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-17T03:33:48.313Z","etag":null,"topics":["angular","three-js","threejs"],"latest_commit_sha":null,"homepage":"https://angular-threejs-app.vercel.app","language":"TypeScript","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/manthanank.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},"funding":{"github":["manthanank"],"open_collective":"manthanank","buy_me_a_coffee":"manthanank","patreon":"manthanank"}},"created_at":"2024-08-01T14:58:39.000Z","updated_at":"2024-08-05T05:08:38.000Z","dependencies_parsed_at":"2024-08-01T19:04:34.586Z","dependency_job_id":"bb37da04-c2e9-4974-89df-45dfcb2e4a98","html_url":"https://github.com/manthanank/angular-threejs-app","commit_stats":null,"previous_names":["manthanank/angular-threejs-app"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manthanank%2Fangular-threejs-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manthanank%2Fangular-threejs-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manthanank%2Fangular-threejs-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manthanank%2Fangular-threejs-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/manthanank","download_url":"https://codeload.github.com/manthanank/angular-threejs-app/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239786314,"owners_count":19696787,"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":["angular","three-js","threejs"],"created_at":"2024-11-08T03:29:47.589Z","updated_at":"2026-02-03T09:30:18.292Z","avatar_url":"https://github.com/manthanank.png","language":"TypeScript","readme":"# Angular Three.js Application\n\nA basic Angular application that integrates Three.js to render a 3D scene with a rotating cube.\n\n## Features\n\n- Angular framework\n- Three.js for 3D rendering\n- `npm i --save-dev @types/three` for TypeScript support\n- Basic lighting setup with directional and ambient lights\n- Rotating cube using `MeshPhongMaterial` for enhanced visual clarity\n\n## Prerequisites\n\nBefore you begin, ensure you have met the following requirements:\n\n- Node.js (\u003e= 22.x)\n- npm (\u003e= 10.x)\n- Angular CLI (\u003e= 18.x)\n\n## Installation\n\n1. **Clone the repository**\n\n   ```bash\n   git clone https://github.com/manthanank/angular-threejs-app.git\n   cd angular-threejs-app\n   ```\n\n2. **Install dependencies**\n\n   ```bash\n   npm install\n   ```\n\n## Running the Application\n\nTo start the Angular development server and view the application:\n\n```bash\nng serve\n```\n\nNavigate to `http://localhost:4200` in your browser to see the application in action. You should see a rotating 3D cube illuminated by both ambient and directional lights.\n\n## Project Structure\n\n- `src/app/three-scene/`\n  - `three-scene.component.ts`: Contains the logic for setting up the Three.js scene, lights, and cube.\n  - `three-scene.component.html`: Template for the component, which includes a canvas element.\n  - `three-scene.component.css`: Basic styling for the canvas element.\n  \n- `src/app/app.component.html`: Includes the `ThreeSceneComponent` to render it within the main application view.\n\n## Customization\n\n- **Change Cube Color**: Edit the `MeshPhongMaterial` color in `three-scene.component.ts` to change the color of the cube.\n  \n  ```typescript\n  const material = new THREE.MeshPhongMaterial({ color: 0x00ff00 });\n  ```\n\n- **Modify Lighting**: Adjust the intensity or position of the lights in the `createLights` method.\n\n  ```typescript\n  const directionalLight = new THREE.DirectionalLight(0xffffff, 1);\n  directionalLight.position.set(5, 5, 5).normalize();\n  ```\n\n## Contributing\n\nIf you would like to contribute to this project, please fork the repository and submit a pull request with your changes.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n## Contact\n\nFor any inquiries or issues, please contact [Manthan Ankolekar](mailto:manthan.ank46@gmail.com).\n","funding_links":["https://github.com/sponsors/manthanank","https://opencollective.com/manthanank","https://buymeacoffee.com/manthanank","https://patreon.com/manthanank"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanthanank%2Fangular-threejs-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmanthanank%2Fangular-threejs-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanthanank%2Fangular-threejs-app/lists"}