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:
<fre...@gb...> - 2007-12-30 10:37:06
|
On samedi 29 d=E9cembre 2007, Bruce Sherwood wrote: > Questions were asked recently about looking outward from the origin (or > other location) and rotating the view of the surrounding scene. As an > example of this kind of viewing, see look_around.py in the contributed > section of vpython.org. I'm not sure to clearly understand how it works. Could you detail your=20 code, please? =2D-=20 Fr=E9d=E9ric http://www.gbiloba.org |
From:
<fre...@gb...> - 2007-12-30 09:55:43
|
On dimanche 30 d=E9cembre 2007, Bruce Sherwood wrote: > That's a spectacular demonstration of work that needs to be done on the > beta version, as it takes 5 seconds (!) to render the scene on my > laptop, whereas the display and motion are completely smooth in the > production version of VPython. > > I've added this to the contributed section of vpython.org. Thanks! > > I deleted the unnecessary line that made the mouse cursor visible, since > that's the default and this feature is as yet missing from the beta > version, should someone wish to see the extreme slowness of the > rendering. I saw ;o) =2D-=20 Fr=E9d=E9ric http://www.gbiloba.org |
From: Bruce S. <Bru...@nc...> - 2007-12-29 23:39:36
|
That's a spectacular demonstration of work that needs to be done on the beta version, as it takes 5 seconds (!) to render the scene on my laptop, whereas the display and motion are completely smooth in the production version of VPython. I've added this to the contributed section of vpython.org. Thanks! I deleted the unnecessary line that made the mouse cursor visible, since that's the default and this feature is as yet missing from the beta version, should someone wish to see the extreme slowness of the rendering. Bruce Sherwood Ron Adam wrote: > > > Bruce Sherwood wrote: >> Questions were asked recently about looking outward from the origin >> (or other location) and rotating the view of the surrounding scene. >> As an example of this kind of viewing, see look_around.py in the >> contributed section of vpython.org. >> >> Bruce Sherwood > > Here's a fun demo that uses rotating and spin I meant to submit some > time ago and never did. > > Enjoy, > Ron Adam > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > ------------------------------------------------------------------------ > > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users |
From: Bruce S. <Bru...@nc...> - 2007-12-29 23:05:23
|
In a test version not yet released I've implemented essentially the scheme suggested by Scott David Daniels, and it works very well. Thanks! I found by timing measurements that a faster scheme with less penalty for the case of sqrt(array) looks like this: def sqrt(x): if type(x) is float: return mathsqrt(x) return numpysqrt(x) This scheme not only solves the problem but actually yields faster square roots of scalar arguments than numpy, by about a factor of 3. So what was conceived as a workaround is actually a performance enhancement. Bruce Sherwood Scott David Daniels wrote: > I (Scott David Daniels) wrote: > >> I'm not sure of the overhead here, but could something like this work? >> >> def sqrt(x): >> try: return math.sqrt(x) >> except TypeError: return numpy.sqrt(x) >> > > If it "kinda" works, the following addition to __init__ should work: > > from numpy import (ceil as _n_ceil, cos as _n_cos, cosh as _n_cosh, > exp as _n_exp, fabs as _n_fabs, floor as _n_floor, > fmod as _n_fmod, frexp as _n_frexp, hypot as _n_hypot, > ldexp as _n_ldexp, log as _n_log, log10 as _n_log10, > modf as _n_modf, sin as _n_sin, sinh as _n_sinh, > sqrt as _n_sqrt, tan as _n_tan, tanh as _n_tanh) > from math import (ceil as _m_ceil, cos as _m_cos, cosh as _m_cosh, > exp as _m_exp, fabs as _m_fabs, floor as _m_floor, > fmod as _m_fmod, frexp as _m_frexp, hypot as _m_hypot, > ldexp as _m_ldexp, log as _m_log, log10 as _m_log10, > modf as _m_modf, sin as _m_sin, sinh as _m_sinh, > sqrt as _m_sqrt, tan as _m_tan, tanh as _m_tanh) > def ceil(x): > try: return _m_ceil(x) > except TypeError: return _n_ceil(x) > def cos(x): > try: return _m_cos(x) > except TypeError: return _n_cos(x) > def cosh(x): > try: return _m_cosh(x) > except TypeError: return _n_cosh(x) > def exp(x): > try: return _m_exp(x) > except TypeError: return _n_exp(x) > def fabs(x): > try: return _m_fabs(x) > except TypeError: return _n_fabs(x) > def floor(x): > try: return _m_floor(x) > except TypeError: return _n_floor(x) > def fmod(x): > try: return _m_fmod(x) > except TypeError: return _n_fmod(x) > def frexp(x): > try: return _m_frexp(x) > except TypeError: return _n_frexp(x) > def hypot(x): > try: return _m_hypot(x) > except TypeError: return _n_hypot(x) > def ldexp(x): > try: return _m_ldexp(x) > except TypeError: return _n_ldexp(x) > def log(x): > try: return _m_log(x) > except TypeError: return _n_log(x) > def log10(x): > try: return _m_log10(x) > except TypeError: return _n_log10(x) > def modf(x): > try: return _m_modf(x) > except TypeError: return _n_modf(x) > def sin(x): > try: return _m_sin(x) > except TypeError: return _n_sin(x) > def sinh(x): > try: return _m_sinh(x) > except TypeError: return _n_sinh(x) > def sqrt(x): > try: return _m_sqrt(x) > except TypeError: return _n_sqrt(x) > def tan(x): > try: return _m_tan(x) > except TypeError: return _n_tan(x) > def tanh(x): > try: return _m_tanh(x) > except TypeError: return _n_tanh(x) > > --Scott David Daniels > Sco...@Ac... > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users > |
From: Lenore H. <lh...@si...> - 2007-12-29 20:22:08
|
Try http://www.wiili.org/index.php/Main_Page. Lenore Horner On Dec 29, 2007, at 11:39 AM, John Brawley wrote: > > ----- Original Message ----- > From: <vis...@li...> >> Message: 6 >> Date: Fri, 28 Dec 2007 01:35:49 -0500 >> From: Bruce Sherwood <Bru...@nc...> >> Subject: [Visualpython-users] Wii interface >> >> A friend sent me the following link to very interesting work on using >> the Wii controller with a regular computer, in highly innovative >> ways: >> >> http://www.cs.cmu.edu/~johnny/projects/wii/ >> >> Bruce Sherwood > > Hi Bruce; > This link appears not to work. Back-editing the URL to the .edu > domain > gets a page with many broken image links.... > I was interested in reading on the Wii controller linked-to a > computer, > but is there a way to get _to_ that article? > > Peace > JB > jb...@te... > Web: http://tetrahedraverse.com > > > > ---------------------------------------------------------------------- > --- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users |
From: Ron A. <rr...@ro...> - 2007-12-29 20:19:18
|
Bruce Sherwood wrote: > Questions were asked recently about looking outward from the origin (or > other location) and rotating the view of the surrounding scene. As an > example of this kind of viewing, see look_around.py in the contributed > section of vpython.org. > > Bruce Sherwood Here's a fun demo that uses rotating and spin I meant to submit some time ago and never did. Enjoy, Ron Adam |
From: Bruce S. <Bru...@nc...> - 2007-12-29 18:04:21
|
It worked yesterday.... If you search YouTube for johnny lee wii you'll find the presentations. I also found that procrastineering.com will get you to one of Johnny Lee's sites. Bruce Sherwood John Brawley wrote: > ----- Original Message ----- > From: <vis...@li...> > >> Message: 6 >> Date: Fri, 28 Dec 2007 01:35:49 -0500 >> From: Bruce Sherwood <Bru...@nc...> >> Subject: [Visualpython-users] Wii interface >> >> A friend sent me the following link to very interesting work on using >> the Wii controller with a regular computer, in highly innovative ways: >> >> http://www.cs.cmu.edu/~johnny/projects/wii/ >> >> Bruce Sherwood >> > > Hi Bruce; > This link appears not to work. Back-editing the URL to the .edu domain > gets a page with many broken image links.... > I was interested in reading on the Wii controller linked-to a computer, > but is there a way to get _to_ that article? > > Peace > JB > jb...@te... > Web: http://tetrahedraverse.com > > > |
From: John B. <jb...@te...> - 2007-12-29 17:43:31
|
----- Original Message ----- From: <vis...@li...> > Message: 6 > Date: Fri, 28 Dec 2007 01:35:49 -0500 > From: Bruce Sherwood <Bru...@nc...> > Subject: [Visualpython-users] Wii interface > > A friend sent me the following link to very interesting work on using > the Wii controller with a regular computer, in highly innovative ways: > > http://www.cs.cmu.edu/~johnny/projects/wii/ > > Bruce Sherwood Hi Bruce; This link appears not to work. Back-editing the URL to the .edu domain gets a page with many broken image links.... I was interested in reading on the Wii controller linked-to a computer, but is there a way to get _to_ that article? Peace JB jb...@te... Web: http://tetrahedraverse.com |
From: Bruce S. <Bru...@nc...> - 2007-12-29 06:21:49
|
Questions were asked recently about looking outward from the origin (or other location) and rotating the view of the surrounding scene. As an example of this kind of viewing, see look_around.py in the contributed section of vpython.org. Bruce Sherwood |
From: Bruce S. <Bru...@nc...> - 2007-12-29 02:19:59
|
Thanks for the suggestion. I'll look into this workaround. Bruce Sherwood Scott David Daniels wrote: > I (Scott David Daniels) wrote: > >> I'm not sure of the overhead here, but could something like this work? >> >> def sqrt(x): >> try: return math.sqrt(x) >> except TypeError: return numpy.sqrt(x) >> > > If it "kinda" works, the following addition to __init__ should work: > > from numpy import (ceil as _n_ceil, cos as _n_cos, cosh as _n_cosh, > exp as _n_exp, fabs as _n_fabs, floor as _n_floor, > fmod as _n_fmod, frexp as _n_frexp, hypot as _n_hypot, > ldexp as _n_ldexp, log as _n_log, log10 as _n_log10, > modf as _n_modf, sin as _n_sin, sinh as _n_sinh, > sqrt as _n_sqrt, tan as _n_tan, tanh as _n_tanh) > from math import (ceil as _m_ceil, cos as _m_cos, cosh as _m_cosh, > exp as _m_exp, fabs as _m_fabs, floor as _m_floor, > fmod as _m_fmod, frexp as _m_frexp, hypot as _m_hypot, > ldexp as _m_ldexp, log as _m_log, log10 as _m_log10, > modf as _m_modf, sin as _m_sin, sinh as _m_sinh, > sqrt as _m_sqrt, tan as _m_tan, tanh as _m_tanh) > def ceil(x): > try: return _m_ceil(x) > except TypeError: return _n_ceil(x) > def cos(x): > try: return _m_cos(x) > except TypeError: return _n_cos(x) > def cosh(x): > try: return _m_cosh(x) > except TypeError: return _n_cosh(x) > def exp(x): > try: return _m_exp(x) > except TypeError: return _n_exp(x) > def fabs(x): > try: return _m_fabs(x) > except TypeError: return _n_fabs(x) > def floor(x): > try: return _m_floor(x) > except TypeError: return _n_floor(x) > def fmod(x): > try: return _m_fmod(x) > except TypeError: return _n_fmod(x) > def frexp(x): > try: return _m_frexp(x) > except TypeError: return _n_frexp(x) > def hypot(x): > try: return _m_hypot(x) > except TypeError: return _n_hypot(x) > def ldexp(x): > try: return _m_ldexp(x) > except TypeError: return _n_ldexp(x) > def log(x): > try: return _m_log(x) > except TypeError: return _n_log(x) > def log10(x): > try: return _m_log10(x) > except TypeError: return _n_log10(x) > def modf(x): > try: return _m_modf(x) > except TypeError: return _n_modf(x) > def sin(x): > try: return _m_sin(x) > except TypeError: return _n_sin(x) > def sinh(x): > try: return _m_sinh(x) > except TypeError: return _n_sinh(x) > def sqrt(x): > try: return _m_sqrt(x) > except TypeError: return _n_sqrt(x) > def tan(x): > try: return _m_tan(x) > except TypeError: return _n_tan(x) > def tanh(x): > try: return _m_tanh(x) > except TypeError: return _n_tanh(x) > > --Scott David Daniels > Sco...@Ac... > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users > |
From: Bruce S. <Bru...@nc...> - 2007-12-28 06:36:53
|
Thanks much for the report. Bruce Sherwood Frédéric Mantegazza wrote: > Hi, > > I found another problem with vpython 4, under linux: when I set the display > visible attribute to False, then set it again to True, only a few objects > are visible again. > > This only occurs under linux, not under windows. > > |
From: Bruce S. <Bru...@nc...> - 2007-12-28 06:35:51
|
A friend sent me the following link to very interesting work on using the Wii controller with a regular computer, in highly innovative ways: http://www.cs.cmu.edu/~johnny/projects/wii/ Bruce Sherwood |
From:
<fre...@gb...> - 2007-12-27 21:28:04
|
Hi, I found another problem with vpython 4, under linux: when I set the display= =20 visible attribute to False, then set it again to True, only a few objects=20 are visible again. This only occurs under linux, not under windows. =2D-=20 Fr=E9d=E9ric http://www.gbiloba.org |
From: Scott D. D. <Sco...@Ac...> - 2007-12-27 17:06:16
|
I (Scott David Daniels) wrote: > I'm not sure of the overhead here, but could something like this work? > > def sqrt(x): > try: return math.sqrt(x) > except TypeError: return numpy.sqrt(x) If it "kinda" works, the following addition to __init__ should work: from numpy import (ceil as _n_ceil, cos as _n_cos, cosh as _n_cosh, exp as _n_exp, fabs as _n_fabs, floor as _n_floor, fmod as _n_fmod, frexp as _n_frexp, hypot as _n_hypot, ldexp as _n_ldexp, log as _n_log, log10 as _n_log10, modf as _n_modf, sin as _n_sin, sinh as _n_sinh, sqrt as _n_sqrt, tan as _n_tan, tanh as _n_tanh) from math import (ceil as _m_ceil, cos as _m_cos, cosh as _m_cosh, exp as _m_exp, fabs as _m_fabs, floor as _m_floor, fmod as _m_fmod, frexp as _m_frexp, hypot as _m_hypot, ldexp as _m_ldexp, log as _m_log, log10 as _m_log10, modf as _m_modf, sin as _m_sin, sinh as _m_sinh, sqrt as _m_sqrt, tan as _m_tan, tanh as _m_tanh) def ceil(x): try: return _m_ceil(x) except TypeError: return _n_ceil(x) def cos(x): try: return _m_cos(x) except TypeError: return _n_cos(x) def cosh(x): try: return _m_cosh(x) except TypeError: return _n_cosh(x) def exp(x): try: return _m_exp(x) except TypeError: return _n_exp(x) def fabs(x): try: return _m_fabs(x) except TypeError: return _n_fabs(x) def floor(x): try: return _m_floor(x) except TypeError: return _n_floor(x) def fmod(x): try: return _m_fmod(x) except TypeError: return _n_fmod(x) def frexp(x): try: return _m_frexp(x) except TypeError: return _n_frexp(x) def hypot(x): try: return _m_hypot(x) except TypeError: return _n_hypot(x) def ldexp(x): try: return _m_ldexp(x) except TypeError: return _n_ldexp(x) def log(x): try: return _m_log(x) except TypeError: return _n_log(x) def log10(x): try: return _m_log10(x) except TypeError: return _n_log10(x) def modf(x): try: return _m_modf(x) except TypeError: return _n_modf(x) def sin(x): try: return _m_sin(x) except TypeError: return _n_sin(x) def sinh(x): try: return _m_sinh(x) except TypeError: return _n_sinh(x) def sqrt(x): try: return _m_sqrt(x) except TypeError: return _n_sqrt(x) def tan(x): try: return _m_tan(x) except TypeError: return _n_tan(x) def tanh(x): try: return _m_tanh(x) except TypeError: return _n_tanh(x) --Scott David Daniels Sco...@Ac... |
From: Scott D. D. <Sco...@Ac...> - 2007-12-27 16:34:07
|
Bruce Sherwood wrote: > I've already played with essentially this. In > site-packages/visual/__init__.py we import math, then numpy, which means > that sqrt goes to numpy. If I reverse the order of these imports it does > indeed mean that we use math.sqrt, but this then breaks programs such as > gas.py where the argument of the sqrt is an array of vectors. What I > need is for sqrt(25) to be treated like 5, but also to be able to use > the array features of the numpy sqrt when the argument isn't a simple > scalar. I'm not sure of the overhead here, but could something like this work? def sqrt(x): try: return math.sqrt(x) except TypeError: return numpy.sqrt(x) --Scott David Daniels Sco...@Ac... |
From: Joel K. <jj...@ya...> - 2007-12-27 14:24:19
|
Bruce Sherwood wrote: >Ideally it would be better to get a Wii-like >capability onto regular computers. I tend to agree. There are some folks at SchoolForge who are thinking along these general lines. For anyone who might be interested, here's a possible contact: James P. Kinney III jk...@lo... Enjoy. Joel ____________________________________________________________________________________ Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping |
From: chris l. <chr...@sp...> - 2007-12-27 12:03:48
|
From where does the key pressed return emanate in version 3.2.9? The normal scene.kb responses seem to work so where is this extra loop implemented? Chris |
From: <wsw...@nc...> - 2007-12-27 04:20:02
|
It is actually possible to get code to run on a Wii, but it is complex and not worth the hassle. Basically, you need to mod your Wii by opening it (voids warranty) and soldering an expensive chip onto the DVD drive's circuitry. This allows you to run homebrew code through the Wii's GameCube emulator. Basically, what I'm saying is that you wont be able to use the Wii remote, and it will have the same effect as running VPython on a GameCube. If you -really- seriously want to do this, mail me personally and I'll tell you how it could possibly be done. But, I really don't see why you would want to. William S. Wright > I have NO idea how on Earth one would get Python and VPython into a Wii > box. Ideally it would be better to get a Wii-like capability onto > regular computers.... > > Bruce Sherwood > > Joel Kahn wrote: >> Some nieces of mine got a Nintendo Wii for >> Christmas. After I watched their activities >> on it, I started thinking about what might >> be possible if VPython could be ported to >> that platform. Maybe the issues of physical >> fitness and math/science education could be >> attacked at the same time. :-) >> >> Any thoughts from the gang? >> >> Joel >> >> >> >> |
From: Joe H. <hea...@gm...> - 2007-12-27 00:31:36
|
I didn't know it was ever possible to kill a VPython program from =20 inside the program, but I too want to know how! Joe Heafner (Sent from my iPhone.) On Dec 26, 2007, at 19:21, Bruce Sherwood <Bru...@nc...> =20 wrote: > I thought I remembered that import sys followed by sys.exit() would =20= > kill > a VPython program. But when I try this on either Visual 3 or Visual =20= > 4 it > doesn't have that effect. Does someone else know how to kiil a VPython > program from the program? > > Bruce Sherwood > > Fr=C3=A9d=C3=A9ric Mantegazza wrote: >> On mercredi 26 d=C3=A9cembre 2007, Bruce Sherwood wrote: >> >> >>> Thanks for the detailed report. >>> >>> crossproduct and planar: These had the same problem as some other >>> examples -- the workaround is simply to add rate(100) immediately >>> following the while statement. I simply failed to catch these =20 >>> further >>> examples of the problem of quitting from a tight loop. (But I =20 >>> should say >>> I only saw a problem with quitting, not any sluggishness.) I've =20 >>> checked >>> in corrected versions to CVS. >>> >>> glinfo: It's not clear to me whether this has ever worked properly =20= >>> on >>> Linux. Note the statement in the program, "This test of OpenGL =20 >>> options >>> is useful mainly on Windows." >>> >>> randombox: I believe the poor performance is due to incomplete >>> implementation of improved handling of lighting of boxes. There =20 >>> needs to >>> be variable level of detail in splitting a side into a number of >>> triangles, dependent on how far away the box is, as is in the case =20= >>> for >>> spheres. I'm aware of the issue. As was the case with curve, box =20 >>> needs >>> work to cut the render speed significantly. >>> >> >> Ok. >> >> >>> texturetest and Tk-Visual: I can't reproduce any problem with these >>> examples. >>> >> >> Strange... BTW, you didn't tell me how (if it is possible) to quit a >> vpython app without using the exit button? >> >> >>> I'm delighted that the changes made a big improvement in the =20 >>> performance >>> of your app. >>> >> >> :o) >> >> > > ---=20 > ---------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users |
From: Bruce S. <Bru...@nc...> - 2007-12-27 00:30:35
|
I have NO idea how on Earth one would get Python and VPython into a Wii box. Ideally it would be better to get a Wii-like capability onto regular computers.... Bruce Sherwood Joel Kahn wrote: > Some nieces of mine got a Nintendo Wii for > Christmas. After I watched their activities > on it, I started thinking about what might > be possible if VPython could be ported to > that platform. Maybe the issues of physical > fitness and math/science education could be > attacked at the same time. :-) > > Any thoughts from the gang? > > Joel > > > > ____________________________________________________________________________________ > Be a better friend, newshound, and > know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users > |
From: Bruce S. <Bru...@nc...> - 2007-12-27 00:21:47
|
I thought I remembered that import sys followed by sys.exit() would kill a VPython program. But when I try this on either Visual 3 or Visual 4 it doesn't have that effect. Does someone else know how to kiil a VPython program from the program? Bruce Sherwood Frédéric Mantegazza wrote: > On mercredi 26 décembre 2007, Bruce Sherwood wrote: > > >> Thanks for the detailed report. >> >> crossproduct and planar: These had the same problem as some other >> examples -- the workaround is simply to add rate(100) immediately >> following the while statement. I simply failed to catch these further >> examples of the problem of quitting from a tight loop. (But I should say >> I only saw a problem with quitting, not any sluggishness.) I've checked >> in corrected versions to CVS. >> >> glinfo: It's not clear to me whether this has ever worked properly on >> Linux. Note the statement in the program, "This test of OpenGL options >> is useful mainly on Windows." >> >> randombox: I believe the poor performance is due to incomplete >> implementation of improved handling of lighting of boxes. There needs to >> be variable level of detail in splitting a side into a number of >> triangles, dependent on how far away the box is, as is in the case for >> spheres. I'm aware of the issue. As was the case with curve, box needs >> work to cut the render speed significantly. >> > > Ok. > > >> texturetest and Tk-Visual: I can't reproduce any problem with these >> examples. >> > > Strange... BTW, you didn't tell me how (if it is possible) to quit a > vpython app without using the exit button? > > >> I'm delighted that the changes made a big improvement in the performance >> of your app. >> > > :o) > > |
From: Bruce S. <Bru...@nc...> - 2007-12-26 23:45:24
|
I've already played with essentially this. In site-packages/visual/__init__.py we import math, then numpy, which means that sqrt goes to numpy. If I reverse the order of these imports it does indeed mean that we use math.sqrt, but this then breaks programs such as gas.py where the argument of the sqrt is an array of vectors. What I need is for sqrt(25) to be treated like 5, but also to be able to use the array features of the numpy sqrt when the argument isn't a simple scalar. A related issue is that VPython is deliberately designed to be easily usable by novice users, with sensible defaults, and without the necessity of special imports or references to differences between math and numpy. And maybe even more to the point, the change from Numeric to numpy has made many existing programs run much more slowly than before. But thanks for the suggestion! Bruce Scott David Daniels wrote: > Bruce Sherwood wrote: > >> There is a highly technical problem which has been identified but for >> which there is currently no known solution. In the old Numeric module >> used in Visual 3, sqrt(5.5) was a float, but in numpy used in the beta >> version sqrt(5.5) is numpy.float64, with the highly unfortunate result >> that sqrt(5.5)*vector isn't a VPython vector but rather a numpy array. >> > If you use the simple expedient of using math.sqrt, rather than > numpy.sqrt, you will have the behavior you prefer. The "ufunc"s in > numpy that have corresponding functions in math are: > ceil cos cosh exp fabs floor fmod frexp hypot > ldexp log log10 modf sin sinh sqrt tan tanh > > So adding: > from math import (ceil, cos, cosh, exp, fabs, floor, fmod, frexp, > hypot, ldexp, log, log10, modf, sin, sinh, sqrt, tan, tanh) > after importing numpy (or the moral equivalent) will give you scalar- > producing and consuming functions, as opposed to the numpy-internal > floating format. > > -Scott David Daniels > Sco...@Ac... > > > |
From:
<fre...@gb...> - 2007-12-26 17:11:58
|
On mercredi 26 d=E9cembre 2007, Bruce Sherwood wrote: > Study the program "movecamera.py" in the contributed section of > vpython.org. I think it will answer your question. I read this example, but I didn't find the answer. I need to *precisely*=20 set the camera position at (0, 0, 0), because this is the point around=20 which my panohead rotates. So, if the camera is not at that position, when= =20 I rotate the head, there are a parallax errors. I'm not sure to be very clear.... =2D-=20 Fr=E9d=E9ric http://www.gbiloba.org |
From: Scott D. D. <Sco...@Ac...> - 2007-12-26 16:32:17
|
Bruce Sherwood wrote: > There is a highly technical problem which has been identified but for > which there is currently no known solution. In the old Numeric module > used in Visual 3, sqrt(5.5) was a float, but in numpy used in the beta > version sqrt(5.5) is numpy.float64, with the highly unfortunate result > that sqrt(5.5)*vector isn't a VPython vector but rather a numpy array. If you use the simple expedient of using math.sqrt, rather than numpy.sqrt, you will have the behavior you prefer. The "ufunc"s in numpy that have corresponding functions in math are: ceil cos cosh exp fabs floor fmod frexp hypot ldexp log log10 modf sin sinh sqrt tan tanh So adding: from math import (ceil, cos, cosh, exp, fabs, floor, fmod, frexp, hypot, ldexp, log, log10, modf, sin, sinh, sqrt, tan, tanh) after importing numpy (or the moral equivalent) will give you scalar- producing and consuming functions, as opposed to the numpy-internal floating format. -Scott David Daniels Sco...@Ac... |
From: Joel K. <jj...@ya...> - 2007-12-26 14:10:59
|
Some nieces of mine got a Nintendo Wii for Christmas. After I watched their activities on it, I started thinking about what might be possible if VPython could be ported to that platform. Maybe the issues of physical fitness and math/science education could be attacked at the same time. :-) Any thoughts from the gang? Joel ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ |