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: Arthur <ajs...@op...> - 2007-01-25 13:54:46
|
dri...@gm... wrote: > > Hi, guys, > > As you know, one of the most successful aspect of Python is its > extendibility (module support). > > VPython should also follow this spirit, I think. > Should there be a way to expose a window handler/render context to the user? Again, Bruce and Jonathan seemed to have this very much in mind in architecting the 4.xxx series and, again, a lot of the infrastructure is there. Essentially a windowing API is getting exposed. But, more generally, .. Bruce's allusion to some delay in the release of 4.xxx as a final product is also related largely to issues with windowing code - particularly in respect the winapi code on Windows. Of all the code of the VPython 4.xxx base this is probably the least finished. The problem is that finishing the code takes someone interested in winapi code on Windows. Considering that Microsoft has lost most of its interest in it, its not surprising that such a person is hard to find. And after trying some, I realize it is not I. Though we have gotten it past its most critical issues. One thing being explored is cutting bait on the winapi code, and seeing about a crossplatform GTK build. I am working - haven't had much time recently - on getting a coherent GTK build for Windows. I expect to get there - but can't be sure. Art |
From: Arthur <ajs...@op...> - 2007-01-25 13:31:56
|
driverz wrote: > Thanks, Art, > > got it! > So we just need to wait;) > > By the way, I would like to remind the authors, the simplicity of vpython > is vital! Do not lose it when you are trying to provide more! > (you are working on adding lighting, texture, transparency...) > It looks like a real 3D game engine more and more. Be careful! > > Keep VPython simple to use and fast enough, please! > I think this is good advice. I think day-to-day VPython needs little of the fancy graphics stuff, to the extent that it is at the expense of performance. Bruce has been in touch with the original author of VPython, David Scherer, who, I think, expressed similar concerns. OTOH, I think it would be nice if VPython could better step up to the plate for presentation purposes and do the fancy stuff, as well. And I, who do geometric exploration with VPython - not write games, for example - find that transparency to be a great feature. There is obvious benefit to not necessarily having objects hiding one another. So, to me, its a matter of getting the defaults right. And I think the general Python design philosophy is a good one to follow - which I think is always thinking about the trade-offs between simplicity, and putting power into the hands of the user to use as they will. Art |
From: <dri...@gm...> - 2007-01-25 13:17:00
|
Hi, guys, As you know, one of the most successful aspect of Python is its extendibility (module support). VPython should also follow this spirit, I think. Should there be a way to expose a window handler/render context to the user? With them people can draw additional things in 2D/3D in to the same VPython window. e.g. integrate pygame and vpython. Maybe , we are able to do this via win32api python module. Can anybody give some instruction? Ting |
From: driverz <dri...@gm...> - 2007-01-25 13:15:28
|
Thanks, Art, got it! So we just need to wait;) By the way, I would like to remind the authors, the simplicity of vpython is vital! Do not lose it when you are trying to provide more! (you are working on adding lighting, texture, transparency...) It looks like a real 3D game engine more and more. Be careful! Keep VPython simple to use and fast enough, please! Ting -----Original Message----- From: Arthur [mailto:ajs...@op...] Sent: Thursday, January 25, 2007 1:22 PM To: Ting Li Cc: vis...@li... Subject: Re: [Visualpython-users] VPython render efficiency 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. VPython adjusts level of detail for primitives like spheres and cylinders on the fly based on distance from the camera. But I agree that the general level of detail should be under user control. I had pointed out to Bruce that the infrastructure to allow adjustment of level of detail from the default (it would be on a scene by scene basis,not a primitive by primitive bases) is already in the code, and that exposing it to Python was trivial, and provided the code. I've lost track of whether it was checked into CVS. Bruce? Art |
From: Bruce S. <Bru...@nc...> - 2007-01-25 13:12:39
|
As Arthur says, he has been working on this, and will probably check it in to CVS himself (I've been buried under course startup issues). However, he's doing this work in the beta version, and it continues to look like a long process to get the beta version up to the point where it can be the standard version. Bruce Sherwood Arthur wrote: > 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. >> > > VPython adjusts level of detail for primitives like spheres and > cylinders on the fly based on distance from the camera. > > But I agree that the general level of detail should be under user control. > > I had pointed out to Bruce that the infrastructure to allow adjustment > of level of detail from the default (it would be on a scene by scene > basis,not a primitive by primitive bases) is already in the code, and > that exposing it to Python was trivial, and provided the code. > > I've lost track of whether it was checked into CVS. > > Bruce? > > Art > > > ------------------------------------------------------------------------- > 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: Arthur <ajs...@op...> - 2007-01-25 12:22:07
|
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. VPython adjusts level of detail for primitives like spheres and cylinders on the fly based on distance from the camera. But I agree that the general level of detail should be under user control. I had pointed out to Bruce that the infrastructure to allow adjustment of level of detail from the default (it would be on a scene by scene basis,not a primitive by primitive bases) is already in the code, and that exposing it to Python was trivial, and provided the code. I've lost track of whether it was checked into CVS. Bruce? Art |
From: Ting L. <dri...@gm...> - 2007-01-25 11:53:54
|
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. (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. ) Ting |
From: Poul R. <Pou...@sk...> - 2007-01-24 17:15:03
|
The example below gives a strange curve on my computer. Apart from strange (more or less systematic) variations there is a clear tendency that plotting 500 points takes longer and longer time during the run. That's another reason why I ask for a kind of 'clear points' command. How can I change the program so that repeatingly plotting 500 points on the same graph takes approximately the same time? Yours, Poul Riis from time import * from visual.graph import * graph = gdisplay(title='Plotting 500 points several times',x=0, y=0, width=600, xmin=0, xmax=500, height=100,foreground=color.black, background=color.white) countbar = ghbars(delta=10,color=color.blue) countdot= gdots(color=color.red) graph1 = gdisplay(title='Time used to plot 500 points',x=0, y=100, width=600, xmin=0, xmax=100, height=800,foreground=color.black, background=color.white) timegraph=gdots(color=color.red) jmax=500 countbar.plot(pos=(jmax,5)) for i in range(1,100): if (i/2)*2==i: countdot.color=color.red else: countdot.color=color.green t1=clock() for j in range(1,jmax+1): countdot.plot(pos=(j,5)) t2=clock() timegraph.plot(pos=(i,t2-t1)) |
From: Bruce S. <Bru...@nc...> - 2007-01-23 22:00:53
|
If you're not writing a graphics program I think you just want to write=20 a pure Python program. I think you can find on the web tutorials on=20 simple Python programs that response to input. Bruce Sherwood Poul Riis wrote: > Is there a smarter way to do the keyboard interrupt in the following > example? > I don't really need the window but if I make it invisible by uncommenti= ng > the 5th line the program doesn't work as before.=20 >=20 > Yours, > Poul Riis >=20 >=20 >=20 > from visual import * > from time import * > scene.width=3D25 > scene.height=3D25 > #scene.visible=3D0 > oldreadkey=3D0 >=20 > for i in range(1,10): > readkey=3Dscene.kb.keys > print i,readkey > if readkey!=3D0: > break > sleep(0.25) > print "Once again..." >=20 > oldreadkey=3Dreadkey > for i in range(1,10): > readkey=3Dscene.kb.keys > print i,readkey > if readkey>oldreadkey: > break > sleep(0.25) > print "Yet another time..." >=20 > oldreadkey=3Dreadkey > for i in range(1,10): > readkey=3Dscene.kb.keys > print i,readkey > if readkey>oldreadkey: > break > sleep(0.25) > print "The end" >=20 >=20 >=20 > -----------------------------------------------------------------------= - >=20 >=20 >=20 > ########################################### > Denne meddelelse med evt. vedl=E6g er scannet af SkoleKom ved hj=E6lp = af F-Secure virusscanner. >=20 > For yderligere information, > http://forside.skolekom.dk/indhold/punkt1/viruspolitik >=20 >=20 > -----------------------------------------------------------------------= - >=20 > -----------------------------------------------------------------------= -- > 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=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV >=20 >=20 > -----------------------------------------------------------------------= - >=20 > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users |
From: Poul R. <Pou...@sk...> - 2007-01-23 18:41:57
|
Is there a smarter way to do the keyboard interrupt in the following example? I don't really need the window but if I make it invisible by uncommenting the 5th line the program doesn't work as before. Yours, Poul Riis from visual import * from time import * scene.width=25 scene.height=25 #scene.visible=0 oldreadkey=0 for i in range(1,10): readkey=scene.kb.keys print i,readkey if readkey!=0: break sleep(0.25) print "Once again..." oldreadkey=readkey for i in range(1,10): readkey=scene.kb.keys print i,readkey if readkey>oldreadkey: break sleep(0.25) print "Yet another time..." oldreadkey=readkey for i in range(1,10): readkey=scene.kb.keys print i,readkey if readkey>oldreadkey: break sleep(0.25) print "The end" |
From: <wsw...@nc...> - 2007-01-23 04:52:20
|
I have not tested it, but I think what would fix your problem is if you added everything that you wanted to clear into a frame, and then just loo= p through the frame and set everything to not visible. I've ran into the same problems that you're facing and I've used this approach to fix it. ( Like with my pipes.py example on the vpython.org website ) > > Could someone please correct (or comment on) the following (rather > minimal) example. It runs without any error messages but there are some > unwanted lines and trying to clear a graph by putting visble=3D0 doesn'= t > work. > > Yours > Poul Riis > > > > from visual.graph import * > from math import * > from time import * > > graph =3D gdisplay(title=3D'Test',width=3D400, > height=3D300,foreground=3Dcolor.black, background=3Dcolor.white) > graphcurve=3D gcurve(color=3Dcolor.red) > > for i in range (0,360): > graphcurve.plot(pos=3D(i,sin(i/180.0*pi))) > sleep(0.005) > > #painting the curve white, thus clearing it: > graphcurve.color=3Dcolor.white > for i in range (0,360): > graphcurve.plot(pos=3D(i,sin(i/180.0*pi))) > sleep(0.005) > > #another curve in blue: > graphcurve.color=3Dcolor.blue > for i in range (0,360): > graphcurve.plot(pos=3D(i,cos(i/180.0*pi))) > sleep(0.005) > > #Hoping to clear the blue curve...: > graphcurve.visible=3D0 > #Redrawing the curve in green: > graphcurve.color=3Dcolor.green > for i in range (0,360): > graphcurve.plot(pos=3D(i,cos(i/180.0*pi))) > sleep(0.005) > > > > ########################################### > Denne meddelelse med evt. vedl=E6g er scannet af SkoleKom ved hj=E6lp = af > F-Secure virusscanner. > > For yderligere information, > http://forside.skolekom.dk/indhold/punkt1/viruspolitik > -----------------------------------------------------------------------= -- > 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=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV_______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users > |
From: Poul R. <Pou...@sk...> - 2007-01-22 12:40:00
|
Could someone please correct (or comment on) the following (rather minimal) example. It runs without any error messages but there are some unwanted lines and trying to clear a graph by putting visble=0 doesn't work. Yours Poul Riis from visual.graph import * from math import * from time import * graph = gdisplay(title='Test',width=400, height=300,foreground=color.black, background=color.white) graphcurve= gcurve(color=color.red) for i in range (0,360): graphcurve.plot(pos=(i,sin(i/180.0*pi))) sleep(0.005) #painting the curve white, thus clearing it: graphcurve.color=color.white for i in range (0,360): graphcurve.plot(pos=(i,sin(i/180.0*pi))) sleep(0.005) #another curve in blue: graphcurve.color=color.blue for i in range (0,360): graphcurve.plot(pos=(i,cos(i/180.0*pi))) sleep(0.005) #Hoping to clear the blue curve...: graphcurve.visible=0 #Redrawing the curve in green: graphcurve.color=color.green for i in range (0,360): graphcurve.plot(pos=(i,cos(i/180.0*pi))) sleep(0.005) |
From: <jam...@fd...> - 2007-01-22 04:59:56
|
I use the next technique: Examples: #update plot population for dot in self.clgraph.dots: dot.visible=False self.clgraph.dots=[] del self.clgraph.dots del self.clgraph self.clgraph = gdots(gdisplay=self.clwindow) for cl in self.Population: col = color.white if cl.Relevance>0.0: col = color.red self.clgraph.plot(pos=cl.state,color=col) self.Gtrajectory.gcurve.visible = False del self.Gtrajectory self.Gtrajectory = gcurve(gdisplay=self.clwindow,color=color.yellow) Hope this helps. Kind regards... ============================================ Jose Antonio Martin H. Departamento de Sistemas Informáticos y Computación Facultad de Informática Universidad Complutense de Madrid Ciudad universitaria, 28040 Madrid ============================================ ----- Original Message ----- From: "Poul Riis" <Pou...@sk...> To: <vis...@li...> Sent: Sunday, January 21, 2007 8:50 PM Subject: [Visualpython-users] Clear points > How can I clear points, lines and even horizontal bars in a graph window > before redrawing? > > Yours, > Poul Riis > > -------------------------------------------------------------------------------- > > > ########################################### > Denne meddelelse med evt. vedlæg er scannet af SkoleKom ved hjælp af > F-Secure virusscanner. > > For yderligere information, > http://forside.skolekom.dk/indhold/punkt1/viruspolitik > -------------------------------------------------------------------------------- > ------------------------------------------------------------------------- > 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: Bruce S. <Bru...@nc...> - 2007-01-21 21:47:53
|
This isn't documented, so you need to look at the visual.graph module, but you'll find that these graphing objects are built on standard objects, so you can make them invisible. For example, g = gcurve(....) .... g.curve.visible = 0 The module should be revised to let you say directly g.visible = 0. Bruce Sherwood Poul Riis wrote: > How can I clear points, lines and even horizontal bars in a graph window > before redrawing? > > Yours, > Poul Riis |
From: Poul R. <Pou...@sk...> - 2007-01-21 19:50:26
|
How can I clear points, lines and even horizontal bars in a graph window before redrawing? Yours, Poul Riis |
From: Dethe E. <de...@li...> - 2007-01-19 15:56:35
|
http://pyode.sourceforge.net/ Quoting from the site: "PyODE is a Python wrapper for the Open =20 Dynamics Engine, an open-source physics engine." Not specific to Python 2.5, but should work with it, as far as I =20 know. It has Windows installers for Python versions 2.2 - 2.4. --Dethe On 19-Jan-07, at 7:16 AM, Jos=E9 Antonio Mart=EDn H wrote: > Hi, Is there any physics engine for python 2.5 ? > > Indeed, this is not my main proble, I need to simulate a world with =20= > a snake > , so I need to calculate some physics like friction etc... > > thanks. > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > Jose Antonio Martin H. > Departamento de Sistemas Inform=E1ticos y Computaci=F3n > Facultad de Inform=E1tica > Universidad Complutense de Madrid > Ciudad universitaria, 28040 Madrid > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > > ----------------------------------------------------------------------=20= > --- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to =20 > share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?=20 > page=3Djoin.php&p=3Dsourceforge&CID=3DDEVDEV > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users Young children play in a way that is strikingly similar to the way =20 scientists work --Busytown News |
From: <jam...@fd...> - 2007-01-19 15:15:54
|
Hi, Is there any physics engine for python 2.5 ? Indeed, this is not my main proble, I need to simulate a world with a snake , so I need to calculate some physics like friction etc... thanks. ============================================ Jose Antonio Martin H. Departamento de Sistemas Informáticos y Computación Facultad de Informática Universidad Complutense de Madrid Ciudad universitaria, 28040 Madrid ============================================ |
From: Jeremy F. <Jer...@lo...> - 2007-01-17 14:53:32
|
Hello ! I've got few questions about vpython. I'm trying to build a little environnement in which i can control the camera with a program. Below that message is the code i wrote. This is largely inspired from stonehenge.py and display_kernel as advised on the list. It's working ... (i think) but i'm wondering if i'm doing it in the right way .... especially the things like : old = scene.range [....] scene.range=old .. i don't really understand what i'm doing there and using scene.up to compute the orth vector = norm(cross(forward,up)). I thought the up vector was fixed .... to compute the orth vector that corresponds to a local horizontal axis for the camera, i should use a local up axis ... moving as i move my camera ?! am i wrong ? What do you think about it ? Thanks ! Jeremy. #!/usr/bin/env python from visual import * cylinder() def rotate_camera(pan,tilt): old = scene.range newforward = rotate(scene.forward,axis=scene.up,angle=pan) scene.center = scene.mouse.camera+newforward*mag(scene.center-scene.mouse.camera) scene.forward = newforward scene.range = old orth = norm(cross( scene.forward,scene.up)) newforward = rotate(scene.forward,axis = orth,angle=tilt) scene.center = scene.mouse.camera+newforward*mag(scene.center-scene.mouse.camera) scene.forward = newforward scene.range = old while 1: # The camera is moved with the mouse and up,down,left,right keys if scene.kb.keys: # is there an event waiting to be processed? s = scene.kb.getkey() # obtain keyboard information if(s == 'up'): rotate_camera(0,0.1) elif(s=='down'): rotate_camera(0,-0.1) elif(s=='left'): rotate_camera(0.1,0) elif(s=='right'): rotate_camera(-0.1,0) |
From: Martin C. <cos...@wa...> - 2007-01-11 11:18:14
|
Bruce Sherwood wrote: > I've now had two colleagues at two different universities report that they don't find visual listed in Fink for Intel-based Macs. I do find it there on my Intel-based Mac. Any suggestions for what the problem could be? My guess is that you have different definitions of "find visual listed". The Fink web package database has indeed a regrettable bug that doesn't show all the packages available in precompiled binary form. Thus visual-py24-3.2.9-1002-darwin-i386.deb has been available from the Fink bindist server since 09-June-2006, but it isn't shown via the web interface of that repository. However, if you run the appropriate commands (fink selfupdate or apt-get update) on your intel Mac, and you ask that same local machine about the availability of the binary deb, it will show it. And, of course, if you look at what versions are available for installation from source, you will always see a version for intel. -- Martin |
From: Bruce S. <Bru...@nc...> - 2007-01-10 02:33:47
|
I've now had two colleagues at two different universities report that they don't find visual listed in Fink for Intel-based Macs. I do find it there on my Intel-based Mac. Any suggestions for what the problem could be? Bruce Sherwood |
From: Arthur <ajs...@op...> - 2007-01-09 17:27:08
|
Came across this and thought it might be useful for those working with (struggling with) building vpython on the MAC. Adobe's OpenSource (MIT license) ATL library makes extensive use of the Boost libraries, and they create their own Boost patches as they find necessary, until such time those patches find their way into the Boost distribution. http://opensource.adobe.com/wiki/index.php/Annotated_List_of_Boost_Patches The patch to darwin.jam looks extensive, and the patch to gcc.jam looks Apple specific. The patched files themselves are apparently part of the ATL distribution - which looks interesting in and of itself. Hope this might be useful info. Don't know for sure. Art |
From: <jam...@fd...> - 2007-01-06 13:45:00
|
> If I omit the path command the error message reads: > Traceback (most recent call last): > File "E:\python\Lib\site-packages\visual\examples\graphtest1.py", line > 4, in <module> > from visual.graph import * # import graphing features > File "E:\python\visual\__init__.py", line 17, in <module> > import cvisual > ImportError: No module named cvisual Dear Poul I really do not understant how you installed Vpython. This is the standard way of a vphython installation, indeed for all packages "E:\python\Lib\site-packages\visual\examples\graphtest1.py", so , under Python\Lib\site-packages\visual is the Vpython. But then I do not understand, why you have another directory Python\Visual This is strange, indeed, your Vpython installation must be under a directory named "visual" under \Lib\site-packages What method did you used for installing Vpython ? Are you on linux ?, windows ? |
From: <jam...@fd...> - 2007-01-06 11:00:45
|
Dear Poul, Why you append the path of visual ? is it not enough to just import visual.graph ? ============================================ Jose Antonio Martin H. Departamento de Sistemas Informáticos y Computación Facultad de Informática Universidad Complutense de Madrid Ciudad universitaria, 28040 Madrid ============================================ ----- Original Message ----- From: "Poul Riis" <Pou...@sk...> To: <vis...@li...> Sent: Saturday, January 06, 2007 10:10 AM Subject: [Visualpython-users] Graph test >I just tried the following small test program, taken from the VPython > documentation (except that I've added the two first lines): > > import sys > sys.path.append('e:/python/Lib/site-packages/visual') > > from visual.graph import * # import graphing features > > funct1 = gcurve(color=color.cyan) # a connected curve object > > for x in arange(0., 8.1, 0.1): # x goes from 0 to 8 > > funct1.plot(pos=(x,5.*cos(2.*x)*exp(-0.2*x))) # plot > > I get the following error message: > > Traceback (most recent call last): > File "E:/python/Lib/site-packages/visual/examples/graphtest1.py", line > 4, in <module> > from visual.graph import * # import graphing features > File "E:\python\visual\__init__.py", line 21, in <module> > copy_reg.pickle(cvisual.VectorType, lambda v: (vector, tuple(v)), > vector) > AttributeError: 'module' object has no attribute 'VectorType' > > Is this a path problem or what can I do to make it work? > I use the most recent (beta) version of VPyton. > > Yours > Poul Riis > > -------------------------------------------------------------------------------- > > > ########################################### > Denne meddelelse med evt. vedlæg er scannet af SkoleKom ved hjælp af > F-Secure virusscanner. > > For yderligere information, > http://forside.skolekom.dk/indhold/punkt1/viruspolitik > -------------------------------------------------------------------------------- > ------------------------------------------------------------------------- > 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: Poul R. <Pou...@sk...> - 2007-01-06 09:35:36
|
I just tried the following small test program, taken from the VPython documentation (except that I've added the two first lines): import sys sys.path.append('e:/python/Lib/site-packages/visual') from visual.graph import * # import graphing features funct1 = gcurve(color=color.cyan) # a connected curve object for x in arange(0., 8.1, 0.1): # x goes from 0 to 8 funct1.plot(pos=(x,5.*cos(2.*x)*exp(-0.2*x))) # plot I get the following error message: Traceback (most recent call last): File "E:/python/Lib/site-packages/visual/examples/graphtest1.py", line 4, in <module> from visual.graph import * # import graphing features File "E:\python\visual\__init__.py", line 21, in <module> copy_reg.pickle(cvisual.VectorType, lambda v: (vector, tuple(v)), vector) AttributeError: 'module' object has no attribute 'VectorType' Is this a path problem or what can I do to make it work? I use the most recent (beta) version of VPyton. Yours Poul Riis |
From: <jam...@fd...> - 2007-01-04 19:17:11
|
Hi all, I have installed a new memory module in my PC. all things seems to work ok, but when I run a Vpython program I get a system error: Abnornal program termination run time error python.exe I am on WinXp, Python25, The last stable release of Visual. What is happen ? any idea ? thanks a lot. ============================================ Jose Antonio Martin H. Departamento de Sistemas Informáticos y Computación Facultad de Informática Universidad Complutense de Madrid Ciudad universitaria, 28040 Madrid ============================================ |