background preloader


Facebook Twitter


Complete Python OpenGL examples. Caddd - Project Hosting on Google Code. CADDD (the three D's represent 3D) aims to be a 3D open source cross platform CAD system.

caddd - Project Hosting on Google Code

It is currently in its infancy. Building block programs will be hosted here to aid in the journey to the final product. Update: The bulk of all required technologies have been integrated together in The OpenCASCADE Challenge! Feel free to download and try it out. Pyftgl - Project Hosting on Google Code. Visvis - Project Hosting on Google Code. Introduction Visvis is a pure Python library for visualization of 1D to 4D data in an object oriented way.

visvis - Project Hosting on Google Code

Essentially, visvis is an object oriented layer of Python on top of OpenGl, thereby combining the power of OpenGl with the usability of Python. A Matlab-like interface in the form of a set of functions allows easy creation of objects (e.g. plot(), imshow(), volshow(), surf()). Utc - Project Hosting on Google Code.

Ultra Tank-chan!

utc - Project Hosting on Google Code

Is a space-combat-sim in the vein of Volition's FreeSpace series, with some influences from Bandai-Namco's Ace Combat games. Ultra Tank-chan! Is notable for the number of players it supports (96 over 6 teams in the official release), its drop-in/drop-out multiplayer design, its low system requirements (it runs extremely well on an Asus eee 900, which is even more impressive when considering that the entire game was written in Python), and its quirky, likely unique, art style, which has been described as "an epic space battle in a lava lamp. " Look! Moving pictures! Because it's always nice to know what you're potentially getting (or not getting, in the case of vapourware) before you commit time to it, we have prepared actual videos of complete, five-minute games of Ultra Tank-chan! These videos were recorded at 15FPS, and were encoded using XviD at low bitrates, with a 50% reduction in resolution, to make them sub-15MB.

PyOpenGL_LAB: A Small Lab for OpenGL Tests Without Compilation! - 3D Tech News, Pixel Hacking, Data Visualization and 3D Programming - 1,000,000 random lines PyOpenGL_LAB is a small application directly derived from GeeXLab.

PyOpenGL_LAB: A Small Lab for OpenGL Tests Without Compilation! - 3D Tech News, Pixel Hacking, Data Visualization and 3D Programming -

It’s a ready to use PyOpenGL platform. What does it mean? Simply that you can code OpenGL instructions and very quickly see the result without the compilation step. PyOpenGL_LAB already includes the PyOpenGL package so you don’t have to worry about it. You can download PyOpenGL_LAB here (only a direct left-click allows the download): Unzip PyOpenGL_LAB somewhere and launch PyOpenGL_LAB.exe. In this image you can see 10,000 lines rendered with an OpenGL display list. PyOpenGL_LAB has 2 important files: and

Prototyping OpenGL applications with PyOpenGL. More of a wiki page than an article, containing notes, tips and guidelines for writing OpenGL applications with PyOpenGL. 1 Introduction If you have never encountered OpenGL, then you might not be aware of the fact that it is an excellent 3D graphics API and an absolute pleasure to work with.

Prototyping OpenGL applications with PyOpenGL

One caveat however is that setting up your application to use OpenGL can be... kind of painful. The struggle comes from the fact that each GUI library handles the OpenGL rendering context slightly differently and some GUIs require various tricks . Also initializing the viewport can be done in several different ways and getting it right (while trying to hack some code together) can also be painful, especially if you have to recompile every time you change something. 2 PyOpenGL PyOpenGL, as the name implies, is the Pythonic OpenGL API. 2.1 Advantages of PyOpenGL. Introduction. I've been playing with PyGame and PyOpenGL for a bit over a year and a half, and I would like to share what I have learnt. My focus has been on creating 2d sprite based games using OpenGL rendering. In these articles, I will walk through the process of building up a framework for making 2d games using PyOpenGL and Python.

I assume that the reader knows Python, and has some familiarity with OpenGL. Why OpenGL instead of SDL surfaces in PyGame? It's easy to get hardware acceleration using OpenGL, and OpenGL has more powerful graphics manipulating abilities. While I do my best to explain what the code is doing, but to really understand the functions used the PyGame and PyOpenGL documentation are great resources. Example1 - The humble beginning. Example2a - We add functions to load an image to a texture, and to render it efficiently. Example2b - Next we wrap the texture function in a object class with some additional functionality. 3-D Programming with Python. Graphics programming can be tedious.

3-D Programming with Python

Linking against large 3-D libraties increases compilation time. Because a lot of fine tuning is often necessary for everything to look perfect, stretches of minor changes buried between long builds are commonly encountered. These lengthy debug cycles make 3-D graphics an ideal application for prototyping in a high-level language like Python. Extensions to a number of 3-D graphics APIs are available for Python.

For IRIX systems, the Python distribution comes with a module providing access to the SGI IRIS GL library.