{"id":37633755,"url":"https://github.com/time-coder/glass-engine","last_synced_at":"2026-01-16T11:00:46.936Z","repository":{"id":196192996,"uuid":"666351989","full_name":"Time-Coder/Glass-Engine","owner":"Time-Coder","description":"A Python 3D Engine","archived":false,"fork":false,"pushed_at":"2025-09-10T14:03:08.000Z","size":113321,"stargazers_count":44,"open_issues_count":3,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-10-30T08:38:27.093Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/Time-Coder.png","metadata":{"files":{"readme":"README.rst","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-07-14T09:51:12.000Z","updated_at":"2025-10-20T02:04:35.000Z","dependencies_parsed_at":"2024-02-16T03:30:17.523Z","dependency_job_id":"66e08813-3f23-495e-865c-53090f03550d","html_url":"https://github.com/Time-Coder/Glass-Engine","commit_stats":null,"previous_names":["time-coder/glass-engine"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/Time-Coder/Glass-Engine","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Time-Coder%2FGlass-Engine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Time-Coder%2FGlass-Engine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Time-Coder%2FGlass-Engine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Time-Coder%2FGlass-Engine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Time-Coder","download_url":"https://codeload.github.com/Time-Coder/Glass-Engine/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Time-Coder%2FGlass-Engine/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28478106,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T06:30:42.265Z","status":"ssl_error","status_checked_at":"2026-01-16T06:30:16.248Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-16T11:00:35.890Z","updated_at":"2026-01-16T11:00:46.869Z","avatar_url":"https://github.com/Time-Coder.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Glass Engine -- 易用的 Python 3D 渲染引擎\n================================================================\n\n.. figure:: glass_engine/images/glass_engine_logo256.png\n   :align: center\n   :alt: glass_engine_logo\n   :width: 256px\n\n\n**Glass Engine** 是一个相当易用的 Python 实时 3D 渲染引擎，完全免费开源。使用 **Glass Engine** 你可以轻松地在你的 Python 界面程序中嵌入可交互的 3D 画面。\n\n首先，使用以下命令即可完成对 **Glass Engine** 的安装，\n\n::\n\n    pip install glass-engine\n\n如果你是中国区用户，使用以下命令则可以加速安装过程：\n\n::\n\n    pip install glass-engine -i https://mirrors.aliyun.com/pypi/simple\n\n接下来，让我们通过一个简单例子来直观感受一下 **Glass Engine** 的使用过程：\n\n.. highlight:: python3\n\n::\n\n    from glass_engine import *\n    from glass_engine.Geometries import * # 导入所有的基本几何体\n\n    scene, camera, light, floor = SceneRoam() # 创建基本场景\n\n    sphere = Sphere() # 创建一个球体模型\n    sphere.position.z = 1 # 设置球体位置\n    scene.add(sphere) # 将球体添加到场景中\n\n    camera.screen.show() # 相机显示屏显示渲染结果\n\n上述代码首先使用 ``SceneRoam`` 创建出一个基本场景，包括了相机、光源、地板，然后往场景中添加了一个球体模型，最后将相机观察到的视口显示出来。\n\n可以看出，使用 **Glass Engine** 创建 3D 场景无需自定义任何类和任何函数，仅通过对象创建、方法调用的顺序程序结构就可完成场景的构建和显示，由此体现出 **Glass Engine** 高度的易用性，这也是 **Glass Engine** 相比于其他同类 3D 引擎的优势所在。\n\n运行上述程序，你将得到下图所示结果：\n\n.. figure:: glass_engine/images/start.png\n   :alt: glass_engine_simple_scene\n   :align: center\n   :width: 400px\n\n\n你可以通过鼠标右键拖动以旋转视角，还可通过键盘按键 :kbd:`W` :kbd:`A` :kbd:`S` :kbd:`D` :kbd:`E` :kbd:`C` 来在场景中漫游：\n\n- :kbd:`A` 向左移动，:kbd:`D` 向右移动\n- :kbd:`W` 向前移动，:kbd:`S` 向后移动\n- :kbd:`E` 向上移动，:kbd:`C` 向下移动\n\n怎么样，是不是很简单、直观、易用？如果你感兴趣的话，就让我们开始接下来的 3D 渲染之旅吧！\n\n- `文档 \u003chttps://glass-engine-doc.readthedocs.io/zh/latest/\u003e`_\n- `PyPI 索引 \u003chttps://pypi.org/project/glass-engine\u003e`_\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftime-coder%2Fglass-engine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftime-coder%2Fglass-engine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftime-coder%2Fglass-engine/lists"}