{"id":13444045,"url":"https://github.com/mmatl/pyrender","last_synced_at":"2025-05-14T10:09:02.004Z","repository":{"id":38419124,"uuid":"166606982","full_name":"mmatl/pyrender","owner":"mmatl","description":"Easy-to-use glTF 2.0-compliant OpenGL renderer for visualization of 3D scenes.","archived":false,"fork":false,"pushed_at":"2024-08-02T02:34:11.000Z","size":29093,"stargazers_count":1298,"open_issues_count":182,"forks_count":226,"subscribers_count":19,"default_branch":"master","last_synced_at":"2024-10-29T15:33:13.707Z","etag":null,"topics":["3d-graphics","gltf-viewer","opengl","python","rendering","visualization"],"latest_commit_sha":null,"homepage":"http://pyrender.readthedocs.io/","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/mmatl.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":"2019-01-20T00:11:18.000Z","updated_at":"2024-10-29T09:00:56.000Z","dependencies_parsed_at":"2024-11-19T04:16:43.552Z","dependency_job_id":"be590715-b09d-4f6b-8c39-18f0d4720196","html_url":"https://github.com/mmatl/pyrender","commit_stats":{"total_commits":215,"total_committers":23,"mean_commits":9.347826086956522,"dds":"0.17674418604651165","last_synced_commit":"a59963ef890891656fd17c90e12d663233dcaa99"},"previous_names":[],"tags_count":45,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmatl%2Fpyrender","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmatl%2Fpyrender/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmatl%2Fpyrender/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmatl%2Fpyrender/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mmatl","download_url":"https://codeload.github.com/mmatl/pyrender/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247423513,"owners_count":20936626,"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-graphics","gltf-viewer","opengl","python","rendering","visualization"],"created_at":"2024-07-31T03:02:17.569Z","updated_at":"2025-04-09T03:09:51.534Z","avatar_url":"https://github.com/mmatl.png","language":"Python","readme":"# Pyrender\n\n[![Build Status](https://travis-ci.org/mmatl/pyrender.svg?branch=master)](https://travis-ci.org/mmatl/pyrender)\n[![Documentation Status](https://readthedocs.org/projects/pyrender/badge/?version=latest)](https://pyrender.readthedocs.io/en/latest/?badge=latest)\n[![Coverage Status](https://coveralls.io/repos/github/mmatl/pyrender/badge.svg?branch=master)](https://coveralls.io/github/mmatl/pyrender?branch=master)\n[![PyPI version](https://badge.fury.io/py/pyrender.svg)](https://badge.fury.io/py/pyrender)\n[![Downloads](https://pepy.tech/badge/pyrender)](https://pepy.tech/project/pyrender)\n\nPyrender is a pure Python (2.7, 3.4, 3.5, 3.6) library for physically-based\nrendering and visualization.\nIt is designed to meet the [glTF 2.0 specification from Khronos](https://www.khronos.org/gltf/).\n\nPyrender is lightweight, easy to install, and simple to use.\nIt comes packaged with both an intuitive scene viewer and a headache-free\noffscreen renderer with support for GPU-accelerated rendering on headless\nservers, which makes it perfect for machine learning applications.\n\nExtensive documentation, including a quickstart guide, is provided [here](https://pyrender.readthedocs.io/en/latest/).\n\nFor a minimal working example of GPU-accelerated offscreen rendering using EGL,\ncheck out the [EGL Google CoLab Notebook](https://colab.research.google.com/drive/1pcndwqeY8vker3bLKQNJKr3B-7-SYenE?usp=sharing).\n\n\n\u003cp align=\"center\"\u003e\n  \u003cimg width=\"48%\" src=\"https://github.com/mmatl/pyrender/blob/master/docs/source/_static/rotation.gif?raw=true\" alt=\"GIF of Viewer\"/\u003e\n  \u003cimg width=\"48%\" src=\"https://github.com/mmatl/pyrender/blob/master/docs/source/_static/damaged_helmet.png?raw=true\" alt=\"Damaged Helmet\"/\u003e\n\u003c/p\u003e\n\n## Installation\nYou can install pyrender directly from pip.\n\n```bash\npip install pyrender\n```\n\n## Features\n\nDespite being lightweight, pyrender has lots of features, including:\n\n* Simple interoperation with the amazing [trimesh](https://github.com/mikedh/trimesh) project,\nwhich enables out-of-the-box support for dozens of mesh types, including OBJ,\nSTL, DAE, OFF, PLY, and GLB.\n* An easy-to-use scene viewer with support for animation, showing face and vertex\nnormals, toggling lighting conditions, and saving images and GIFs.\n* An offscreen rendering module that supports OSMesa and EGL backends.\n* Shadow mapping for directional and spot lights.\n* Metallic-roughness materials for physically-based rendering, including several\ntypes of texture and normal mapping.\n* Transparency.\n* Depth and color image generation.\n\n## Sample Usage\n\nFor sample usage, check out the [quickstart\nguide](https://pyrender.readthedocs.io/en/latest/examples/index.html) or one of\nthe Google CoLab Notebooks:\n\n* [EGL Google CoLab Notebook](https://colab.research.google.com/drive/1pcndwqeY8vker3bLKQNJKr3B-7-SYenE?usp=sharing)\n\n## Viewer Keyboard and Mouse Controls\n\nWhen using the viewer, the basic controls for moving about the scene are as follows:\n\n* To rotate the camera about the center of the scene, hold the left mouse button and drag the cursor.\n* To rotate the camera about its viewing axis, hold `CTRL` left mouse button and drag the cursor.\n* To pan the camera, do one of the following:\n    * Hold `SHIFT`, then hold the left mouse button and drag the cursor.\n    * Hold the middle mouse button and drag the cursor.\n* To zoom the camera in or out, do one of the following:\n    * Scroll the mouse wheel.\n    * Hold the right mouse button and drag the cursor.\n\nThe available keyboard commands are as follows:\n\n* `a`: Toggles rotational animation mode.\n* `c`: Toggles backface culling.\n* `f`: Toggles fullscreen mode.\n* `h`: Toggles shadow rendering.\n* `i`: Toggles axis display mode (no axes, world axis, mesh axes, all axes).\n* `l`: Toggles lighting mode (scene lighting, Raymond lighting, or direct lighting).\n* `m`: Toggles face normal visualization.\n* `n`: Toggles vertex normal visualization.\n* `o`: Toggles orthographic camera mode.\n* `q`: Quits the viewer.\n* `r`: Starts recording a GIF, and pressing again stops recording and opens a file dialog.\n* `s`: Opens a file dialog to save the current view as an image.\n* `w`: Toggles wireframe mode (scene default, flip wireframes, all wireframe, or all solid).\n* `z`: Resets the camera to the default view.\n\nAs a note, displaying shadows significantly slows down rendering, so if you're\nexperiencing low framerates, just kill shadows or reduce the number of lights in\nyour scene.\n","funding_links":[],"categories":["Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmmatl%2Fpyrender","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmmatl%2Fpyrender","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmmatl%2Fpyrender/lists"}