appropriate graphics Lib?
Mike C. Fletcher
mcfletch at home.com
Wed Sep 5 00:19:54 EDT 2001
More information about the Python-list mailing list
Wed Sep 5 00:19:54 EDT 2001
- Previous message (by thread): appropriate graphics Lib?
- Next message (by thread): appropriate graphics Lib?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Just realised (I responded to Bob earlier off list saying PyOpenGL should work) that I should mention OpenGLContext (the testing/demo/learning context for PyOpenGL). With the absolute latest version of that (i.e. a CVS version from today) you could do this by: Create IndexedFaceset Objects (likely with textures) for each object Put each IFS inside a Transform object with a name property Register a mouse-click handler for each name in which you're interested Then drop the scenegraph into one of the "testing context" objects (see the tests directory for a raft of samples) and you're off to the races using GLUT, PyGame or wxPython as your external GUI. Enjoy, Mike -----Original Message----- From: python-list-admin at python.org [mailto:python-list-admin at python.org]On Behalf Of Pete Shinners Sent: September 4, 2001 18:41 To: python-list at python.org Subject: Re: appropriate graphics Lib? Bob Roberts wrote: > I want to write a program that involves drawing irregularly shaped > objects on the screen, selecting them with a mouse, and changing their > color. What would be an appropriate graphics library for this? > pygame? pyOpenGL? wxPython? Others? pygame might not be the best fit here. it does have code to draw irregular polygons, but you'd need to do your own intersection tests for them. (although if you only care about bounding-box type selection it could be your friend) i hear tkinter has a pretty powerful canvas widget that i supports these things. i'm guessing wxPython would have something like that too. pyopengl can also do selection, but it'll be more complex than doing it with one of these higher level canvas widgets you get with some gui's -- http://mail.python.org/mailman/listinfo/python-list
- Previous message (by thread): appropriate graphics Lib?
- Next message (by thread): appropriate graphics Lib?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list