Re: PyOpenGL: numpy dependency?
"Giovanni Bajo" <[email protected]>
| Newsgroups | gmane.comp.python.opengl.devel |
|---|---|
| Message-ID | <[email protected]> |
On Sun, October 29, 2006 15:30, Mike C. Fletcher wrote: > At the moment it's not easy_install packaged. If you're running a > setup.py develop version, then cvs up in the directory will get you there. OK. Would it be sufficient to release a new alpha version and do a 'setup.py register'? >> OK. I guess you want it fixed as ctypes is an implementation detail of >> PyOpenGL >> after all, don't you? >> > I'm not all that worried about it. Lists/tuples are *far* less > efficient than numpy or ctypes arrays. The ctypes arrays behave much > like lists-of-numbers or lists-of-lists-of-numbers, but are more > efficient, especially if you're going to pass the data back in. That > said, yes, would be nice to see it go all the way, just for completeness. Thinking *exclusively* of OpenGL matrices, you probably want to manipulate them with some matrix class. So, either you pass in numpy matrices (and want numpy matrices back), or you probably have your custom matrix class (like in my case), convert it to a Python list-of-numbers, and want a list-of-numbers back to convert it to my custom format. I think converting back and forth 16 values is not going to be performance sensitive in most situations. Giovanni Bajo ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ PyOpenGL Homepage http://pyopengl.sourceforge.net