pg

Python OpenGL Graphics Framework

https://github.com/fogleman/pg

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (8.1%) to scientific vocabulary
Last synced: 11 months ago · JSON representation

Repository

Python OpenGL Graphics Framework

Basic Info
  • Host: GitHub
  • Owner: fogleman
  • License: mit
  • Language: Python
  • Default Branch: master
  • Homepage: http://pg.readthedocs.org/
  • Size: 3.87 MB
Statistics
  • Stars: 211
  • Watchers: 13
  • Forks: 33
  • Open Issues: 10
  • Releases: 0
Created almost 12 years ago · Last pushed almost 3 years ago
Metadata Files
Readme License

README.md

pg: The Python Graphics Framework

pg is a lightweight, high-level OpenGL graphics framework for Python. It is a work in progress.

Tutorial

A basic tutorial is available here:

http://pg.readthedocs.org/en/latest/tutorial.html

Features

Many OpenGL applications have a lot of features in common, but there's a lot of boilerplate involved when using OpenGL. This high-level framework lets you focus on your application-specific functionality instead.

  • shaders
    • compile and link
    • attributes and uniforms
    • built-in shaders for common use-cases
  • vertex buffers
    • optionally interleaved
  • matrices
    • translate, rotate, scale
    • perspective and orthographic projections
    • transpose, determinant, inverse
  • textures
  • geometric shapes
    • sphere, cuboid, plane, cylinder, cone, axes
  • models
    • .obj and .stl file formats
  • WASD movement
    • built-in!
  • windowing and input
    • glfw-based
    • multiple windows

Dependencies

brew tap homebrew/versions
brew install glfw3
pip install Pillow PyOpenGL

Examples

Clone the repository and run main.py to see these and several other examples.

3D Pipes: pipes.py

Screenshot

Gusev Crater: gusev.py

Screenshot

OBJ and STL Models: suzanne.py

Screenshot

Constructive Solid Geometry (CSG): csg.py

Screenshot

Owner

  • Name: Michael Fogleman
  • Login: fogleman
  • Kind: user
  • Location: Cary, NC
  • Company: @Formlabs

Software Engineer at Formlabs

GitHub Events

Total
  • Watch event: 3
Last Year
  • Watch event: 3

Committers

Last synced: about 1 year ago

All Time
  • Total Commits: 226
  • Total Committers: 1
  • Avg Commits per committer: 226.0
  • Development Distribution Score (DDS): 0.0
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Michael Fogleman f****n@g****m 226

Issues and Pull Requests

Last synced: 11 months ago

All Time
  • Total issues: 9
  • Total pull requests: 11
  • Average time to close issues: about 18 hours
  • Average time to close pull requests: 8 months
  • Total issue authors: 3
  • Total pull request authors: 4
  • Average comments per issue: 0.44
  • Average comments per pull request: 1.55
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 8
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • stuaxo (6)
  • kbrafford (2)
  • lwanger (1)
Pull Request Authors
  • dependabot[bot] (8)
  • ssebs (1)
  • kbrafford (1)
  • stuaxo (1)
Top Labels
Issue Labels
Pull Request Labels
dependencies (8)

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 4,346 last-month
  • Total dependent packages: 1
  • Total dependent repositories: 27
  • Total versions: 1
  • Total maintainers: 1
pypi.org: pg

Python OpenGL Graphics Framework

  • Versions: 1
  • Dependent Packages: 1
  • Dependent Repositories: 27
  • Downloads: 4,346 Last month
Rankings
Dependent repos count: 2.8%
Downloads: 3.9%
Average: 4.6%
Stargazers count: 4.7%
Dependent packages count: 4.7%
Forks count: 6.8%
Maintainers (1)
Last synced: 11 months ago

Dependencies

requirements.txt pypi
  • Pillow ==2.5.1
  • PyOpenGL ==3.1.0
setup.py pypi
  • Pillow *
  • PyOpenGL *