473,396 Members | 1,997 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How to setup pyOpenGL3.0.a6 for window xp?

Hi,
I've already download the pyOpenGL3..0.a6 for python2.4 and installed
python2.4,

Is it necessary to install OpenGL? And if need, which version of
OpenGL should be
installed?

Thanks!

Aug 18 '07 #1
5 1237
On Aug 17, 8:07 pm, math2life <QJing...@gmail.comwrote:
Hi,
I've already download the pyOpenGL3..0.a6 for python2.4 and installed
python2.4,

Is it necessary to install OpenGL? And if need, which version of
OpenGL should be
installed?
Windows comes with OpenGL libraries. However, before you can use
OpenGL you'll need a package that can provide an OpenGL context, which
PyOpenGL doesn't do (easily).

PyGame is the typical choice for most uses. If all you need is a
simple window to draw on, this is the package you want.

However, it doesn't (easily) work with common GUIs like GTK and Wx.
If you want to use use OpenGL in a GUI app, then you'll want to find
an "OpenGL canvas widget" for that GUI.
Carl Banks

Aug 18 '07 #2
On Aug 17, 5:42 pm, Carl Banks <pavlovevide...@gmail.comwrote:
On Aug 17, 8:07 pm, math2life <QJing...@gmail.comwrote:
Hi,
I've already download the pyOpenGL3..0.a6 for python2.4 and installed
python2.4,
Is it necessary to install OpenGL? And if need, which version of
OpenGL should be
installed?

Windows comes with OpenGL libraries. However, before you can use
OpenGL you'll need a package that can provide an OpenGL context, which
PyOpenGL doesn't do (easily).

PyGame is the typical choice for most uses. If all you need is a
simple window to draw on, this is the package you want.

However, it doesn't (easily) work with common GUIs like GTK and Wx.
If you want to use use OpenGL in a GUI app, then you'll want to find
an "OpenGL canvas widget" for that GUI.

Carl Banks
ye!I made it.
The OpenGL context should be pre-installed.

I want PyOpenGL can work with Wx, but it is good idea to start with
PyGame for the newbie to OpenGL.

Thank you , Carl

Aug 18 '07 #3
On Aug 17, 6:42 pm, Carl Banks <pavlovevide...@gmail.comwrote:
Windows comes with OpenGL libraries. However, before you can use
OpenGL you'll need a package that can provide an OpenGL context, which
PyOpenGL doesn't do (easily).

PyGame is the typical choice for most uses. If all you need is a
simple window to draw on, this is the package you want.

However, it doesn't (easily) work with common GUIs like GTK and Wx.
If you want to use use OpenGL in a GUI app, then you'll want to find
an "OpenGL canvas widget" for that GUI.

Carl Banks
Sorry Carl, but I'm a bit confused with your third paragraph. Do you
mean that PyGame doesn't work easily with Wx/GTK, or that OpenGL
doesn't work easily with Wx/GTK?

If it's the second, then I must disagree. wxPython comes with an
OpenGL widget in the "wx.glcanvas" module. The widget only requires
PyOpenGL. The wxPython Demo shows how to set up and program the
widget quite easily. Another example is at: "http://
aspn.activestate.com/ASPN/Cookbook/Python/Recipe/325392".

Unfortunately, I don't have much experience with PyGTK. Their FAQ
does indicate that you need an extension to add OpenGL support.

--Jason

Aug 19 '07 #4
Jason wrote:
On Aug 17, 6:42 pm, Carl Banks <pavlovevide...@gmail.comwrote:
>Windows comes with OpenGL libraries. However, before you can use
OpenGL you'll need a package that can provide an OpenGL context, which
PyOpenGL doesn't do (easily).

PyGame is the typical choice for most uses. If all you need is a
simple window to draw on, this is the package you want.
If you want an *easy* way to create an OpenGL window and context, you
could try FLTK, and it's Python wrapper PyFLTK. It's a simple (nice,
very small, well featured and consistent) widget toolkit with OpenGL
support. Once the window is open, PyOpenGL (versions 2xx or 3xx) work
perfectly on the window.

See http://www.fltk.org/

Gary Herron
>However, it doesn't (easily) work with common GUIs like GTK and Wx.
If you want to use use OpenGL in a GUI app, then you'll want to find
an "OpenGL canvas widget" for that GUI.

Carl Banks

Sorry Carl, but I'm a bit confused with your third paragraph. Do you
mean that PyGame doesn't work easily with Wx/GTK, or that OpenGL
doesn't work easily with Wx/GTK?

If it's the second, then I must disagree. wxPython comes with an
OpenGL widget in the "wx.glcanvas" module. The widget only requires
PyOpenGL. The wxPython Demo shows how to set up and program the
widget quite easily. Another example is at: "http://
aspn.activestate.com/ASPN/Cookbook/Python/Recipe/325392".

Unfortunately, I don't have much experience with PyGTK. Their FAQ
does indicate that you need an extension to add OpenGL support.

--Jason

Aug 19 '07 #5
Gary Herron wrote:
Jason wrote:
>On Aug 17, 6:42 pm, Carl Banks <pavlovevide...@gmail.comwrote:
>>Windows comes with OpenGL libraries. However, before you can use
OpenGL you'll need a package that can provide an OpenGL context, which
PyOpenGL doesn't do (easily).

PyGame is the typical choice for most uses. If all you need is a
simple window to draw on, this is the package you want.
If you want an *easy* way to create an OpenGL window and context, you
could try FLTK, and it's Python wrapper PyFLTK.
The simplest method by far uses pyglet from http://www.pyglet.org/

from pyglet import window
w = window.Window(200, 200)
while not w.has_exit:
w.dispatch_events()
... do OpenGL stuff

pyglet has no compilation and no dependencies and works on Linux, OS X and
Windows. You can use PyOpenGL with it just fine, or use its own gl layer
(which is intentionally less pythonic)
Richard

Aug 19 '07 #6

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

Similar topics

0
by: Eliecer | last post by:
I have a VB6 program that connects with a MySQL 4.0.17 through MyOLEDB Provider v3.0. At the begining of the program, when I try to connect with the MySQL server and this one is not running,...
6
by: João Santa Bárbara | last post by:
hi all i need to create an setup package that registers an assembly can some one tell me how to start ?? thks JSB
3
by: Richard L Rosenheim | last post by:
I have an application that works, which is written in VB using Visual Studio 2003. Now, I'm trying to create a setup application for it. As the application uses Crystal Reports, I followed the...
7
by: GrandpaB | last post by:
I would appreciate assistance learning how to create a Desktop shortcut in my setup project. In the left pane of the Setup/File System window I right-clicked User's Desktop. From the contex...
5
by: Screaming Eagles 101 | last post by:
Hi , not much trouble in making a setup project, but I'd like also an icon in All Programs to uninstall the application. I can't find a good explanation on the net so far... -- Filip...
3
by: sanghavi | last post by:
how to create a set up project in vb.net..how to run an application on a different machine
0
by: henkya | last post by:
Language Used: C# Project Typed: Setup Project (for .NET Window Service) Hi Bump into this issue and seriously have a hunch that this is a bug in the .NET setup project. These are the scenario:...
0
by: adolfo | last post by:
I tried reinstalling the program and the DISLIN/PYTHON SETUP window showed up with the OK button almost covered by the cancel button. The window is too small so I extend the edges but the...
0
by: Deemar | last post by:
I read somewhere that the Delphi/Pascal used in this application is similar to Python, sorry if I got it in the wrong forum here. I have a setup program made with Inno Setup and there's a premade...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
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,...

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.