Re: [PyOpenGL-Users] Problems creating a simple 3D engine
Brought to you by:
mcfletch
From: Mike C. F. <mcf...@ro...> - 2004-11-11 19:03:01
|
soul wrote: >Hi! I'm creating a simple 3D engine using pyopengl. At firt time, i >developing camera movement and I have found with these problems. > >- To implement mouse view, i must put mouse position in the middle of my >aplicación windows and i don't know how to do it? Maybe using pySDL ? I >don't know > > Not really sure what you're trying to do, whether you mean "moving the mouse cursor to the center of the window", which is often called "warping" the pointer, or whether you mean you want access to the mouse position in your window. Both are functions of the GUI library you use (i.e. PyGame, GLUT, Tkinter, FxPy or wxPython). >- How can i put a pyopengl window in a wxpython aplication ? > > There is a wxGLCanvas class which provides a fairly generic OpenGL canvas. You can see such a canvas in the wxPython demo, as well as in OpenGLContext's wxcontext.py module. >- There are some way to solve the "fedora core 2/glut functions like >glutKeyboardUpFunc" problem ? or i must wait fot next version on >pyopengl ? > > You'll have to wait for the next release or use the CVS repository and rebuild the wrappers with swig 1.3.13. I'll be trying to get enough time to do a release this upcoming weekend. BTW, you might want to check out some of the other simple Python 3D scenegraph engines, such as Zoe or SPyRE, you can find links to them here: http://www.vrplumber.com/py3d.py?category=retained and consider using them as a starting point (keeping in mind that those two are LGPL-licensed). Have fun, Mike ________________________________________________ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com |