Giter Site home page Giter Site logo

d-k-e / pyside-opengl-tutorials Goto Github PK

View Code? Open in Web Editor NEW
26.0 4.0 8.0 4.23 MB

Tutorials on the new QtGui based OpenGL api of PySide2

License: GNU General Public License v3.0

Python 46.21% Jupyter Notebook 53.02% GLSL 0.77%
opengl-tutorial opengl pyside2 qt-for-python qt5-widgets python3 qt-opengl qt-for-python-opengl opengl-api pyside-opengl-tutorials

pyside-opengl-tutorials's Introduction

pyside-opengl-tutorials

Tutorials on the new QtGui based OpenGL api of PySide2

Requirements

In the main folder which contains the setup.py execute the following commands on the terminal.

  • Create a virtual env with conda conda create -n pyside-opengl-tuto

  • Activate your virtual env conda activate pyside-opengl-tuto

  • Install python conda install -c conda-forge python=3

  • Install requirements with pip pip install -r requirements.txt

  • Install PyOpenGL_accelerate conda install -c anaconda pyopengl-accelerate

  • Normally PyOpenGL_accelerate installation automatically installs the PyOpenGL, check this by verfying your list of packages conda list

  • Setup the rest of the packages using pip pip install .

Description

There are unfortunately not a lot of tutorials on using pyside2 for rendering OpenGL. This is simply a collection of tutorials on using PySide2 for rendering opengl graphics. If you are not an experienced user with opengl the code can be strange and daunting at times due to low level nature of OpenGL though I try to comment as much as I can. If you are an absolute beginner, I suggest you to follow at least the Getting Started section from the infamous https://learnopengl.com/

If you are somewhat experienced with opengl but just want to test PySide2 as front end to it. These tutorials should give you a rough idea about how to initialize GL, how to render your drawing loop, as well as passing data to your scene like textures or keystrokes etc.

The first tutorial triangle is heavily commented, the rest of them simply points out differences with respect to c/c++ or to other tutorials.

The tutorials are linear in nature, so you can use it alongside with other learning ressources for OpenGL.

If you feel like you can contribute to tutorials, they are always welcomed.

List of Tutorials

As stated in the description the list is progressive.

  1. Hello Triangle
  2. Rectangle
  3. Multiple VAO-VBO couples
  4. Render an Image - Texture
  5. Hello Cube - 3D rendering
  6. Event Handling

pyside-opengl-tutorials's People

Contributors

d-k-e avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.