You can subscribe to this list here.
2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(4) |
Jul
(1) |
Aug
|
Sep
(15) |
Oct
(32) |
Nov
(35) |
Dec
(48) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2001 |
Jan
(46) |
Feb
(22) |
Mar
(65) |
Apr
(49) |
May
(22) |
Jun
(29) |
Jul
(51) |
Aug
(34) |
Sep
(32) |
Oct
(46) |
Nov
(30) |
Dec
(32) |
2002 |
Jan
(48) |
Feb
(4) |
Mar
(20) |
Apr
(28) |
May
(13) |
Jun
(34) |
Jul
(51) |
Aug
(15) |
Sep
(15) |
Oct
(35) |
Nov
(15) |
Dec
(20) |
2003 |
Jan
(31) |
Feb
(111) |
Mar
(41) |
Apr
(28) |
May
(36) |
Jun
(29) |
Jul
(27) |
Aug
(29) |
Sep
(47) |
Oct
(28) |
Nov
(7) |
Dec
(26) |
2004 |
Jan
(44) |
Feb
(9) |
Mar
(17) |
Apr
(26) |
May
(58) |
Jun
(13) |
Jul
(44) |
Aug
(64) |
Sep
(30) |
Oct
(11) |
Nov
(21) |
Dec
(28) |
2005 |
Jan
(29) |
Feb
(11) |
Mar
(11) |
Apr
(22) |
May
(85) |
Jun
(46) |
Jul
(17) |
Aug
(18) |
Sep
(14) |
Oct
(22) |
Nov
(1) |
Dec
(45) |
2006 |
Jan
(20) |
Feb
(36) |
Mar
(18) |
Apr
(24) |
May
(21) |
Jun
(48) |
Jul
(23) |
Aug
(20) |
Sep
(10) |
Oct
(41) |
Nov
(46) |
Dec
(40) |
2007 |
Jan
(40) |
Feb
(20) |
Mar
(13) |
Apr
(6) |
May
(24) |
Jun
(31) |
Jul
(30) |
Aug
(11) |
Sep
(11) |
Oct
(10) |
Nov
(56) |
Dec
(64) |
2008 |
Jan
(64) |
Feb
(22) |
Mar
(63) |
Apr
(28) |
May
(25) |
Jun
(36) |
Jul
(11) |
Aug
(9) |
Sep
(14) |
Oct
(41) |
Nov
(46) |
Dec
(130) |
2009 |
Jan
(95) |
Feb
(41) |
Mar
(24) |
Apr
(35) |
May
(53) |
Jun
(67) |
Jul
(48) |
Aug
(48) |
Sep
(86) |
Oct
(75) |
Nov
(64) |
Dec
(52) |
2010 |
Jan
(57) |
Feb
(31) |
Mar
(28) |
Apr
(40) |
May
(25) |
Jun
(42) |
Jul
(79) |
Aug
(31) |
Sep
(49) |
Oct
(66) |
Nov
(38) |
Dec
(25) |
2011 |
Jan
(29) |
Feb
(18) |
Mar
(44) |
Apr
(6) |
May
(28) |
Jun
(31) |
Jul
(36) |
Aug
(24) |
Sep
(30) |
Oct
(23) |
Nov
(21) |
Dec
(27) |
2012 |
Jan
(14) |
Feb
(11) |
Mar
(2) |
Apr
(48) |
May
(7) |
Jun
(32) |
Jul
(22) |
Aug
(25) |
Sep
(31) |
Oct
(32) |
Nov
(21) |
Dec
(17) |
2013 |
Jan
(44) |
Feb
(27) |
Mar
(3) |
Apr
(1) |
May
|
Jun
|
Jul
(3) |
Aug
(4) |
Sep
(1) |
Oct
(7) |
Nov
(5) |
Dec
(5) |
2014 |
Jan
|
Feb
|
Mar
|
Apr
(3) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(3) |
Dec
(2) |
2015 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
2017 |
Jan
(7) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2019 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Bruce S. <Bru...@nc...> - 2007-02-23 14:09:40
|
Thanks! Updated. Bruce Sherwood Douglas S. Blank wrote: > A couple of typos etc: > > You refer to positions in mytup with mytup(1) which should be mytup[1]. > > Your html document doesn't have a TITLE section. > > Also, your class names have lowercase letters and your instance names have > uppercase letters. Maybe better to start out these Python newb's on the > right foot :) > > I think many experienced programmers might like ipython, too. Might be > worth mentioning. > > Thanks for the notes; I'll point people to it! > > -Doug > > On Thu, February 22, 2007 11:37 pm, Bruce Sherwood said: > >> From time to time I've seen colleagues with extensive programming >>experience but who are new to Python trip over some aspects of Python >>that are different and unexpected. In response I've written a note about >>what I perceive to be the most common traps and posted the note on the >>home page of vpython.org (labeled "Python for experienced programmers"). >> >>If you see some other issues that should be included in this summary, >>I'd be grateful to have them pointed out. >> >>And if you think this might be useful elsewhere within the Python >>community, feel free to point people to it or copy it to other places. >> >>Thanks. >> >>Bruce Sherwood > > > |
From: Bruce S. <Bru...@nc...> - 2007-02-23 04:36:56
|
From time to time I've seen colleagues with extensive programming experience but who are new to Python trip over some aspects of Python that are different and unexpected. In response I've written a note about what I perceive to be the most common traps and posted the note on the home page of vpython.org (labeled "Python for experienced programmers"). If you see some other issues that should be included in this summary, I'd be grateful to have them pointed out. And if you think this might be useful elsewhere within the Python community, feel free to point people to it or copy it to other places. Thanks. Bruce Sherwood |
From: Bruce S. <Bru...@nc...> - 2007-02-21 02:04:08
|
I have no knowledge of the possible fate of PyGeo. I don't know whether Arthur had collaborators on PyGeo, and I don't know what SourceForge would do if someone came forward to volunteer to take over the project. Bruce Sherwood Joel Kahn wrote: > Bruce Sherwood posted the grim news: > > >>Arthur Jay Siegel, 55, died Tuesday evening of an unexpected heart >>attack. An international business consultant and a self-taught >>mathematician/computer scientist, he invented PyGeo--a software used > > >>to create interactive, three-dimensional geometric spaces. . . . > > > With Art gone, is anyone working on PyGeo? The system has some very > interesting and useful features, and it would be a pity for it to > fade away as orphanware. Perhaps the same people at NSF who arranged > the VPython grant might be interested in supporting future PyGeo > development. Any ideas/suggestions, Bruce & company? > > Joel > > > > > ____________________________________________________________________________________ > Bored stiff? Loosen up... > Download and play hundreds of games for free on Yahoo! Games. > http://games.yahoo.com/games/front > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users |
From: Joel K. <jj...@ya...> - 2007-02-20 21:25:19
|
Bruce Sherwood posted the grim news: >Arthur Jay Siegel, 55, died Tuesday evening of an unexpected heart >attack. An international business consultant and a self-taught >mathematician/computer scientist, he invented PyGeo--a software used >to create interactive, three-dimensional geometric spaces. . . . With Art gone, is anyone working on PyGeo? The system has some very interesting and useful features, and it would be a pity for it to fade away as orphanware. Perhaps the same people at NSF who arranged the VPython grant might be interested in supporting future PyGeo development. Any ideas/suggestions, Bruce & company? Joel ____________________________________________________________________________________ Bored stiff? Loosen up... Download and play hundreds of games for free on Yahoo! Games. http://games.yahoo.com/games/front |
From: Anton S. <ant...@gm...> - 2007-02-20 19:35:50
|
Nils Wagner wrote: > Is there a way to call povray from python ? > I found out that it works for single input files > > import os > os.system("povray quickres.ini'[640x480, AA 0.3]'+iwoodexample.pov +fn") > > but how can I apply povray to multiple files woodexample001.pov - > woodexample009.pov ? for filename in pov_file_list: os.system( "povray ... +i%s" % filename ) or, if the filenames are known to fit a pattern, for n in range(count): os.system( "povray ... +iwoodexample%03d" % n ) (".pov" need not be specified in the +i field.) -- Anton Sherwood, http://www.ogre.nu/ |
From: Bruce S. <Bru...@nc...> - 2007-02-20 18:32:45
|
The package "vpython" is the stable version in CVS. The package "vpython-core2" is the beta version with many enhancements (see the "Recent developments" section of vpython.org). It has serious bugs on Windows but seems to work okay on Linux. Since the actual CVS tree for vpython-core2 is in some flux, you might better download visual-4.beta14.tar.bz2 from http://sourceforge.net/projects/visualpython or visual-3.2.9.tar.bz2 for the stable version from vpython.org. Bruce Sherwood Nils Wagner wrote: > Hi there, > > Which packages do I need (cvisual,visual,vpython,vpython-core2) > to build/install visualpython from cvs (Linux box OpenSuSE 10.2) > > http://visualpython.cvs.sourceforge.net/visualpython/ > > Nils > |
From: Nils W. <nw...@ia...> - 2007-02-20 17:26:54
|
Hi there, Is there a way to call povray from python ? I found out that it works for single input files import os os.system("povray quickres.ini'[640x480, AA 0.3]'+iwoodexample.pov +fn") but how can I apply povray to multiple files woodexample001.pov - woodexample009.pov ? Any pointer ? Nils |
From: Nils W. <nw...@me...> - 2007-02-20 15:11:06
|
Hi there, Which packages do I need (cvisual,visual,vpython,vpython-core2) to build/install visualpython from cvs (Linux box OpenSuSE 10.2) http://visualpython.cvs.sourceforge.net/visualpython/ Nils |
From: Bruce S. <Bru...@nc...> - 2007-02-19 22:25:54
|
You can say a.norm(). Joe Heafner wrote: > To compute the magnitdue of a vector, there are three > options. One can do it explicitly in terms of a > vector's components. One can use the mag(a) function. > One can use the a.mag method to get the magnitude of > a. It would be handy if there were a corresponding > method for getting the norm of a vector, as in a.norm. > There is already a norm() function so I'm thinking > adding a method wouldn't be difficult. > > Joe > > > > ____________________________________________________________________________________ > Finding fabulous fares is fun. > Let Yahoo! FareChase search your favorite travel sites to find flight and hotel bargains. > http://farechase.yahoo.com/promo-generic-14795097 > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users |
From: Joe H. <bet...@ya...> - 2007-02-19 21:00:03
|
To compute the magnitdue of a vector, there are three options. One can do it explicitly in terms of a vector's components. One can use the mag(a) function. One can use the a.mag method to get the magnitude of a. It would be handy if there were a corresponding method for getting the norm of a vector, as in a.norm. There is already a norm() function so I'm thinking adding a method wouldn't be difficult. Joe ____________________________________________________________________________________ Finding fabulous fares is fun. Let Yahoo! FareChase search your favorite travel sites to find flight and hotel bargains. http://farechase.yahoo.com/promo-generic-14795097 |
From: Ting L. <dri...@gm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ZXJlIGlzIG9idmlvdXMKYmVuZWZpdCB0byBub3QgbmVjZXNzYXJpbHkgaGF2 aW5nIG9iamVjdHMgaGlkaW5nIG9uZSBhbm90aGVyLgoKU28sIHRvIG1lLCBpdHMgYSBtYXR0ZXIg b2YgZ2V0dGluZyB0aGUgZGVmYXVsdHMgcmlnaHQuIEFuZCBJIHRoaW5rIHRoZQpnZW5lcmFsIFB5 dGhvbiBkZXNpZ24gcGhpbG9zb3BoeSBpcyBhIGdvb2Qgb25lIHRvIGZvbGxvdyAtIHdoaWNoIEkg dGhpbmsKaXMgYWx3YXlzIHRoaW5raW5nIGFib3V0IHRoZSB0cmFkZS1vZmZzIGJldHdlZW4gc2lt cGxpY2l0eSwgYW5kIHB1dHRpbmcKcG93ZXIgaW50byB0aGUgaGFuZHMgb2YgdGhlIHVzZXIgdG8g dXNlIGFzIHRoZXkgd2lsbC4KCkFydAoKQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBA QAo= |
From: Ting L. <dri...@gm...> - 2007-02-14 10:12:45
|
Hello, I have a display problem with my Vpython program. In the scene, I need to draw thousands of spheres and cylinders, and I also need to switch the visibility of some groups of them on and off, fast sometimes. I used a list to store all the objects and then loop over each object to change its visible property. The problem is When I set visible to 1 for a group of objects by loop, then in the following code I immediately change visible to 0 for a sub-group of them, I found the whole group first displayed then the objects in the sub-group disappeared (because I set them to be invisible). When I repeat this procedure quickly, this problem cause ugly 'flashing'. (some object appear then disappear.) ... for o in objects: o.visible = 1 ... for o in objects[start:end]: o.visible = 0 ... Is there a better way to set the visibility of a group of objects more efficiently? According to the VPython doc, I can group some objects into one frame, then I can move or rotate them as a whole. But to change the visible property, I still need loop, right? One guess of mine is this problem is related to the display mechanism of Vpython. VPython doesn't have a 'redraw' or 'UpdateView' or something like that exposed to the user. Once you draw an object, it call the internal 'redraw' method implicitly. If this is true, then I think we need an explicit 'redraw' method to control the display of the scene we don't want them to display immediately. This is in fact the intention of the 'double buffer' in OpenGL. I know I can combine the two loops into one if I can know the visibility of all the objects in a prior. Thing maybe becomes better. But the problem I explained above remains, because during the looping, if an object will show up immediately after setting the 'visible=1', the objects in the scene will look like cabbages emerging or growing from underground! I do prefer to hide them first and display all of them at the same time. I have to say I'm not very familiar with Vpython. So if somebody can help me to clarify these problems, it would be very appreciated! Ting |
From: Jon S. <js...@gm...> - 2007-02-08 04:10:43
|
This is very sad news. There was something special about Arthur--a dedication to beauty, clarity, and a desire to make a contribution--that came though in his projects and in his emails. On 2/6/07, Bruce Sherwood <Bru...@nc...> wrote: > > From the New York Time obituaries: > > Arthur Jay Siegel > SIEGEL - Arthur Jay , 55, died Tuesday evening of an unexpected heart > attack. An international business consultant and a self-taught > mathematician/computer scientist, he invented PyGeo - a software used to > create interactive, three-dimensional geometric spaces. He grew up in > East Meadow. He and his loving wife of 29 years, Carol, moved four years > ago to Yorktown Heights. He treasured a close friendship with his son, > Benjamin, 23. In addition to Ben and Carol, Arthur is survived by his > father, Jacob Siegel, sisters Beth Siegel, Marian Siegel and Marsha > Berzon and many loving nieces, nephews, cousins, in-laws and friends. > Funeral services will be held at Riverside Memorial Chapel, 21 W. Broad > Street, Mount Vernon, New York at noon on Sunday. > > -------------------------------------- > > I'm thunderstruck by this bolt out of the blue. As you know, Arthur was > doing wonderful work on the beta version of VPython. I never met him in > person, but he was a good colleague. I had been amazed by how quickly he > came up to speed on complex aspects of Visual. I'll miss him. > > Bruce Sherwood > > > ------------------------------------------------------------------------- > 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 > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users > -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Jon Schull, Ph.D. Associate Professor Information Technology Rochester Institute of Technology 102 Lomb Memorial Drive Rochester, New York 14623 sc...@di... 585-738-6696 |
From: Bruce S. <Bru...@nc...> - 2007-02-06 22:40:50
|
From the New York Time obituaries: Arthur Jay Siegel SIEGEL - Arthur Jay , 55, died Tuesday evening of an unexpected heart attack. An international business consultant and a self-taught mathematician/computer scientist, he invented PyGeo - a software used to create interactive, three-dimensional geometric spaces. He grew up in East Meadow. He and his loving wife of 29 years, Carol, moved four years ago to Yorktown Heights. He treasured a close friendship with his son, Benjamin, 23. In addition to Ben and Carol, Arthur is survived by his father, Jacob Siegel, sisters Beth Siegel, Marian Siegel and Marsha Berzon and many loving nieces, nephews, cousins, in-laws and friends. Funeral services will be held at Riverside Memorial Chapel, 21 W. Broad Street, Mount Vernon, New York at noon on Sunday. -------------------------------------- I'm thunderstruck by this bolt out of the blue. As you know, Arthur was doing wonderful work on the beta version of VPython. I never met him in person, but he was a good colleague. I had been amazed by how quickly he came up to speed on complex aspects of Visual. I'll miss him. Bruce Sherwood |
From: Joel K. <jj...@ya...> - 2007-02-06 16:07:55
|
A site to look at: http://www.current.tv/watch/21639966 As I indicated in the description, VPython was used to generate the video. I captured the animation with CamStudio, which co-operates fairly well with VPython at low resolutions (this was 320x240), but which can run into some problems if the rez gets too high. Environments like Current might be good places for students to experiment with digital videos made from VPython. Since Current (and certain similar sites) pay for videos that they use, there may also be some fund-raising potential. Feel free to register with Current and greenlight my video; if *I* get paid enough for VPython-based work, it will enable me to spend more time on it and make a greater contribution to its progress. :-) Spread the word. . . . Joel ____________________________________________________________________________________ Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com |
From: Bruce S. <Bru...@nc...> - 2007-02-02 15:06:58
|
Sorry, but I don't understand what it is you're asking about. I don't=20 see any rotation being carried out. Please tell us in some detail what=20 it is you're trying to do, and what you think isn't working properly. It=20 would help a lot to simplify your example to its essence, just enough to=20 demonstrate the problem, without extraneous features. Bruce Sherwood Stefan Paulick wrote: > When rotating a frame inside a class, it starts to move and rotates aro= und=20 > some mysterious center. > I could not find out how to calculate origin for a propper offset.=20 > > Please find attached my example. I would be glad for any hint.=20 > > Thanks in advance,=20 > > Mit freundlichen Gr=FC=DFen / With kindest regards=20 > > Stefan Paulick=20 > > > http://www.urbeli.com > mailto://ste...@ur... > /*----------------------*/=20 > > import time > import visual=20 > > b =3D visual.box(height =3D .1) > c =3D visual.cylinder(pos=3D(2,2,2),axis=3D(2,0,0),radius=3D.1) > f =3D visual.frame() > d =3D visual.cylinder(frame=3Df,pos=3D(1,2,1),axis=3D(2,0,0),radius=3D.= 1) > e =3D visual.cylinder(pos=3D(0,0,0),axis=3D(2,0,0),radius=3D.1) > e.pos =3D (3,2,3)=20 > > class cC(): > def __init__(self, pos=3D(0,0,0), axis=3D(2,0,0)): > self.pos =3D visual.vector(pos) > self.axis =3D visual.vector(axis) > self.f =3D visual.frame() > self.g =3D=20 > visual.cylinder(frame=3Df,pos=3Dself.pos,axis=3Dself.axis,radius=3D.1) > self.g.pos =3D visual.vector(0,2,0) > > def wpos(self,local): > x_axis =3D visual.norm(f.axis) > z_axis =3D visual.norm(visual.cross(f.axis, f.up)) > y_axis =3D visual.norm(visual.cross(z_axis, x_axis)) > #return x_axis,y_axis,z_axis > return self.f.pos+local[0]*x_axis+local[1]*y_axis+local[2]*z_axi= s > > u =3D cC()=20 > > ax =3D 0 > cnt =3D 0.=20 > > while 1: > print u.wpos((1,2,0)) > > if ax =3D=3D 0: > c.rotate(angle=3D.15, axis=3D(0,1,0), origin=3D(3,2,2)) > f.rotate(angle=3D.15, axis=3D(0,1,0), origin=3D(2,2,1)) > e.rotate(angle=3D.15, axis=3D(0,1,0), origin=3D(4,2,3)) > u.f.rotate(angle=3D.15, axis=3D(0,1,0), origin=3D(1,2,0))=20 > > c.color =3D (1,1,0) > elif ax =3D=3D 1: > c.rotate(angle=3D.15, axis=3D(0,0,1), origin=3D(3,2,2)) > f.rotate(angle=3D.15, axis=3D(0,0,1), origin=3D(2,2,1)) > e.rotate(angle=3D.15, axis=3D(0,0,1), origin=3D(4,2,3)) > u.f.rotate(angle=3D.15, axis=3D(0,0,1), origin=3D(1,2,0)) > c.color =3D (1,0,0) > elif ax =3D=3D 2: > c.rotate(angle=3D.15, axis=3D(1,0,0), origin=3D(3,2,2)) > f.rotate(angle=3D.15, axis=3D(1,0,0), origin=3D(2,2,1)) > e.rotate(angle=3D.15, axis=3D(1,0,0), origin=3D(4,2,3)) > u.f.rotate(angle=3D.15, axis=3D(1,0,0), origin=3D(1,2,0)) > c.color =3D (0,0,1)=20 > > cnt +=3D1 > ## print cnt,ax > if cnt > 10: > cnt =3D 0 > ax +=3D 1 > if ax > 2: > ax =3D 0 > time.sleep(.1) > > -----------------------------------------------------------------------= -- > Using Tomcat but need to do more? Need to support web services, securit= y? > 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 Geron= imo > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat= =3D121642 > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users > =20 |
From: Stefan P. <ste...@ur...> - 2007-02-01 16:28:37
|
When rotating a frame inside a class, it starts to move and rotates around some mysterious center. I could not find out how to calculate origin for a propper offset. Please find attached my example. I would be glad for any hint. Thanks in advance, Mit freundlichen Grüßen / With kindest regards Stefan Paulick http://www.urbeli.com mailto://ste...@ur... /*----------------------*/ import time import visual b = visual.box(height = .1) c = visual.cylinder(pos=(2,2,2),axis=(2,0,0),radius=.1) f = visual.frame() d = visual.cylinder(frame=f,pos=(1,2,1),axis=(2,0,0),radius=.1) e = visual.cylinder(pos=(0,0,0),axis=(2,0,0),radius=.1) e.pos = (3,2,3) class cC(): def __init__(self, pos=(0,0,0), axis=(2,0,0)): self.pos = visual.vector(pos) self.axis = visual.vector(axis) self.f = visual.frame() self.g = visual.cylinder(frame=f,pos=self.pos,axis=self.axis,radius=.1) self.g.pos = visual.vector(0,2,0) def wpos(self,local): x_axis = visual.norm(f.axis) z_axis = visual.norm(visual.cross(f.axis, f.up)) y_axis = visual.norm(visual.cross(z_axis, x_axis)) #return x_axis,y_axis,z_axis return self.f.pos+local[0]*x_axis+local[1]*y_axis+local[2]*z_axis u = cC() ax = 0 cnt = 0. while 1: print u.wpos((1,2,0)) if ax == 0: c.rotate(angle=.15, axis=(0,1,0), origin=(3,2,2)) f.rotate(angle=.15, axis=(0,1,0), origin=(2,2,1)) e.rotate(angle=.15, axis=(0,1,0), origin=(4,2,3)) u.f.rotate(angle=.15, axis=(0,1,0), origin=(1,2,0)) c.color = (1,1,0) elif ax == 1: c.rotate(angle=.15, axis=(0,0,1), origin=(3,2,2)) f.rotate(angle=.15, axis=(0,0,1), origin=(2,2,1)) e.rotate(angle=.15, axis=(0,0,1), origin=(4,2,3)) u.f.rotate(angle=.15, axis=(0,0,1), origin=(1,2,0)) c.color = (1,0,0) elif ax == 2: c.rotate(angle=.15, axis=(1,0,0), origin=(3,2,2)) f.rotate(angle=.15, axis=(1,0,0), origin=(2,2,1)) e.rotate(angle=.15, axis=(1,0,0), origin=(4,2,3)) u.f.rotate(angle=.15, axis=(1,0,0), origin=(1,2,0)) c.color = (0,0,1) cnt +=1 ## print cnt,ax if cnt > 10: cnt = 0 ax += 1 if ax > 2: ax = 0 time.sleep(.1) |
From: Mark H. <ma...@mi...> - 2007-01-31 23:13:40
|
Self follow-up: Rolled back to visual 0.3.2.9 and the segfault with pylab is not present there; both the visual object and pylab graph are rendered correctly. Sorry vpython, looks like the bug is due to your new beta. -Mark Mark Heslep wrote: > Version information: > --------------------------- > Vpython visual-4.beta14 > In [2]: visual.__version__ > Out[2]: '1.0.1' > Python 2.4.4, Fedora Core 6 updated. > python-matplotlib-0.87.7-3.fc6 > > Description: > A segfault is reliably produced when running vpython along with pylab / > matplotlib functions: > > cut------------------------------------------ > from visual import * > from pylab import * > > ball = sphere( pos=(0,0,0), color=color.red) > x=arrange(0,10,0.1) > y=sin(2*pi*x) > plot(x,y) > cut ------------------------------------------ > > > The segfault actually triggers on the plot call, but removing _either_ > the visual sphere call _or_ the pylab plot call eliminates the segfault, > with the either the plot or the ball rendering correctly. > Ive filed a bug w/ vpython. Any ideas? > > Regards, > Mark > > > ------------------------------------------------------------------------- > 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 > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > |
From: Mark H. <ma...@mi...> - 2007-01-31 23:05:38
|
Version information: --------------------------- Vpython visual-4.beta14 In [2]: visual.__version__ Out[2]: '1.0.1' Python 2.4.4, Fedora Core 6 updated. python-matplotlib-0.87.7-3.fc6 Description: A segfault is reliably produced when running vpython along with pylab / matplotlib functions: cut------------------------------------------ from visual import * from pylab import * ball = sphere( pos=(0,0,0), color=color.red) x=arrange(0,10,0.1) y=sin(2*pi*x) plot(x,y) cut ------------------------------------------ The segfault actually triggers on the plot call, but removing _either_ the visual sphere call _or_ the pylab plot call eliminates the segfault, with the either the plot or the ball rendering correctly. Ive filed a bug w/ vpython. Any ideas? Regards, Mark |
From: Chris L. <chr...@sp...> - 2007-01-31 20:40:35
|
I'm trying to find a flexible way of storing visual objects in a database. I had considered building a set of schema's to describe the objects but a desire to store other parameters along with the visual objects made me feel that might not be as maintainable as I might like so I thought of pickling visual objects and saving the serialized output. Upon trying this I get: Traceback (most recent call last): File "<pyshell#36>", line 1, in <module> pickle.dump(data, output) File "C:\Python25\lib\pickle.py", line 1362, in dump Pickler(file, protocol).dump(obj) File "C:\Python25\lib\pickle.py", line 224, in dump self.save(obj) File "C:\Python25\lib\pickle.py", line 286, in save f(self, obj) # Call unbound method with explicit self File "C:\Python25\lib\pickle.py", line 562, in save_tuple save(element) File "C:\Python25\lib\pickle.py", line 331, in save self.save_reduce(obj=obj, *rv) File "C:\Python25\lib\pickle.py", line 401, in save_reduce save(args) File "C:\Python25\lib\pickle.py", line 286, in save f(self, obj) # Call unbound method with explicit self File "C:\Python25\lib\pickle.py", line 562, in save_tuple save(element) File "C:\Python25\lib\pickle.py", line 295, in save self.save_global(obj) File "C:\Python25\lib\pickle.py", line 748, in save_global (obj, module, name)) PicklingError: Can't pickle <type 'Boost.Python.instance'>: it's not found as Boost.Python.instance >>> Is this a non starter or might it be worthwhile to strip out the parameters of a visual object and repopulate the object upon pickle.load()? |
From: Bruce S. <Bru...@nc...> - 2007-01-30 04:18:44
|
See discussion in the FAQ at vpython.org. Bruce Sherwood Chandra Prayaga wrote: > Is it possible to capture a VPython animation as a movie, or is there a method of putting the animation on the web? > > Chandra Prayaga > Physics department > University of West Florida > cpr...@uw... > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users |
From: Chandra P. <cpr...@uw...> - 2007-01-30 04:13:00
|
Is it possible to capture a VPython animation as a movie, or is there a = method of putting the animation on the web? =20 Chandra Prayaga Physics department University of West Florida cpr...@uw... =20 =20 |
From: Bruce S. <Bru...@nc...> - 2007-01-29 14:25:30
|
See the curve object; just give starting and ending locations to draw a line. Bruce Sherwood siggi wrote: > Hi all, > > I am a complete newbie to VPython, but I got hooked. I > tried the bouncing ball, enriched it with audio from > Pygame, and the simple function plot; so little code, > so great > effects! > > My first problem: how do I draw a line from x to y? I > know how to plot functions with VPython, such as > x = f(x), see above > > but how do I plot a 2D function such as > x = f1(x) > y = f2(y) > draw line between x and y? > > In Python it is done, e.g., like this > > while theta < 75.39: > r = math.exp(math.cos(theta))- > 2*math.cos(4*theta)+(math.sin(theta/12))**5 > # convert from polar coordinates > x = r*math.cos(theta) > y = r*math.sin(theta) > # scale to canvas size > xx = (x*30) + 150 > yy = (y*30) + 150 > if (theta == 0.0): > Canvas.Line(self.canvas, xx, yy, xx, yy) > else: > Canvas.Line(self.canvas, xOld, yOld, xx, yy) > self.canvas.update_idletasks() > xOld = xx > yOld = yy > theta = theta + 0.02 > > which, in this case, creates a butterfly curve > (from http://www.pythonmania.de/article/pybutt.html) > > Unfortunately, browsing tutorials and documents on > www.vpython.org, I could not find a "line " command. > If there would be one, 3D "butterfly" curves > would be possible, too. > > Thanks, > > siggi > > > > > > > ____________________________________________________________________________________ > Any questions? Get answers on any topic at www.Answers.yahoo.com. Try it now. > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users > |
From: siggi <sm...@ya...> - 2007-01-29 12:28:05
|
Hi all, I am a complete newbie to VPython, but I got hooked. I tried the bouncing ball, enriched it with audio from Pygame, and the simple function plot; so little code, so great effects! My first problem: how do I draw a line from x to y? I know how to plot functions with VPython, such as x = f(x), see above but how do I plot a 2D function such as x = f1(x) y = f2(y) draw line between x and y? In Python it is done, e.g., like this while theta < 75.39: r = math.exp(math.cos(theta))- 2*math.cos(4*theta)+(math.sin(theta/12))**5 # convert from polar coordinates x = r*math.cos(theta) y = r*math.sin(theta) # scale to canvas size xx = (x*30) + 150 yy = (y*30) + 150 if (theta == 0.0): Canvas.Line(self.canvas, xx, yy, xx, yy) else: Canvas.Line(self.canvas, xOld, yOld, xx, yy) self.canvas.update_idletasks() xOld = xx yOld = yy theta = theta + 0.02 which, in this case, creates a butterfly curve (from http://www.pythonmania.de/article/pybutt.html) Unfortunately, browsing tutorials and documents on www.vpython.org, I could not find a "line " command. If there would be one, 3D "butterfly" curves would be possible, too. Thanks, siggi ____________________________________________________________________________________ Any questions? Get answers on any topic at www.Answers.yahoo.com. Try it now. |
From: Jonathan B. <jbr...@ea...> - 2007-01-26 23:59:36
|
On Thu, 2007-01-25 at 12:53 +0100, Ting Li wrote: > Hi, fans, > > I'm a newbie. > > VPython is really easy to use. But it looks too simple. > I wonder if there is a parameter to customize the number of faces used > to draw a sphere (or cylinder ...)? I cannot find it. By default, > VPython draws a pretty smooth sphere, I guess the number of slice > should be larger than 50. > > Sphere(pos=(*,*,*),color=color.red) > > However, low polygon objects are needed. This control is necessary to > make smooth animation, especially when the number of objects is large. > > I know VPython gives a way to build object by user, face. > But can the authors make life easier? > > Another question is also about the rendering efficiency. > I don't know if VPython uses gllist internally. VPython 4 uses GL displaylists, whereas 3.x uses vertex arrays (still fairly fast). > (sorry, haven't > studied the source) ,and if VPython support object 'instance'? (A > instance of an object doesn't need to rebuild the vertex array at a > new position but just copy the vertex from the original object and > perform translation, scale, or zoom. ) Where possible, objects share the same geometry to conserve memory and for speed. Objects with instance-specific geometry include arrow, ring, curve, convex, points, and faces. -Jonathan |