{"id":20058785,"url":"https://github.com/quentinwach/ic3d","last_synced_at":"2026-01-04T15:50:21.590Z","repository":{"id":249924184,"uuid":"832953991","full_name":"QuentinWach/IC3D","owner":"QuentinWach","description":".gds to .gltf file conversion and workflow to create photo-real animations of your photonic/electronic integrated circuits.","archived":false,"fork":false,"pushed_at":"2024-07-29T14:15:05.000Z","size":4021,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-27T14:37:21.965Z","etag":null,"topics":["3d","3d-graphics","3d-models","blender","gds","gltf","integrated-circuits","integrated-photonics","photonic-circuit","photonics"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/QuentinWach.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":"2024-07-24T04:26:38.000Z","updated_at":"2025-01-03T20:23:16.000Z","dependencies_parsed_at":"2024-07-29T18:22:14.798Z","dependency_job_id":null,"html_url":"https://github.com/QuentinWach/IC3D","commit_stats":null,"previous_names":["quentinwach/ic3d"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QuentinWach%2FIC3D","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QuentinWach%2FIC3D/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QuentinWach%2FIC3D/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QuentinWach%2FIC3D/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/QuentinWach","download_url":"https://codeload.github.com/QuentinWach/IC3D/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244973701,"owners_count":20541021,"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":["3d","3d-graphics","3d-models","blender","gds","gltf","integrated-circuits","integrated-photonics","photonic-circuit","photonics"],"created_at":"2024-11-13T13:04:03.804Z","updated_at":"2026-01-04T15:50:21.550Z","avatar_url":"https://github.com/QuentinWach.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IC3D\n\n\u003cimg align=\"right\" width=\"40%\" margin=\"15px\" src=\"docs/xyz2.png\"\u003e \n\n\u003cdiv style=\"text-align: center;\"\u003e\n\u003cb\u003eConvert your .gds to .gltf files to create photo-real animations of your photonic/electronic integrated circuits.\u003c/b\u003e\n\u003c/div\u003e\n\u003cbr\u003e\n\n+ ✍🏻 Define your process for each layer easily (i.e. materials, layer heights).\n+ 📐 Converts the `.gds` to the common `.gltf` file format for 3D objects including BDSF material based on the defined process.\n+ 🎨 Import the `.gltf` file into [Blender](https://www.blender.org/) (or any other 3D software of your choice) to create a 3D render.\n\n\nThis code is based on [https://github.com/mbalestrini/GDS2glTF](https://github.com/mbalestrini/GDS2glTF) which in turn is based on [https://github.com/dteal/gdsiistl](https://github.com/dteal/gdsiistl).\nThe main changes here ensure that complex nested cells, flips, and rotations are done correctly so that complex integrated photonics designs can be rendered in 3D.\n\n---\n### 🚀 Get Started\n\n\u003e[!NOTE]\nFeel free to reach out to me on [X (formerly Twitter) @QuentinWach](https://x.com/QuentinWach) if you need help to set this up and get started. I'd love to help and get some feedback. 😃\n\n**1. Install**. [Clone the repository](). Then navigate to the directory in your terminal and activate whatever environment you want to use, then:\n```\npip install -r requirements.txt\n```\nThis installs all the required libraries. Or it should. When using [Anaconda]() you may encounter the error _\"ERROR: Failed building wheel for gdspy\"_.\nYou can resolve this issue by opening the Anaconda shell directly, activating the chosen environment, and running:\n```\nconda install gdspy\n```\nThe run the requirements install command again just to make sure all the requirements are fulfilled.\n\n**2. Create 3D File.** Open `layers.py`. This file defines what each layer represents and what layers you want to export to a 3D file. An example is given which should make it clear how to use it. Once done with that, you can go ahead and test the conversion by running\n```\npython main.py test.gds\n```\nwhich converts the `test.gds` file into a `.gds.gltf` file.\nYou can then import it into any 3D rendering software or game engine of your choice.\n\n**3. Render with Blender.** \n[Blender](https://www.blender.org/) is a free and open-source option to create visualizations of the chip's 3D file. Open Blender and import the `.gltf` file directly which will display it with the proper materials and geometry as defined by your layer/process file.\n\nI recommend watching this [Product Design and Rendering Blender Tutorial](https://www.youtube.com/watch?v=up_UGQIDOFg).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquentinwach%2Fic3d","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fquentinwach%2Fic3d","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquentinwach%2Fic3d/lists"}