473,544 Members | 2,424 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1240
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.glcanva s" 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.activestat e.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.glcanva s" 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.activestat e.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(2 00, 200)
while not w.has_exit:
w.dispatch_even ts()
... 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
1448
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, appears a MyOLEDB window with the connection SetUp titled "MySQL Data Source Name Setup" and with params like: Data source name, MySQL hosts, MySQL...
6
2023
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
3686
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 instructions provided by Microsoft in http://msdn.microsoft.com/library/default.asp?url=/library/en-us/crystalmn/h...
7
31217
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 menu I clicked Create Shortcut to User's Desktop. In the right pane of the setup/File System window the object Shortcut to User's Desktop appeared. ...
5
6459
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 http://www.ww2airborne.net/
3
3922
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
1898
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: - I have an existing Window-Service application written in C#, and was build following the general deploying Window-Service guideline (the...
0
891
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 superimposed cancel button still on top. Using the edge of the OK button I press the arrow there and two windows are opened: * one says: can not open...
0
1227
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 dialog window you can call that lets the user choose which applications they want to install. I don't want to use this window, I don't like how it's...
0
7632
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. ...
0
7783
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7392
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
5931
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...
1
5309
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...
0
4930
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3422
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1850
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
1
996
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.