473,614 Members | 2,328 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Call for advice on how to start PyOpenGL!

I work with python for two years, are familiar with image processing,
but beginner on PyOpenGL and OpenGL.

Any advice appreciated!

Aug 20 '07 #1
4 3353
math2life wrote:
I work with python for two years, are familiar with image processing,
but beginner on PyOpenGL and OpenGL.

Any advice appreciated!
You should check out the pyweek (http://www.pyweek.org/). There you find
pygame & OpenGL-based games, of a comprehensible size.

Diez
Aug 20 '07 #2
Diez B. Roggisch wrote:
math2life wrote:
>I work with python for two years, are familiar with image processing,
but beginner on PyOpenGL and OpenGL.

Any advice appreciated!

You should check out the pyweek (http://www.pyweek.org/). There you find
pygame & OpenGL-based games, of a comprehensible size.
Also, there's plenty of good opengl tutorials on the web. They all translate
pretty easily into Python if they're not in Python already. For example:

http://nehe.gamedev.net

I highly recommend pyweek as a way of focusing on your learning task :)
Richard

Aug 20 '07 #3
math2life wrote:
I work with python for two years, are familiar with image processing,
but beginner on PyOpenGL and OpenGL.

Any advice appreciated!
As has been mentioned, the NeHe tutorials[1] are a good starting point.
There are (multiple) translations of the first 8 or so and then some
cherry-picked translations further along the set. There is a set of
OpenGL demo/sample code available[2] as a separate download from the 3.x
series (these files are mostly included in the 2.x series, though there
is new material in the 3.x set). OpenGLContext also has a large number
of simple samples, though I've still got "release OpenGLContext" on my
seemingly infinitely long and growing todo list, so that might not be
the easiest way to start.

The "Red Book" is an older standard manual for getting started with (C)
OpenGL code, often you can find older editions online for free. There
are hundreds of C tutorials hanging around the net that normally
translate easily into Python/PyOpenGL. The PyOpenGL manual pages *try*
to have links to source code, but unfortunately the (java, ick!) based
system that generates the base files has been broken for a while and I
haven't had time to fix it properly so I can re-run the generator to
update the links. In the meantime, Google's code search helps a lot
when you restrict to Python code.[3]

HTH,
Mike

[1] http://nehe.gamedev.net
[2]
http://sourceforge.net/project/showf...kage_id=221827
[3] http://www.google.com/codesearch?q=lang%3Apython

--
_______________ _______________ _______________ ___
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http://blog.vrplumber.com

Aug 20 '07 #4
On Aug 20, 1:53 am, math2life <QJing...@gmail .comwrote:
I work with python for two years, are familiar with image processing,
but beginner on PyOpenGL and OpenGL.

Any advice appreciated!
Here's a little "hello world" PyOpenGL program I had lying around that
might be useful:

http://www.milliwatt-software.com/jm...gl_template.py

---John

Aug 21 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2049
by: Jimmy Johns | last post by:
Hi, why hasn't there a version of pyOpenGL for python 2.3.x yet? Currently the binary installers for windows only work with python 2.2, and will give an when installing for python 2.3. I can't build it either unless I build python 2.3 from source as well. Is there a work around available?? Thanks in advance. -s
3
2562
by: Steven Gutstein | last post by:
This is probably a fairly newbie type problem, but I'm trying to use PyOpenGL, and don't seem to have installed it correctly. I'm running Python 2.3 on a Windows NT machine. Whenever I go into IDLE and type from OpenGL.GL import * I get a flagrant crash which shuts down IDLE.
9
3187
by: Rick Muller | last post by:
I have a problem that I would like to get some advice on from other Pythonistas. I currently manage a (soon to be) open source project for displaying molecular graphics for a variety of different programs. To do this I need to draw pictures of the molecules, typically using OpenGL, and do some basic control, using some widget set. The code currently uses GTK, and runs on Macintosh OS X under Fink, and Linux. I would like to support the...
1
2308
by: Kirill Kuvaldin | last post by:
Hello All! My program in python uses PyOpenGL and I need to convert it to a standalone windows executable file. Following to these instructions (http://pyopengl.sourceforge.net/documentation/py2exe.html) I've put PyOpenGL package to a directory where my program was placed. and run the script: setup.py py2exe --excludes=OpenGL
5
1763
by: Sébastien Ramage | last post by:
Bonjour à tous, Dans la folie j'ai installé le nouveau python, impatient de voir les nouveautés mais je pense que j'ai été un peu rapide car j'ai voulu utiliser pyOpenGL et là problème il n'existe pas pour python 2.5 ?!!! de plus il semble que pyopengl est été abandonné depuis 2005 ? plus rien ne bouge sur le site... je suis sous windows et je ne dispose pas des outils pour faire moi
0
1446
by: sweetmelon | last post by:
(I'm a newbie in Python and pyOpenGL.) Environment: WinXP SP2 Python ver. 2.5 WingIDE easy_install is installed PIL, pyNum is installed Download PyOpenGL-3.0.0a5-py2.5.egg run: easy_install PyOpenGL-3.0.0a5-py2.5.egg pyOpenGL is installed in
0
1349
by: shirish | last post by:
Hi all, Is it possible to have Python+Pygame+PyOpenGL in one compact package so people can play the games released at pyweek.org . I have been having a hard time getting the whole thing on windows as well as linux (Ubuntu 7.04) . Strangely, my pleas for the same on pyopengl have gone unanswered. http://sourceforge.net/mailarchive/forum.php?thread_name=511f47f50704260036y2888db21p5cf650a7e472559b%40mail.gmail.com&forum_name=pyopengl-users...
2
2235
by: seb.haase | last post by:
Hi, I am distributing a package with a precompiled collection of modules and packages useful for Python based medical/biological/astronomical image analysis and algorithm development. (Codename: Priithon). For Priithon I put all modules/packages in a simple / single directory (tree) including one starting batch/script file. This script sets up PYTHONPATH to find modules at this place. It works fine for Windows,Linux and Mac-OSX. Now I...
0
1049
by: Colin J. Williams | last post by:
I have just installed PyOpenGL and get a series of warning messages: Best match: PyOpenGL 3.0.0b3 Downloading http://downloads.sourceforge.net/pyopengl/PyOpenGL-3.0.0b3.zip?modtime=1213363873&big_mirror=0 Processing PyOpenGL-3.0.0b3.zip Running PyOpenGL-3.0.0b3\setup.py -q bdist_egg --dist-dir c:\docume~1\cjw\locals~1\temp\easy_install-hjyff7\PyOpenGL-3.0.0b3\egg-dist-tmp-iqd53p
0
8198
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8642
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8444
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7115
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6093
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4058
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4138
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2575
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
1438
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.