Re: using OpenGL on windows 11

2022-01-01 Thread Kirill Ratkin
BR (KR) 31.12.2021 2:23, vrg bls пишет: Hi! I am very new to Python admittedly, but did try several options regarding troubleshooting to get OpenGL to run with Python. I am using PyCharm as my interface, did try installing setup tools and have reinstalled using pip install function a few ti

using OpenGL on windows 11

2021-12-30 Thread vrg bls
Hi! I am very new to Python admittedly, but did try several options regarding troubleshooting to get OpenGL to run with Python. I am using PyCharm as my interface, did try installing setup tools and have reinstalled using pip install function a few times. I did notice my machine seems to be

Re: PyQt5, OpenGL, where to start, minimal example code?

2016-10-08 Thread John Ladasky
Well, I've made some progress. My program doesn't draw any 3D objects yet, but it creates an OpenGL rendering window, binds the OpenGL functions, and generates no errors. Here's the corrected initializeGL method: def initializeGL(self): c = self.cont

Re: PyQt5, OpenGL, where to start, minimal example code?

2016-10-04 Thread Phil Thompson
Sometimes it isn't obvious how the C++ constructors are > wrapped in Python. QOpenGLVersonProfile missing from the docs is a bug. > If I ever understand a GUI like PyQt5 well enough, I'd like to contribute to > its documentation. Sigh. If you are an OpenGL exp

Re: PyQt5, OpenGL, where to start, minimal example code?

2016-10-03 Thread John Ladasky
On Monday, October 3, 2016 at 1:30:29 AM UTC-7, Phil Thompson wrote: > On 3 Oct 2016, at 4:29 am, John Ladasky wrote: > > And as you can see: trying to call versionFunctions() is exactly where my > > program failed. > > Try passing a QOpenGLVersionProfile object to versionFunctions() that has a

Re: PyQt5, OpenGL, where to start, minimal example code?

2016-10-03 Thread Phil Thompson
eprogress.com/python/libraries/pyqt/ > > That's a nice page of examples, but there are no OpenGL examples. > >> Support for OpenGL http://pyqt.sourceforge.net/Docs/PyQt5/opengl.html told >> us: >> >> When compiled against Qt v5.1 or later, PyQt5 implements a

Re: PyQt5, OpenGL, where to start, minimal example code?

2016-10-02 Thread John Ladasky
but there are no OpenGL examples. > Support for OpenGL http://pyqt.sourceforge.net/Docs/PyQt5/opengl.html told us: > > When compiled against Qt v5.1 or later, PyQt5 implements a set of either > desktop QOpenGL bindings or OpenGL ES v2 bindings depending on how Qt was > configured. Th

Re: PyQt5, OpenGL, where to start, minimal example code?

