All Projects → mmatl → Pyrender

mmatl / Pyrender

Licence: mit
Easy-to-use glTF 2.0-compliant OpenGL renderer for visualization of 3D scenes.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Pyrender

Tinyraycaster
486 lines of C++: old-school FPS in a weekend
Stars: ✭ 1,383 (+137.63%)
Mutual labels:  opengl, rendering, 3d-graphics
Tinyrenderer
A brief computer graphics / rendering course
Stars: ✭ 11,776 (+1923.37%)
Mutual labels:  opengl, rendering, 3d-graphics
Renderhelp
⚡️ 可编程渲染管线实现,帮助初学者学习渲染
Stars: ✭ 494 (-15.12%)
Mutual labels:  opengl, rendering, 3d-graphics
Lighthouse2
Lighthouse 2 framework for real-time ray tracing
Stars: ✭ 542 (-6.87%)
Mutual labels:  opengl, rendering
D3D12Renderer
Custom renderer and physics engine written from scratch in C++/Direct3D 12.
Stars: ✭ 17 (-97.08%)
Mutual labels:  rendering, 3d-graphics
MoravaEngine
2D/3D graphics engine written in C++ language. It currently supports the following graphics APIs: OpenGL 3.3+, Vulkan 1.2, DirectX 11. Its current purpose is to experiment with various CG concepts and techniques.
Stars: ✭ 129 (-77.84%)
Mutual labels:  rendering, 3d-graphics
ign-rendering
C++ library designed to provide an abstraction for different rendering engines. It offers unified APIs for creating 3D graphics applications.
Stars: ✭ 34 (-94.16%)
Mutual labels:  rendering, 3d-graphics
Limonengine
3D FPS game engine with full dynamic lighting and shadows
Stars: ✭ 331 (-43.13%)
Mutual labels:  opengl, 3d-graphics
Mxengine
C++ open source 3D game engine
Stars: ✭ 284 (-51.2%)
Mutual labels:  opengl, 3d-graphics
Hybridrenderingengine
Clustered Forward/Deferred renderer with Physically Based Shading, Image Based Lighting and a whole lot of OpenGL.
Stars: ✭ 563 (-3.26%)
Mutual labels:  opengl, 3d-graphics
Tinyraytracer
A brief computer graphics / rendering course
Stars: ✭ 3,971 (+582.3%)
Mutual labels:  rendering, 3d-graphics
rend3
Easy to use, customizable, efficient 3D renderer library built on wgpu.
Stars: ✭ 546 (-6.19%)
Mutual labels:  rendering, 3d-graphics
RenderingX12
Partially open source: real-time scene rendering using XUSG based on DirectX 12. 纯粹秀秀demo……ただ、デモを見せるため……
Stars: ✭ 16 (-97.25%)
Mutual labels:  rendering, 3d-graphics
Dirt
DIRT: a fast differentiable renderer for TensorFlow
Stars: ✭ 273 (-53.09%)
Mutual labels:  opengl, rendering
Legion-Engine
Rythe is a data-oriented C++17 game engine built to make optimal use of modern hardware.
Stars: ✭ 502 (-13.75%)
Mutual labels:  rendering, 3d-graphics
Rpt
A physically-based path tracer
Stars: ✭ 296 (-49.14%)
Mutual labels:  rendering, 3d-graphics
Ncine
A cross-platform 2D game engine
Stars: ✭ 372 (-36.08%)
Mutual labels:  opengl, rendering
Easy3d
A lightweight, easy-to-use, and efficient C++ library for processing and rendering 3D data
Stars: ✭ 383 (-34.19%)
Mutual labels:  opengl, rendering
f3d
Fast and minimalist 3D viewer.
Stars: ✭ 791 (+35.91%)
Mutual labels:  rendering, 3d-graphics
coin
Coin3D core library
Stars: ✭ 193 (-66.84%)
Mutual labels:  rendering, 3d-graphics

Pyrender

Build Status Documentation Status Coverage Status PyPI version Downloads

Pyrender is a pure Python (2.7, 3.4, 3.5, 3.6) library for physically-based rendering and visualization. It is designed to meet the glTF 2.0 specification from Khronos.

Pyrender is lightweight, easy to install, and simple to use. It comes packaged with both an intuitive scene viewer and a headache-free offscreen renderer with support for GPU-accelerated rendering on headless servers, which makes it perfect for machine learning applications.

Extensive documentation, including a quickstart guide, is provided here.

For a minimal working example of GPU-accelerated offscreen rendering using EGL, check out the EGL Google CoLab Notebook.

GIF of Viewer Damaged Helmet

Installation

You can install pyrender directly from pip.

pip install pyrender

Features

Despite being lightweight, pyrender has lots of features, including:

  • Simple interoperation with the amazing trimesh project, which enables out-of-the-box support for dozens of mesh types, including OBJ, STL, DAE, OFF, PLY, and GLB.
  • An easy-to-use scene viewer with support for animation, showing face and vertex normals, toggling lighting conditions, and saving images and GIFs.
  • An offscreen rendering module that supports OSMesa and EGL backends.
  • Shadow mapping for directional and spot lights.
  • Metallic-roughness materials for physically-based rendering, including several types of texture and normal mapping.
  • Transparency.
  • Depth and color image generation.

Sample Usage

For sample usage, check out the quickstart guide or one of the Google CoLab Notebooks:

Viewer Keyboard and Mouse Controls

When using the viewer, the basic controls for moving about the scene are as follows:

  • To rotate the camera about the center of the scene, hold the left mouse button and drag the cursor.
  • To rotate the camera about its viewing axis, hold CTRL left mouse button and drag the cursor.
  • To pan the camera, do one of the following:
    • Hold SHIFT, then hold the left mouse button and drag the cursor.
    • Hold the middle mouse button and drag the cursor.
  • To zoom the camera in or out, do one of the following:
    • Scroll the mouse wheel.
    • Hold the right mouse button and drag the cursor.

The available keyboard commands are as follows:

  • a: Toggles rotational animation mode.
  • c: Toggles backface culling.
  • f: Toggles fullscreen mode.
  • h: Toggles shadow rendering.
  • i: Toggles axis display mode (no axes, world axis, mesh axes, all axes).
  • l: Toggles lighting mode (scene lighting, Raymond lighting, or direct lighting).
  • m: Toggles face normal visualization.
  • n: Toggles vertex normal visualization.
  • o: Toggles orthographic camera mode.
  • q: Quits the viewer.
  • r: Starts recording a GIF, and pressing again stops recording and opens a file dialog.
  • s: Opens a file dialog to save the current view as an image.
  • w: Toggles wireframe mode (scene default, flip wireframes, all wireframe, or all solid).
  • z: Resets the camera to the default view.

As a note, displaying shadows significantly slows down rendering, so if you're experiencing low framerates, just kill shadows or reduce the number of lights in your scene.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].