2016-10-02 Thread John Ladasky
On Sunday, October 2, 2016 at 7:45:50 PM UTC-7, Lawrence D’Oliveiro wrote: > On Monday, October 3, 2016 at 2:14:13 PM UTC+13, John Ladasky wrote: > > > > I am making my first attempt at 3D rendering. > > Bear in mind there are two kinds of 3D rendering: realtime (with OpenGL

Re: PyQt5, OpenGL, where to start, minimal example code?

2016-10-02 Thread blue
You have here a PyQt5 Reference Guide http://pyqt.sourceforge.net/Docs/PyQt5/index.html Some example can be found here 4 and 5 http://codeprogress.com/python/libraries/pyqt/ Support for OpenGL http://pyqt.sourceforge.net/Docs/PyQt5/opengl.html told us: When compiled against Qt v5.1 or later

PyQt5, OpenGL, where to start, minimal example code?

2016-10-02 Thread John Ladasky
Hi there, I am making my first attempt at 3D rendering. My system configuration: OS : Ubuntu 16.04 64-bit Python : 3.5.1 Qt : 5.5.1 PyQt : 5.5.1 OpenGL : 4.5.0 (I have a modern GPU) All software was installed from the Canonical repository. I didn't build any binaries myself.

Re: py2app and OpenGL, "No module named util" in ctypes

2009-06-02 Thread trhaynes
On May 28, 6:28 pm, Carl Banks wrote: > On May 28, 11:06 am, trhaynes wrote: > > > > > I'm trying to use py2app to package an OpenGL app, so first I tried to > > build the example here > > >http://svn.pythonmac.org/py2app/py2app/trunk/examples/PyOpenGL/ &g

Re: py2app and OpenGL, "No module named util" in ctypes

2009-05-28 Thread Carl Banks
On May 28, 11:06 am, trhaynes wrote: > I'm trying to use py2app to package an OpenGL app, so first I tried to > build the example here > > http://svn.pythonmac.org/py2app/py2app/trunk/examples/PyOpenGL/ > > and I get the error: > > >  File > > "/opt

Re: py2app and OpenGL, "No module named util" in ctypes

2009-05-28 Thread norseman
Ned Deily wrote: In article , trhaynes wrote: I'm trying to use py2app to package an OpenGL app [...] You might try asking on the pythonmac-sig list: more py2app users there most likely. http://mail.python.org/mailman/listinfo/pythonmac-sig [or] http://dir.gman

Re: py2app and OpenGL, "No module named util" in ctypes

2009-05-28 Thread Ned Deily
In article , trhaynes wrote: > I'm trying to use py2app to package an OpenGL app [...] You might try asking on the pythonmac-sig list: more py2app users there most likely. http://mail.python.org/mailman/listinfo/pythonmac-sig [or] http://dir.gmane.org/gmane.comp.python.apple -- N

py2app and OpenGL, "No module named util" in ctypes

2009-05-28 Thread trhaynes
I'm trying to use py2app to package an OpenGL app, so first I tried to build the example here http://svn.pythonmac.org/py2app/py2app/trunk/examples/PyOpenGL/ and I get the error: > File > "/opt/local/lib/python2.5/site-packages/PyOpenGL-3.0.0c1-py2.5.egg/OpenGL/platform/darwin

Re: OpenGL win32 Python

2009-04-17 Thread Maxim Khitrov
On Fri, Apr 17, 2009 at 9:27 AM, gintare statkute wrote: > Hello, > > i found an example for OpenGL in windows. > It is incredibly helpful, but how to rewrite it to be useful in Python. > > How to give address of pfd in Python?: > iFormat = ChoosePixelFormat( hDC, &pfd

OpenGL win32 Python

2009-04-17 Thread gintare statkute
Hello, i found an example for OpenGL in windows. It is incredibly helpful, but how to rewrite it to be useful in Python. How to give address of pfd in Python?: iFormat = ChoosePixelFormat( hDC, &pfd ); SetPixelFormat( hDC, iFormat, &pfd ); I found syntax for sizeof and pfd: #! /usr

Re: OpenGL in TK

2009-02-17 Thread Mike C. Fletcher
inary download requirement one way or another. Togl is pretty small compared to wxPython, of course, but you're looking a the same basic problem. Have others been able to use Togl, or any other OpenGL widget in TK? I installed it using the above-mentioned hacky script a few months ago,

Beginner Python OpenGL difficulties

2009-02-07 Thread David Nuttall
Hi Mike, I am just getting into OPENGL from Python. But I am having problems. Each time I try to run some OPENGL code I get the following sort of error: Traceback (most recent call last): File "C:\Documents and Settings\Owner\My Documents\My Work\Python Modules\PyOpenGL

OpenGL in TK

2009-01-27 Thread Almar Klein
package that comes with Python. Have others been able to use Togl, or any other OpenGL widget in TK? Thanks for any help, Almar PS: I use python 2.5.2 on windows -- http://mail.python.org/mailman/listinfo/python-list

export opengl context to pdf

2008-10-07 Thread Vaibhav . bhawsar
Hi, Does anyone know of a package that will allow me to output an opengl context as a PDF (or postscript)? I am using pyglet to render something on screen that i want to save as PDF. thanks! vaibhav -- Vaibhav Bhawsar -- http://mail.python.org/mailman/listinfo/python-list

export opengl context to pdf

2008-10-07 Thread Vaibhav . bhawsar
Hi, Does anyone know of a package that will allow me to output an opengl context as a PDF (or postscript)? I am using pyglet to render something on screen that i want to save as PDF. thanks! vaibhav -- http://mail.python.org/mailman/listinfo/python-list

ANN: Mac OS X versions of Rabbyt 0.81 - A fast 2D sprite engine using OpenGL

2008-07-10 Thread Python Nutter
Just a quick announcement, I have supplied PPC and Intel compiled eggs for the Rabbyt libary on Pypi http://pypi.python.org/pypi/Rabbyt/ Rabbyt-0.8.1-py2.5-macosx-10.3-ppc.egg (md5) Built on OS X 10.5.4 for PowerPC equipped Macs Rabbyt-0.8.1-py2.5-macosx-10.3-i386.egg (md5) Built on OS X 10.5.4

Re: Python GUI + OpenGL

2007-03-06 Thread Diez B. Roggisch
>> I didn't say so. I just pointed out an alternative, as the OP had issues >> with obtaining binary packages for wx + py2.5 >> > > I believe he was having trouble with binary packages for PyOpenGL, > wxPython has 2.5 binaries and has since it was released. Ah, I didn't read it that way as the O

Re: Python GUI + OpenGL

2007-03-05 Thread David Boddie
On Monday 05 March 2007 18:22, Chris Mellon wrote: > On 3/5/07, Diez B. Roggisch <[EMAIL PROTECTED]> wrote: >> Beside that, I do love the Qt library and would always use it in >> preference to wx, but this is a general thing and by no means tied to the >> OpenGL-p

Re: Python GUI + OpenGL

2007-03-05 Thread Chris Mellon
#x27;m developing a GUI app in Python/C++ to visualize numerical results. > >>> Currently I'm using Python 2.4 with wx and PyOpenGLContext, but there > >>> are no windows binaries for Python 2.5 for quite some time now. > >>> > >>> I need a OpenGL c

Re: Python GUI + OpenGL

2007-03-05 Thread Diez B. Roggisch
7;m using Python 2.4 with wx and PyOpenGLContext, but there >>> are no windows binaries for Python 2.5 for quite some time now. >>> >>> I need a OpenGL context without restrictions and some settings dialogs. >>> Is wx + PyOpenGL the way to go? Or could somebod

Re: Python GUI + OpenGL

2007-03-05 Thread cptnwillard
You don't necessarily need an OpenGL wrapper like PyOpenGL. If you only use a handful of OpenGL functions, it would be relatively straight-forward to make your own, using ctypes. Here is what it would look like: from ctypes import cdll, windll, c_double, c_float, c_int GL_P

Re: Python GUI + OpenGL

2007-03-05 Thread Dag
ut there >> are no windows binaries for Python 2.5 for quite some time now. >> >> I need a OpenGL context without restrictions and some settings dialogs. >> Is wx + PyOpenGL the way to go? Or could somebody recommend a better set >> of tools/libs? > > PyQt,

Re: Python GUI + OpenGL

2007-03-02 Thread MonkeeSage
On Mar 2, 9:17 am, Achim Domma <[EMAIL PROTECTED]> wrote: > I need a OpenGL context without restrictions and some settings dialogs. > Is wx + PyOpenGL the way to go? Or could somebody recommend a better set > of tools/libs? You could use pygtk + pygtkglext. http://

Re: Python GUI + OpenGL

2007-03-02 Thread Mike C. Fletcher
Achim Domma wrote: > Hi, > > I'm developing a GUI app in Python/C++ to visualize numerical results. > Currently I'm using Python 2.4 with wx and PyOpenGLContext, but there > are no windows binaries for Python 2.5 for quite some time now. > > I need a OpenGL contex

Re: Python GUI + OpenGL

2007-03-02 Thread Diez B. Roggisch
Achim Domma wrote: > Hi, > > I'm developing a GUI app in Python/C++ to visualize numerical results. > Currently I'm using Python 2.4 with wx and PyOpenGLContext, but there > are no windows binaries for Python 2.5 for quite some time now. > > I need a OpenGL contex

Python GUI + OpenGL

2007-03-02 Thread Achim Domma
Hi, I'm developing a GUI app in Python/C++ to visualize numerical results. Currently I'm using Python 2.4 with wx and PyOpenGLContext, but there are no windows binaries for Python 2.5 for quite some time now. I need a OpenGL context without restrictions and some settings dialo

Re: 3d programming without opengl

2006-11-01 Thread Paul McGuire
"Jordan" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On > the other hand, I thought that you were looking for something that > doesn't use openGL and I think that Slut is built around it. > Yes, slut *does* use OpenGL, so if that is in fact a

Re: 3d programming without opengl

2006-11-01 Thread Jordan
I don't thnk you should have any problems using Slut with wxpython - wx would be much less amazing if it couldn't do something like that. On the other hand, I thought that you were looking for something that doesn't use openGL and I think that Slut is built around it. Cheers,

Re: 3d programming without opengl

2006-11-01 Thread Kenneth Long
you might find this interesting... www.ogre3d.org/ and its python wrapper http://www.ogre3d.org/wiki/index.php/PyOgre With /without Hardware acceleration... with /without OpenGL or DirectX... hello

Re: 3d programming without opengl

2006-11-01 Thread Grant Edwards
On 2006-11-01, Will McGugan <[EMAIL PROTECTED]> wrote: > If you are worried about running your 3d app on older > machines, OpenGL will typically fall back to software > rendering if the hardware isn't available. That's true. OpenGL (which will do SW rendering) will

Re: 3d programming without opengl

2006-11-01 Thread Will McGugan
the need to use OpenGL I > google but i can't find nothing interesting... (the best would be a > pure python solution) If you are worried about running your 3d app on older machines, OpenGL will typically fall back to software rendering if the hardware isn't available. Although you

Re: 3d programming without opengl

2006-11-01 Thread Richard Jones
Fredrik Lundh wrote: > Richard Jones wrote: >>> Pure Python doesn't necessarily imply "no graphics drawing code written >>> in some other language", though. You can get pretty far by using a 2D >>> library for simple 3D rendering. >> >> Someone wrote a 3D demo for the pygame.draw challenge*. It w

Re: 3d programming without opengl

2006-10-31 Thread Fredrik Lundh
Richard Jones wrote: >> Pure Python doesn't necessarily imply "no graphics drawing code written >> in some other language", though. You can get pretty far by using a 2D >> library for simple 3D rendering. > > Someone wrote a 3D demo for the pygame.draw challenge*. It worked but > unfortunately h

Re: 3d programming without opengl

2006-10-31 Thread Richard Jones
Fredrik Lundh wrote: > Grant Edwards wrote: > >> Oy. A pure Python solution would probably be _really_ slow. > > Pure Python doesn't necessarily imply "no graphics drawing code written > in some other language", though. You can get pretty far by using a 2D > library for simple 3D rendering. So

Re: 3d programming without opengl

2006-10-31 Thread Fredrik Lundh
Grant Edwards wrote: > Oy. A pure Python solution would probably be _really_ slow. Pure Python doesn't necessarily imply "no graphics drawing code written in some other language", though. You can get pretty far by using a 2D library for simple 3D rendering. -- http://mail.python.org/mailm

Re: 3d programming without opengl

2006-10-31 Thread Grant Edwards
On 2006-10-31, nelson - <[EMAIL PROTECTED]> wrote: >i want to build up a simple 3d interactive geometry application in > python. Since i want to run it without 3D acceleration (a scene will > be quite simple) If you just want slow, it's probably easier to use OpenGL a

Re: 3d programming without opengl

2006-10-31 Thread Stephen Eilert
the need to use OpenGL I > google but i can't find nothing interesting... (the best would be a > pure python solution) > > Thanks, > nelson I have no idea why you would want to do that. The fact that the scene is simple shouldn't be the only reason. After all, if a user is

Re: 3d programming without opengl

2006-10-31 Thread Paul McGuire
"nelson -" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi paul, > i look at slut and it seem very good... Can i embed it into a > wxpython application? > > thanks, > nelson I've no earthly idea, nelson, sorry. The sphere program is the extent of my slut experience (for which m

Re: 3d programming without opengl

2006-10-31 Thread Paul McGuire
"Steve Holden" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Looks like c.l.py just slashdotted you ... """The GeoCities web site you > were trying to view has temporarily exceeded its data transfer limit. > Please try again later.""" > > regards > Steve > -- > Steve Holden

Re: 3d programming without opengl

2006-10-31 Thread nelson -
Hi paul, i look at slut and it seem very good... Can i embed it into a wxpython application? thanks, nelson -- http://mail.python.org/mailman/listinfo/python-list

Re: 3d programming without opengl

2006-10-31 Thread Steve Holden
t;be quite simple) I was wondering if there was a library in python that >>allow me to build 3D graphic without the need to use OpenGL I >>google but i can't find nothing interesting... (the best would be a >>pure python solution) >> >>Thanks, >>

Re: 3d programming without opengl

2006-10-31 Thread Paul McGuire
Since i want to run it without 3D acceleration (a scene will >> be quite simple) I was wondering if there was a library in python that >> allow me to build 3D graphic without the need to use OpenGL I >> google but i can't find nothing interesting... (the best would

Re: 3d programming without opengl

2006-10-31 Thread Paul McGuire
was a library in python that > allow me to build 3D graphic without the need to use OpenGL I > google but i can't find nothing interesting... (the best would be a > pure python solution) > > Thanks, > nelson Here's a page (http://www.vrplumber.com/py3d.py) with links

Re: 3d programming without opengl

2006-10-30 Thread Fredrik Lundh
nelson - wrote: >i want to build up a simple 3d interactive geometry application in > python. Since i want to run it without 3D acceleration (a scene will > be quite simple) the scene is simple so I don't want to use a well-supported and widely used standard API because it might use hardware

3d programming without opengl

2006-10-30 Thread nelson -
hi! i want to build up a simple 3d interactive geometry application in python. Since i want to run it without 3D acceleration (a scene will be quite simple) I was wondering if there was a library in python that allow me to build 3D graphic without the need to use OpenGL I google but i can&#

Re: Higher-level OpenGL modules

2006-09-06 Thread Ben Sizer
oogle search. I think you're very mistaken... it's a little over-complex, but everything you need is up there, on the installation and download pages, and the only other .dlls you need are the OpenGL ones which the original poster will already have. -- Ben Sizer -- http://mail.python.org/mailman/listinfo/python-list

Re: Higher-level OpenGL modules

2006-09-05 Thread Felipe Almeida Lessa
5 Sep 2006 03:44:47 -0700, Leon <[EMAIL PROTECTED]>: > Greetings, > > Does anybody know of or is working on any python modules that allow for > a direct but higher-level interface to OpenGL? For example, quick > functions to draw lines, curves, and basic shapes; define hsb c

Re: Higher-level OpenGL modules

2006-09-05 Thread Leon
Thanks guys!, Ill look into your suggestions. I'm actually currently working directly with pyOpenGL, but hopefully Ill find something that would make me more efficient. I might end up writing a library myself. -- http://mail.python.org/mailman/listinfo/python-list

Re: Higher-level OpenGL modules

2006-09-05 Thread [EMAIL PROTECTED]
t/showfiles.php?group_id=156455 http://www.dexrow.com.. Leon wrote: > Greetings, > > Does anybody know of or is working on any python modules that allow for > a direct but higher-level interface to OpenGL? For example, quick > functions to draw lines, curves, and basic shapes; define hsb

Re: Higher-level OpenGL modules

2006-09-05 Thread Wolfgang Draxinger
Leon wrote: > http://www.processing.org/reference/index.html). The closest > thing I could find was devachan - Hava a look at Amanith http://www.amanith.org OpenGL is that "low" level by design. Everything beyond is to be packed into other libraries. Wolfgang Draxinger -- E-Ma

Higher-level OpenGL modules

2006-09-05 Thread Leon
Greetings, Does anybody know of or is working on any python modules that allow for a direct but higher-level interface to OpenGL? For example, quick functions to draw lines, curves, and basic shapes; define hsb color mode; fill and stroke operations; easy loading of images, svg files, etc (much

Re: Using PyQT and OpenGL

2006-07-26 Thread David Boddie
Peter TB Brett wrote: > Although the PyQt documentation indicates that QGLWidget & friends have > been ported to Python for the PyQt bindings, I'm not entirely sure what's > necessary to make the normal OpenGL/GLUT interface available. > > Does PyQt work okay

Using PyQT and OpenGL

2006-07-26 Thread Peter TB Brett
Hi folks, Although the PyQt documentation indicates that QGLWidget & friends have been ported to Python for the PyQt bindings, I'm not entirely sure what's necessary to make the normal OpenGL/GLUT interface available. Does PyQt work okay with PyOpenGL? Or is a more complica

Re: Beginner Python OpenGL difficulties

2006-05-30 Thread Diez B. Roggisch
[EMAIL PROTECTED] wrote: > > Mike C. Fletcher wrote: >> [EMAIL PROTECTED] wrote: >> > I'm beginning learning Python and OpenGL in Python. >> > > [...] >> > ImportError: No module named OpenGL.GLUT >> > >> > [EMAIL PROTECTED]/et

Re: Beginner Python OpenGL difficulties

2006-05-30 Thread jg . campbell . ng
Mike C. Fletcher wrote: > [EMAIL PROTECTED] wrote: > > I'm beginning learning Python and OpenGL in Python. > > [...] > > ImportError: No module named OpenGL.GLUT > > > > [EMAIL PROTECTED]/etc/python>$ echo $PYTHONPATH > > /usr/lib/python2.2/site-pac

Re: Beginner Python OpenGL difficulties

2006-05-29 Thread Mike C. Fletcher
[EMAIL PROTECTED] wrote: > I'm beginning learning Python and OpenGL in Python. > > Python fine. But difficulties with OpenGL; presumably with the > installation of OpenGL. > > OS = Linux FC5. > > Python program gl_test.py: > > from OpenGL.GLUT import * > fro

Beginner Python OpenGL difficulties

2006-05-28 Thread jg . campbell . ng
I'm beginning learning Python and OpenGL in Python. Python fine. But difficulties with OpenGL; presumably with the installation of OpenGL. OS = Linux FC5. Python program gl_test.py: from OpenGL.GLUT import * from OpenGL.GLU import * from OpenGL.GL import * name = "Hello, World&quo

OpenGL on Intel Mac

2006-04-06 Thread Brian Victor
I am attempting to build PyOpenGL on my Intel iMac. The transcript of the build failure is here: http://brianhv.org/temp/pyopengl-build.log I'm using the universal MacPython 2.4.3 and PyOpenGL-2.0.1.09. The highlight of the build log is: /System/Library/Frameworks/Kernel.framework/Headers/sys/s

Re: C++ OpenGL rendering, wxPython GUI?

2006-03-01 Thread Tobias Forslöw
Thanks for all the quick help! After reading your posts about how the canvases actually work it was fairly easy to make my C++ code work within a wxPython frame. Now I only have to decide If I'm actually going to use wxPython or if there is a better alternative but there seem to be plenty of threa

Re: C++ OpenGL rendering, wxPython GUI?

2006-02-28 Thread John M. Gabriele
[EMAIL PROTECTED] wrote: > [snip] Now I'm > looking to build a GUI in python with the rendering engine as an > integrated window. I will most likely use wxPython for the GUI and I > know it has support for adding an OpenGL canvas. > > You might look into PyFLTK (which I

Re: C++ OpenGL rendering, wxPython GUI?

2006-02-28 Thread Michael Ekstrand
On 28 Feb 2006 01:14:15 -0800 [EMAIL PROTECTED] wrote: > I'm creating a scientific visualization application with rather high > demands on performance. I've created a nice rendering engine for it in > C++/OpenGL and a python interface to the rendering engine. Now I'm >

Re: C++ OpenGL rendering, wxPython GUI?

2006-02-28 Thread Carl Banks
[EMAIL PROTECTED] wrote: > I'm creating a scientific visualization application with rather high > demands on performance. I've created a nice rendering engine for it in > C++/OpenGL and a python interface to the rendering engine. Now I'm > looking to build a GUI in pytho

C++ OpenGL rendering, wxPython GUI?

2006-02-28 Thread tobfon
I'm creating a scientific visualization application with rather high demands on performance. I've created a nice rendering engine for it in C++/OpenGL and a python interface to the rendering engine. Now I'm looking to build a GUI in python with the rendering engine as an integrated

Re: my openGL API need threads!!! But how to ,ake it work???

2006-02-02 Thread Laurent
Youpe! That work as I want Thx everybody ;) The problem was that I launched the glut main loop into a thread, and then it was separated from his initialisations functions I put it into another method and launch that method into a thread...! That work! -- http

Re: my openGL API need threads!!! But how to ,ake it work???

2006-02-02 Thread Laurent
threading.Thread(target = Scene.run).start() WORKS !!! great thx ;) now this should be better if the thread can ben declared inside the class! -- http://mail.python.org/mailman/listinfo/python-list

Re: my openGL API need threads!!! But how to ,ake it work???

2006-02-02 Thread Laurent
This is not a fantasm... Why this can not work?? in a thread a loop (the glut main loop) called by Scene.run() and in a second something else, e.g. function A A want to add an object in the Scene, the it call Scene.append(anObject) and in his next step, the glutmainloop will see that there is a

Re: my openGL API need threads!!! But how to ,ake it work???

2006-02-02 Thread Diez B. Roggisch
Laurent wrote: > That is exactly what I do not want!! > > this is not transparent, I'm sure it is possible to make what I want: > Scene = ooglScene() > Scene.run() > scene.append(ooglPoint()) Well, if you know so well what you want, why don't you know how to do it? Besides: just using threads m

Re: my openGL API need threads!!! But how to ,ake it work???

2006-02-02 Thread Jean-Paul Calderone
On 2 Feb 2006 09:29:45 -0800, Laurent <[EMAIL PROTECTED]> wrote: >That is exactly what I do not want!! > >this is not transparent, I'm sure it is possible to make what I want: >Scene = ooglScene() >Scene.run() >scene.append(ooglPoint()) Most concurrency is never even remotely transparent. Stop ch

Re: my openGL API need threads!!! But how to ,ake it work???

2006-02-02 Thread Laurent
That is exactly what I do not want!! this is not transparent, I'm sure it is possible to make what I want: Scene = ooglScene() Scene.run() scene.append(ooglPoint()) -- http://mail.python.org/mailman/listinfo/python-list

Re: my openGL API need threads!!! But how to ,ake it work???

2006-02-02 Thread Diez B. Roggisch
Laurent wrote: > Hi, > > here is the context: > > I'm coding a openGL API I will need for a project for my school. > This API is quite simple: > > an ooglScene describe all needed to make an openGL, and inherits from a > list. So an ooglScene is fundamentaly

Re: my openGL API need threads!!! But how to ,ake it work???

2006-02-02 Thread Laurent
-- class ooglBaseObject(object): def __init__(self): pass #--- class ooglObject(ooglBaseObject, list): """ An ooglObject represent a object in a OpenGL scene. This is based on a Composite Pattern: an ooglObject

my openGL API need threads!!! But how to ,ake it work???

2006-02-02 Thread Laurent
Hi, here is the context: I'm coding a openGL API I will need for a project for my school. This API is quite simple: an ooglScene describe all needed to make an openGL, and inherits from a list. So an ooglScene is fundamentaly a list of ooglObjects (which is organised as a Composite Pa

RE: OpenGL

2006-01-29 Thread Delaney, Timothy (Tim)
Mike C. Fletcher wrote: > ctypes re-re-implementation of the same Python API to OpenGL. My > intention is that the ctypes implementation will become the 3.0.0 > release when it is finished and optimised. You should be aware then that it's likely that ctypes will be included in Py

Re: OpenGL

2006-01-23 Thread Fernando Perez
Mike C. Fletcher wrote: > OpenGL-ctypes is designed with a fairly well abstracted array-handling > API. Basically any array type can be registered with handlers that let > you tell the system how to do basic operations; get an array's size, > shape, data-type, convert to a

Re: OpenGL

2006-01-22 Thread Mike C. Fletcher
years ago. OpenGL-ctypes is in the PyOpenGL CVS repository, it's a ctypes re-re-implementation of the same Python API to OpenGL. My intention is that the ctypes implementation will become the 3.0.0 release when it is finished and optimised. If there's time and enough interest I&#

Re: OpenGL

2006-01-22 Thread seb . haase
y own (one !) OpenGL function with that typemap to draw 6 vertices in a vector linestrip. But I would like to not have to resort to "string conversion" when for example drawing 2D typemaps... Anyway, thanks a lot for PytOpenGL - my program (image analysis platform and microscope c

Re: OpenGL

2006-01-22 Thread Mike C. Fletcher
PyOpenGL these days is focusing on the OpenGL-ctypes implementation, which hopefully will let far more people work on the source-code (and add features and coverage of more extensions). Have fun, Mike -- Mike C. Fletcher Designer, VR Plumb

Re: OpenGL

2006-01-22 Thread Fredrik Lundh
"NaeRey" wrote: > If you notice the project died, being latest release Jan2 2005. Thats > over a year old. so? OpenGL itself hasn't had a release since 2004. that's even more dead. -- http://mail.python.org/mailman/listinfo/python-list

Re: OpenGL

2006-01-22 Thread NaeRey
If you notice the project died, being latest release Jan2 2005. Thats over a year old. -- http://mail.python.org/mailman/listinfo/python-list

Re: OpenGL

2006-01-22 Thread Fredrik Lundh
NaeRey wrote: > Hey, I've been searching for something like a PyOpenGL implementation > that allows Python to use OpenGL, found only a few projects and most > are either in beta and dead, or alpha stage. http://pyopengl.sourceforge.net/ -- http://mail.python.org/mailman/l

Re: OpenGL

2006-01-22 Thread Will McGugan
NaeRey wrote: > Hey, I've been searching for something like a PyOpenGL implementation > that allows Python to use OpenGL, found only a few projects and most > are either in beta and dead, or alpha stage. > Anyone knows a package thats currently being worked on and is >

OpenGL

2006-01-22 Thread NaeRey
Hey, I've been searching for something like a PyOpenGL implementation that allows Python to use OpenGL, found only a few projects and most are either in beta and dead, or alpha stage. Anyone knows a package thats currently being worked on and is functional? Thanks -- http://mail.pytho

Re: py2exe and OpenGL problem

2005-09-25 Thread Mike C. Fletcher
Line 13:17 of OpenGL.__init__.py, replace with: try: filename = os.path.join(os.path.dirname(__file__), 'version') __version__ = string.strip(open(filename).read()) except Exception, err: __version__ = '2.0.2.02' HTH, Mike [EMAIL PROTECTED] wrote: >I am using the new py2

py2exe and OpenGL problem

2005-09-25 Thread [EMAIL PROTECTED]
I am using the new py2exe and python 24. When I run my setup.py, the dist seems to generate just fine. However run I run the resulting exe, I get an error: IOError: [Errno 2] No such file or directory 'c:\\app\\dist\\library.zip\\OpenGL\\version' Now I've tried the recommended r

Re: save an opengl canvas (wxPython)

2004-12-15 Thread Zunbeltz Izaola
"Mike C. Fletcher" <[EMAIL PROTECTED]> writes: > There's sample code in PyOpenGL and OpenGLContext for saving canvases > to PNG or JPEG formats using PIL. Saving to Postscript requires > considerably more work (if you're implying saving as triangles, lines > and the like). There is a GPL library

Re: save an opengl canvas (wxPython)

2004-12-14 Thread Mike C. Fletcher
ixels.3G.xml see the end of that man page for pointers to Python sample code. Good luck, Mike Zunbeltz Izaola wrote: Hi, I've a drawing made in an OpenGL canvas. I want to save it to a file (preferibly PostScript format). Somebody knows h

save an opengl canvas (wxPython)

2004-12-13 Thread Zunbeltz Izaola
Hi, I've a drawing made in an OpenGL canvas. I want to save it to a file (preferibly PostScript format). Somebody knows how to do it? TIA Zunbeltz -- Zunbeltz Izaola Azkona| wmbizazz at lg dot ehu dotes Materia Kondentsatuaren Fisika Saila | Zientzia eta Tekno

Re: 3D plotting library / OpenGL

2004-12-08 Thread Robert Kern
Andrew Dalke wrote: Robert Kern: Here are the instructions that I posted to the PythonMac mailing list a while ago: Thanks. I am able to build and install VTK as per your instructions, except that I don't see an option for Toggle VTK_USE_GL2PS on (useful for printing). Oops. Sorry. Press 't' to

Re: 3D plotting library / OpenGL

2004-12-08 Thread Andrew Dalke
Robert Kern: > Here are the instructions that I posted to the PythonMac mailing list a > while ago: Thanks. I am able to build and install VTK as per your instructions, except that I don't see an option for > Toggle VTK_USE_GL2PS on (useful for printing). Once installed the Examples/Rendering/

Re: 3D plotting library / OpenGL

2004-12-07 Thread Mike C. Fletcher
on *isn't* it's focus, so one of the items from the science category might be more appropriate. Anyway, HTH, Mike Andrew Dalke wrote: I've been looking for a decent 3D plotting library with support for user selection that works under OpenGl, preferable with wxPython. ... What I was

Re: 3D plotting library / OpenGL

2004-12-07 Thread Robert Kern
Andrew Dalke wrote: I've been looking for a decent 3D plotting library with support for user selection that works under OpenGl, preferable with wxPython. For this first project I need to do a 3D scatter plot with different colors and glyphs (spheres, crosses, etc.) for the points. The axes wi

Re: 3D plotting library / OpenGL

2004-12-07 Thread Fernando Perez
Andrew Dalke wrote: > I've been looking for a decent 3D plotting library with support > for user selection that works under OpenGl, preferable with wxPython. > > For this first project I need to do a 3D scatter plot with > different colors and glyphs (spheres, crosses,

3D plotting library / OpenGL

2004-12-07 Thread Andrew Dalke
I've been looking for a decent 3D plotting library with support for user selection that works under OpenGl, preferable with wxPython. For this first project I need to do a 3D scatter plot with different colors and glyphs (spheres, crosses, etc.) for the points. The axes will be labeled

  1   2   >