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...> - 2009-06-21 19:31:12
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> </head> <body bgcolor="#ffffff" text="#000000"> That's a relief! Thanks for the update.<br> <br> Bruce Sherwood<br> <br> Craig Struble wrote: <blockquote cite="mid:F21...@ma..." type="cite"> <pre wrap="">After several hours of staring, I discovered a bug in my code which caused the interaction loop to quit prematurely. After fixing that, interaction with multiple windows works fine. Sorry! Craig On Jun 20, 2009, at 12:58 PM, Bruce Sherwood wrote: </pre> <blockquote type="cite"> <pre wrap="">Puzzling and unfamiliar. Works fine for me on a MacBook with VPython 5.11, MacPython 2.6.2, OSX 10.5.7. There shouldn't be any difference in this area between VPython 5.1 and 5.11. Could you please post a small test routine that fails for you? I successfully ran the following: from visual.graph import * scene.x = 0 scene.y = 400 scene.range = 4 b = box() y = gcurve(color=color.cyan) pick = None while 1: rate(50) if scene.mouse.events: m = scene.mouse.getevent() if m.drag: dragpos = m.pickpos pick = m.pick elif m.drop: pick = None if pick: newpos = scene.mouse.pos if newpos != dragpos: pick.pos += newpos-dragpos dragpos = newpos y.plot(pos=(newpos.x,newpos.y)) Independent of the graph issue, I did notice that on Windows I didn't need the "rate(50)" but I did on the Mac, where otherwise dragging was sluggish. Bruce Sherwood Craig A. Struble, Ph.D. wrote: </pre> <blockquote type="cite"> <pre wrap="">Hello, I'm trying to develop an interactive application with two windows: one in which a user drags a sphere around; another which plots a graph (using gdisplay and gcurve). When I use only the display, I can drag the sphere around fine, using code similar to the toroid_drag.py example. When I add the graph display, my first window doesn't receive left mouse button events anymore and the sphere doesn't move. The order of window creation doesn't change anything. How can I have two windows and interactivity? I'm using VPython 5.1, MacPython 2.6.2, on OS X 10.5.7. Craig -- Craig A. Struble, Ph.D. | 369 Cudahy Hall | Marquette University Associate Professor of Computer Science | (414)288-3783 Director, Master of Bioinformatics Program | (414)288-5472 (fax) <a class="moz-txt-link-freetext" href="http://www.mscs.mu.edu/~cstruble">http://www.mscs.mu.edu/~cstruble</a> | <a class="moz-txt-link-abbreviated" href="mailto:cra...@ma...">cra...@ma...</a> ------------------------------------------------------------------------------ Are you an open source citizen? Join us for the Open Source Bridge conference! Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250. Need another reason to go? 24-hour hacker lounge. Register today! <a class="moz-txt-link-freetext" href="http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org">http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org</a> _______________________________________________ Visualpython-users mailing list <a class="moz-txt-link-abbreviated" href="mailto:Vis...@li...">Vis...@li...</a> <a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/visualpython-users">https://lists.sourceforge.net/lists/listinfo/visualpython-users</a> </pre> </blockquote> </blockquote> <pre wrap=""><!----> -- Craig A. Struble, Ph.D. | 369 Cudahy Hall | Marquette University Associate Professor of Computer Science | (414)288-3783 Director, Master of Bioinformatics Program | (414)288-5472 (fax) <a class="moz-txt-link-freetext" href="http://www.mscs.mu.edu/~cstruble">http://www.mscs.mu.edu/~cstruble</a> | <a class="moz-txt-link-abbreviated" href="mailto:cra...@ma...">cra...@ma...</a> ------------------------------------------------------------------------------ Are you an open source citizen? Join us for the Open Source Bridge conference! Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250. Need another reason to go? 24-hour hacker lounge. Register today! <a class="moz-txt-link-freetext" href="http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org">http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org</a> _______________________________________________ Visualpython-users mailing list <a class="moz-txt-link-abbreviated" href="mailto:Vis...@li...">Vis...@li...</a> <a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/visualpython-users">https://lists.sourceforge.net/lists/listinfo/visualpython-users</a> </pre> </blockquote> </body> </html> |
From: Bruce S. <Bru...@nc...> - 2009-06-21 19:28:48
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=UTF-8" http-equiv="Content-Type"> </head> <body bgcolor="#ffffff" text="#000000"> Thanks for the info. That FAQ link is now fixed.<br> <br> I believe that if you use the latest povexport you'll find that the arrow opacity issue has been fixed (thanks to Scott David Daniels).<br> <br> The arrow shaftwidth bug isn't a povexport bug but rather a bug in Visual 5.1, corrected in Visual 5.11. However, if you don't wish to upgrade to 5.11 right away, there's a workaround: In your VPython program, explicitly set headwidth=2*shaftwidth and headlength=3*shaftwidth. You'll find that in your existing program (pre-5.11) if after changing shaftwidth you print headwidth and headlength you see the wrong values, though the correct values are used in the display of the arrow. What Visual 5.11 does is report the values of headwidth and headlength that are actually used in displays.<br> <br> Bruce Sherwood<br> <br> Guy K. Kloss wrote: <blockquote cite="mid:200...@ma..." type="cite"> <pre wrap="">On Sun, 21 Jun 2009 17:51:55 Bruce Sherwood wrote: </pre> <blockquote type="cite"> <pre wrap="">Are you using povexport-2009-06-14? I think the bugs you describe have been fixed in that recently posted version. </pre> </blockquote> <pre wrap=""><!----> I'm using the one which is linked in the FAQ, and that is povexport-2008-11-25.zip </pre> <blockquote type="cite"> <pre wrap="">Also, there was a bug in Visual 5.1 with respect to shaftwidth which affected povexport, and that bug has been fixed with the new Visual 5.11. </pre> </blockquote> <pre wrap=""><!----> No, still on 5.0. Don't want to bother going towards > 5.0, unless I see some necessity in it for me right now, as I'm quite busy with my thesis ... But will, if I see a reasonable benefit for me. Guy </pre> </blockquote> </body> </html> |
From: Craig S. <cra...@ma...> - 2009-06-21 14:03:05
|
After several hours of staring, I discovered a bug in my code which caused the interaction loop to quit prematurely. After fixing that, interaction with multiple windows works fine. Sorry! Craig On Jun 20, 2009, at 12:58 PM, Bruce Sherwood wrote: > Puzzling and unfamiliar. Works fine for me on a MacBook with VPython > 5.11, MacPython 2.6.2, OSX 10.5.7. There shouldn't be any difference > in > this area between VPython 5.1 and 5.11. > > Could you please post a small test routine that fails for you? I > successfully ran the following: > > from visual.graph import * > scene.x = 0 > scene.y = 400 > scene.range = 4 > b = box() > y = gcurve(color=color.cyan) > pick = None > while 1: > rate(50) > if scene.mouse.events: > m = scene.mouse.getevent() > if m.drag: > dragpos = m.pickpos > pick = m.pick > elif m.drop: > pick = None > if pick: > newpos = scene.mouse.pos > if newpos != dragpos: > pick.pos += newpos-dragpos > dragpos = newpos > y.plot(pos=(newpos.x,newpos.y)) > > Independent of the graph issue, I did notice that on Windows I didn't > need the "rate(50)" but I did on the Mac, where otherwise dragging was > sluggish. > > Bruce Sherwood > > Craig A. Struble, Ph.D. wrote: >> Hello, >> >> I'm trying to develop an interactive application with two windows: >> one >> in which a user drags a sphere around; another which plots a graph >> (using gdisplay and gcurve). >> >> When I use only the display, I can drag the sphere around fine, using >> code similar to the toroid_drag.py example. When I add the graph >> display, my first window doesn't receive left mouse button events >> anymore and the sphere doesn't move. The order of window creation >> doesn't change anything. >> >> How can I have two windows and interactivity? I'm using VPython 5.1, >> MacPython 2.6.2, on OS X 10.5.7. >> >> Craig >> -- >> Craig A. Struble, Ph.D. | 369 Cudahy Hall | Marquette University >> Associate Professor of Computer Science | (414)288-3783 >> Director, Master of Bioinformatics Program | (414)288-5472 (fax) >> http://www.mscs.mu.edu/~cstruble | cra...@ma... >> >> >> ------------------------------------------------------------------------------ >> Are you an open source citizen? Join us for the Open Source Bridge >> conference! >> Portland, OR, June 17-19. Two days of sessions, one day of >> unconference: $250. >> Need another reason to go? 24-hour hacker lounge. Register today! >> http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org >> _______________________________________________ >> Visualpython-users mailing list >> Vis...@li... >> https://lists.sourceforge.net/lists/listinfo/visualpython-users >> -- Craig A. Struble, Ph.D. | 369 Cudahy Hall | Marquette University Associate Professor of Computer Science | (414)288-3783 Director, Master of Bioinformatics Program | (414)288-5472 (fax) http://www.mscs.mu.edu/~cstruble | cra...@ma... |
From: Guy K. K. <g....@ma...> - 2009-06-21 06:16:34
|
On Sun, 21 Jun 2009 17:51:55 Bruce Sherwood wrote: > Are you using povexport-2009-06-14? I think the bugs you describe have > been fixed in that recently posted version. I'm using the one which is linked in the FAQ, and that is povexport-2008-11-25.zip > Also, there was a bug in Visual 5.1 with respect to shaftwidth which > affected povexport, and that bug has been fixed with the new Visual 5.11. No, still on 5.0. Don't want to bother going towards > 5.0, unless I see some necessity in it for me right now, as I'm quite busy with my thesis ... But will, if I see a reasonable benefit for me. Guy -- Guy K. Kloss Institute of Information and Mathematical Sciences Te Kura Pūtaiao o Mōhiohio me Pāngarau Massey University, Albany (North Shore City, Auckland) 473 State Highway 17, Gate 1, Mailroom, Quad B Building voice: +64 9 414-0800 ext. 9585 fax: +64 9 441-8181 G....@ma... http://www.massey.ac.nz/~gkloss |
From: Bruce S. <Bru...@nc...> - 2009-06-21 05:52:21
|
Are you using povexport-2009-06-14? I think the bugs you describe have been fixed in that recently posted version. Also, there was a bug in Visual 5.1 with respect to shaftwidth which affected povexport, and that bug has been fixed with the new Visual 5.11. Bruce Sherwood Guy K. Kloss wrote: > Hi, > > I've been playing a bit with PovExport as provided in the FAQ. Works quite > nicely so far, but ... > > * There's a bug with drawing arrows. An arrow is a hybrid, POVray wants > a transparency, not an opacity. So the transparency() function is applied > twice, and arrows are not visible, or their transparency is inverted. > > * Simple solution: Create a function get_opacity() in the same way as > transparency(), but "invert" the behaviour (not "1.0 - a", but "a", and > not "1.0" but "0.0" in the else clause) > > * the povexport module does not handle arrows properlyh that have a changed > shaftwidth. > > Guy > > |
From: Guy K. K. <g....@ma...> - 2009-06-21 05:40:33
|
Hi, I've been playing a bit with PovExport as provided in the FAQ. Works quite nicely so far, but ... * There's a bug with drawing arrows. An arrow is a hybrid, POVray wants a transparency, not an opacity. So the transparency() function is applied twice, and arrows are not visible, or their transparency is inverted. * Simple solution: Create a function get_opacity() in the same way as transparency(), but "invert" the behaviour (not "1.0 - a", but "a", and not "1.0" but "0.0" in the else clause) * the povexport module does not handle arrows properlyh that have a changed shaftwidth. Guy -- Guy K. Kloss Institute of Information and Mathematical Sciences Te Kura Pūtaiao o Mōhiohio me Pāngarau Massey University, Albany (North Shore City, Auckland) 473 State Highway 17, Gate 1, Mailroom, Quad B Building voice: +64 9 414-0800 ext. 9585 fax: +64 9 441-8181 G....@ma... http://www.massey.ac.nz/~gkloss |
From: Jim T. <jt...@mi...> - 2009-06-20 18:52:16
|
I have posted my VisualPyODE library at http://www.missioncognition.net/visualpyode/ under the LGPL or BSD licenses. For those not familiar, PyODE is a Python wrapper for the OpenDynamicsEngine project which is a fairly simple yet powerful physics engine library. I had been using VisualPython for visualization of my models and found it cumbersome to have to define every object three times (once each for physics, collision, and display). So I made a library which automatically handles all three at once. It is an alpha release that works pretty reliably but is not yet what I would consider feature-complete. I have implemented some demos that show the library in action. It should work correctly with either v5.1 or v3.2.9 of VisualPython. JT |
From: Bruce S. <Bru...@nc...> - 2009-06-20 17:58:58
|
Puzzling and unfamiliar. Works fine for me on a MacBook with VPython 5.11, MacPython 2.6.2, OSX 10.5.7. There shouldn't be any difference in this area between VPython 5.1 and 5.11. Could you please post a small test routine that fails for you? I successfully ran the following: from visual.graph import * scene.x = 0 scene.y = 400 scene.range = 4 b = box() y = gcurve(color=color.cyan) pick = None while 1: rate(50) if scene.mouse.events: m = scene.mouse.getevent() if m.drag: dragpos = m.pickpos pick = m.pick elif m.drop: pick = None if pick: newpos = scene.mouse.pos if newpos != dragpos: pick.pos += newpos-dragpos dragpos = newpos y.plot(pos=(newpos.x,newpos.y)) Independent of the graph issue, I did notice that on Windows I didn't need the "rate(50)" but I did on the Mac, where otherwise dragging was sluggish. Bruce Sherwood Craig A. Struble, Ph.D. wrote: > Hello, > > I'm trying to develop an interactive application with two windows: one > in which a user drags a sphere around; another which plots a graph > (using gdisplay and gcurve). > > When I use only the display, I can drag the sphere around fine, using > code similar to the toroid_drag.py example. When I add the graph > display, my first window doesn't receive left mouse button events > anymore and the sphere doesn't move. The order of window creation > doesn't change anything. > > How can I have two windows and interactivity? I'm using VPython 5.1, > MacPython 2.6.2, on OS X 10.5.7. > > Craig > -- > Craig A. Struble, Ph.D. | 369 Cudahy Hall | Marquette University > Associate Professor of Computer Science | (414)288-3783 > Director, Master of Bioinformatics Program | (414)288-5472 (fax) > http://www.mscs.mu.edu/~cstruble | cra...@ma... > > > ------------------------------------------------------------------------------ > Are you an open source citizen? Join us for the Open Source Bridge conference! > Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250. > Need another reason to go? 24-hour hacker lounge. Register today! > http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users > |
From: Craig A. S. Ph.D. <cra...@ma...> - 2009-06-19 22:03:29
|
Hello, I'm trying to develop an interactive application with two windows: one in which a user drags a sphere around; another which plots a graph (using gdisplay and gcurve). When I use only the display, I can drag the sphere around fine, using code similar to the toroid_drag.py example. When I add the graph display, my first window doesn't receive left mouse button events anymore and the sphere doesn't move. The order of window creation doesn't change anything. How can I have two windows and interactivity? I'm using VPython 5.1, MacPython 2.6.2, on OS X 10.5.7. Craig -- Craig A. Struble, Ph.D. | 369 Cudahy Hall | Marquette University Associate Professor of Computer Science | (414)288-3783 Director, Master of Bioinformatics Program | (414)288-5472 (fax) http://www.mscs.mu.edu/~cstruble | cra...@ma... |
From: Craig A. S. Ph.D. <cra...@ma...> - 2009-06-19 22:03:19
|
Hello, I'm trying to develop an interactive application with two windows: one in which a user drags a sphere around; another which plots a graph (using gdisplay and gcurve). When I use only the display, I can drag the sphere around fine, using code similar to the toroid_drag.py example. When I add the graph display, my first window doesn't receive left mouse button events anymore and the sphere doesn't move. The order of window creation doesn't change anything. How can I have two windows and interactivity? I'm using VPython 5.1, MacPython 2.6.2, on OS X 10.5.7. Craig -- Craig A. Struble, Ph.D. | 369 Cudahy Hall | Marquette University Associate Professor of Computer Science | (414)288-3783 Director, Master of Bioinformatics Program | (414)288-5472 (fax) http://www.mscs.mu.edu/~cstruble | cra...@ma... |
From: Bruce S. <Bru...@nc...> - 2009-06-19 21:56:38
|
There is now available at vpython.org a Visual 5.11 package for Linux. From INSTALL.txt: There have been significant changes in where 3rd-party software is stored on Ubuntu 9.04. You probably want to use /usr/bin/python2.6 but store the Visual module in /usr/local/lib/python2.6/site-packages. To configure, do this in a folder parallel to vpython-core2: PYTHON=/usr/bin/python ../vpython-core2/configure --prefix=/usr/local/lib You will also need to copy vpython-core2/src/gtk2/site-packages.pth to /usr/lib/python2.6/dist-packages to put /usr/local/lib/python2.6/site-packages on the Python search path. Bruce Sherwood |
From: Bruce S. <Bru...@nc...> - 2009-06-19 18:41:54
|
Visual 5.11 released for Windows (Python 2. 5 and 2.6 ) and Mac (Python 2.6, Intel and PowerPC, OSX 10.4 and 10.5). Not yet released for Mac with Python 2.5, nor for Linux. Visual 5.11 fixes a minor bug in the handling of arrow attributes fixedwidth, shaftwidth, headwidth, and headlength to make behavior consistent with Visual 3. The documentation on these arrow attributes has been made clearer. Bruce Sherwood |
From: Bruce S. <Bru...@nc...> - 2009-06-19 18:04:55
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> </head> <body bgcolor="#ffffff" text="#000000"> Good point. Another possibility is to check to make sure pick is not None:<br> <br> if pick and pick.frame:<br> pick = pick.frame<br> <br> Bruce Sherwood<br> <br> Haibo Zhao wrote: <blockquote cite="mid:76b...@ma..." type="cite">Hi Bruce,<br> <br> One more small change might be needed:<br> <br> if hasattr(pick,"frame") and pick.frame:<br> pick = pick.frame<br> <br> hasattr(pick,"frame") needs to be added, otherwise it will throw an exception "AttributeError: 'NoneType' object has no attribute 'frame'" when I drag on the blank area.<br> <br> Thank you for your help<br> <br> Regards,<br> Haibo<br> <br> <div class="gmail_quote">On Fri, Jun 19, 2009 at 1:25 PM, Bruce Sherwood <span dir="ltr"><<a moz-do-not-send="true" href="mailto:Bru...@nc...">Bru...@nc...</a>></span> wrote:<br> <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">The following slight modification works. When you pick an object, just check to see whether it is in a frame, and make the frame picked: <div class="im"><br> <br> from visual import *<br> scene.range = 5 # fixed size, no autoscaling<br> ball = sphere(pos=(-3,0,0), color=color.cyan)<br> cube = box(pos=(+3,0,0), size=(2,2,2), color=color.red)<br> <br> f = frame()<br> cylinder(frame=f, pos=(0,0,0), radius=0.1, length=1,<br> color=color.cyan)<br> sphere(frame=f, pos=(1,0,0), radius=0.2, color=color.red)<br> f.axis = (0,1,0) # change orientation of both objects<br> f.pos = (-1,0,0) # change position of both objects<br> <br> pick = None # no object picked out of the scene yet<br> while 1:<br> if scene.mouse.events:<br> m1 = scene.mouse.getevent() # get event<br> if m1.drag:<br> drag_pos = m1.pickpos # where on the ball<br> pick = m1.pick # pick now true (not None)<br> </div> if pick.frame:<br> pick = pick.frame <div class="im"><br> elif m1.drop: # released at end of drag<br> pick = None # end dragging (None is false)<br> if pick:<br> # project onto xy plane, even if scene rotated:<br> new_pos = scene.mouse.project(normal=(0,0,1))<br> if new_pos != drag_pos: # if mouse has moved<br> # offset for where the ball was clicked:<br> pick.pos += new_pos - drag_pos<br> drag_pos = new_pos # update drag position<br> <br> </div> <font color="#888888">Bruce Sherwood</font> <div> <div class="h5"><br> <br> Haibo Zhao wrote:<br> <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> Hi guys,<br> <br> Say I have a sphere and a cylinder, and I grouped them together in a<br> frame. And then I tried to drag this frame using the code on this page<br> (With small changes). So basically, I want all the objects in the<br> frame move together when I drag the frame.<br> <br> <a moz-do-not-send="true" href="http://vpython.org/contents/docs/visual/mouse_drag.html" target="_blank">http://vpython.org/contents/docs/visual/mouse_drag.html</a><br> <br> It seems like frame is not "pickable"?<br> <br> Any input will be appreciated.<br> <br> Thanks,<br> Haibo<br> <br> <br> Below is the code:<br> <br> from visual import *<br> scene.range = 5 # fixed size, no autoscaling<br> ball = sphere(pos=(-3,0,0), color=color.cyan)<br> cube = box(pos=(+3,0,0), size=(2,2,2), color=color.red)<br> <br> f = frame()<br> cylinder(frame=f, pos=(0,0,0), radius=0.1, length=1,<br> color=color.cyan)<br> sphere(frame=f, pos=(1,0,0), radius=0.2, color=color.red)<br> f.axis = (0,1,0) # change orientation of both objects<br> f.pos = (-1,0,0) # change position of both objects<br> <br> pick = None # no object picked out of the scene yet<br> while 1:<br> if scene.mouse.events:<br> m1 = scene.mouse.getevent() # get event<br> if m1.drag:<br> drag_pos = m1.pickpos # where on the ball<br> pick = m1.pick # pick now true (not None)<br> elif m1.drop: # released at end of drag<br> pick = None # end dragging (None is false)<br> if pick:<br> # project onto xy plane, even if scene rotated:<br> new_pos = scene.mouse.project(normal=(0,<br> 0,1))<br> if new_pos != drag_pos: # if mouse has moved<br> # offset for where the ball was clicked:<br> pick.pos += new_pos - drag_pos<br> drag_pos = new_pos # update drag position<br> </blockquote> </div> </div> </blockquote> </div> <br> </blockquote> </body> </html> |
From: Haibo Z. <ha...@gm...> - 2009-06-19 17:58:32
|
Hi Bruce, One more small change might be needed: if hasattr(pick,"frame") and pick.frame: pick = pick.frame hasattr(pick,"frame") needs to be added, otherwise it will throw an exception "AttributeError: 'NoneType' object has no attribute 'frame'" when I drag on the blank area. Thank you for your help Regards, Haibo On Fri, Jun 19, 2009 at 1:25 PM, Bruce Sherwood <Bru...@nc...>wrote: > The following slight modification works. When you pick an object, just > check to see whether it is in a frame, and make the frame picked: > > from visual import * > scene.range = 5 # fixed size, no autoscaling > ball = sphere(pos=(-3,0,0), color=color.cyan) > cube = box(pos=(+3,0,0), size=(2,2,2), color=color.red) > > f = frame() > cylinder(frame=f, pos=(0,0,0), radius=0.1, length=1, > color=color.cyan) > sphere(frame=f, pos=(1,0,0), radius=0.2, color=color.red) > f.axis = (0,1,0) # change orientation of both objects > f.pos = (-1,0,0) # change position of both objects > > pick = None # no object picked out of the scene yet > while 1: > if scene.mouse.events: > m1 = scene.mouse.getevent() # get event > if m1.drag: > drag_pos = m1.pickpos # where on the ball > pick = m1.pick # pick now true (not None) > if pick.frame: > pick = pick.frame > elif m1.drop: # released at end of drag > pick = None # end dragging (None is false) > if pick: > # project onto xy plane, even if scene rotated: > new_pos = scene.mouse.project(normal=(0,0,1)) > if new_pos != drag_pos: # if mouse has moved > # offset for where the ball was clicked: > pick.pos += new_pos - drag_pos > drag_pos = new_pos # update drag position > > Bruce Sherwood > > > Haibo Zhao wrote: > >> Hi guys, >> >> Say I have a sphere and a cylinder, and I grouped them together in a >> frame. And then I tried to drag this frame using the code on this page >> (With small changes). So basically, I want all the objects in the >> frame move together when I drag the frame. >> >> http://vpython.org/contents/docs/visual/mouse_drag.html >> >> It seems like frame is not "pickable"? >> >> Any input will be appreciated. >> >> Thanks, >> Haibo >> >> >> Below is the code: >> >> from visual import * >> scene.range = 5 # fixed size, no autoscaling >> ball = sphere(pos=(-3,0,0), color=color.cyan) >> cube = box(pos=(+3,0,0), size=(2,2,2), color=color.red) >> >> f = frame() >> cylinder(frame=f, pos=(0,0,0), radius=0.1, length=1, >> color=color.cyan) >> sphere(frame=f, pos=(1,0,0), radius=0.2, color=color.red) >> f.axis = (0,1,0) # change orientation of both objects >> f.pos = (-1,0,0) # change position of both objects >> >> pick = None # no object picked out of the scene yet >> while 1: >> if scene.mouse.events: >> m1 = scene.mouse.getevent() # get event >> if m1.drag: >> drag_pos = m1.pickpos # where on the ball >> pick = m1.pick # pick now true (not None) >> elif m1.drop: # released at end of drag >> pick = None # end dragging (None is false) >> if pick: >> # project onto xy plane, even if scene rotated: >> new_pos = scene.mouse.project(normal=(0, >> 0,1)) >> if new_pos != drag_pos: # if mouse has moved >> # offset for where the ball was clicked: >> pick.pos += new_pos - drag_pos >> drag_pos = new_pos # update drag position >> > |
From: Guy K. K. <g....@ma...> - 2009-06-18 17:16:19
|
If anybody would like to see what I am using VPython for, have a look at this: http://www.kloss-familie.de/blog/article.php?story=20090618011530570 Guy -- Guy K. Kloss Institute of Information and Mathematical Sciences Te Kura Pūtaiao o Mōhiohio me Pāngarau Massey University, Albany (North Shore City, Auckland) 473 State Highway 17, Gate 1, Mailroom, Quad B Building voice: +64 9 414-0800 ext. 9585 fax: +64 9 441-8181 G....@ma... http://www.massey.ac.nz/~gkloss |
From: Bruce S. <Bru...@nc...> - 2009-06-18 17:02:39
|
In the contributed section of vpython.org there is a new version of the POV-Ray export module, povexport-2009-06-14.zip, that lets you export a VPython scene to POV-Ray, which can generate a high-resolution ray-traced version of the image. You have always been able to specify that a scene be "shadowless", which meant that lights didn't cast shadows. What's new is that you can now you can be more selective by specifying "no_shadow=1" as an attribute for individual objects in your VPython scene. Any VPython object which has the attribute "no_shadow=1" won't cast a shadow in POV-Ray. Also, in the new povexport module there's a minor fix to handle arrow.fixedwidth correctly. Bruce Sherwood |
From: Bruce S. <Bru...@nc...> - 2009-06-14 04:41:05
|
I'll take a look. It's possible I made a mistake in creating the installer. The candidate release did work on both 10.4 and 10.5, but there's an option to set in the package maker to make this work, and maybe I failed to set it properly when making the 5.1 installer. Thanks for the report. Bruce Sherwood Joe Heafner wrote: > I'm updating all my classroom MacBooks and I just discovered that the > VPython-Mac-Py26-5.1 package won't install on OS X 10.4. I get an > error message saying 10.5 is required. Is this just a bug in the > installer? Python 2.6.2 installed with no trouble. > > Joe |
From: Joe H. <hea...@gm...> - 2009-06-14 00:06:12
|
I'm updating all my classroom MacBooks and I just discovered that the VPython-Mac-Py26-5.1 package won't install on OS X 10.4. I get an error message saying 10.5 is required. Is this just a bug in the installer? Python 2.6.2 installed with no trouble. Joe |
From: Bruce S. <Bru...@nc...> - 2009-06-12 17:08:01
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> </head> <body bgcolor="#ffffff" text="#000000"> The two cases aren't really the same. With manual zoom, scene.center remains at (0,0,0), whereas in your ZoomIn and ZoomOut routines you're changing scene.center (see the example program stonehenge.py for a similar case, where you "fly through" the scene by dragging with the left mouse button down, either vertically for in or out or horizontally to turn). Your programmatic zoom goes past the small objects, whereas manual zoom doesn't. As you point out, once you've changed scene.center to something other than (0,0,0), manual zoom will behave differently.<br> <br> Notice too that if you comment out your loop and just use manual zoom, you do see a difference in the presence of the large object. Zoom in slowly and you'll see the front of the small sphere get cut off. Evidently what happens is a depth of field issue, as you suggest.<br> <br> I found the behavior of the programmatic zoom to be similar to manual zoom after changing your routines to vary scene.range instead of scene.center:<br> <br> def ZoomIn():<br> ## scene.center = scene.center+scene.forward*0.10<br> scene.range *= 0.95<br> <br> def ZoomOut():<br> ## scene.center = scene.center-scene.forward*0.10<br> scene.range *= 1.05<br> <br> Bruce Sherwood<br> <br> Kadir Haldenbilen wrote: <blockquote cite="mid:269...@we..." type="cite"> <style type="text/css"><!-- DIV {margin:0px;} --></style> <div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"> <div>Hello All,<br> <br> I am trying to Zoom-In / Zoom-Out under program control.<br> <br> By changing scene.center vector, it looks like we get the zoom effect working OK.<br> <br> However, if we have any large object in the "space" (i.e., not necessarily in scene/display),<br> the behaviour gets somewhat corrupted. The zoom depth is decreased and objects start to get lost as we zoom in.<br> <br> The interesting thing is that the userzoom (manual zoom) works OK even if you have the same large object around.<br> <br> Another funny behaviour is that, after program controlled zoom with large object around, the manual zoom also seems to be somewhat affected.<br> <br> Any idea on how userzoom normally works and prevents such problems to occur?<br> I tried to observe any differences in scene.mouse.camera, scene.range, scene.fov behaviour for two different cases, but noticed nothing meaningful.<br> It must be something like scene.depth, which does not exist (at least explicitely as far as I know), which gets changed with the existance of a large object.<br> <br> Kadir<br> <br> Here is my small Zoom Test code to see two differnt behaviour:<br> <br> <br> ## ZOOM TEST<br> <br> from visual import *<br> <br> scene.range = (5.0,5.0,5.0)<br> <br> LargeObject = sphere(pos=(-125.0,-95.0,-125.0),<br> radius=125.0, color=(0.7,0.7,0.7), visible=0)<br> <br> cyl1 = cylinder(pos=(0,-0.5,0), radius=0.5, axis=(0,1,0))<br> box1 = box(pos=(1,0,1))<br> bal1 = sphere(pos=(-1,0,2))<br> <br> def ZoomIn():<br> scene.center = scene.center+scene.forward*0.10<br> <br> def ZoomOut():<br> scene.center = scene.center-scene.forward*0.10<br> <br> i=0<br> while 1:<br> i += 1<br> <br> if 50 < i < 150: ZoomIn() # Zoom with LargeObject not visible<br> if 150 < i < 250: ZoomOut()<br> <br> if i == 250: LargeObject.visible=1<br> <br> if 250 < i < 350: ZoomIn() # Zoom with LargeObject visible<br> if 350 < i < 450: ZoomOut()<br> <br> rate(25)<br> <br> </div> </div> <br> <pre wrap=""> <hr size="4" width="90%"> ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. <a class="moz-txt-link-freetext" href="http://p.sf.net/sfu/businessobjects">http://p.sf.net/sfu/businessobjects</a></pre> <pre wrap=""> <hr size="4" width="90%"> _______________________________________________ Visualpython-users mailing list <a class="moz-txt-link-abbreviated" href="mailto:Vis...@li...">Vis...@li...</a> <a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/visualpython-users">https://lists.sourceforge.net/lists/listinfo/visualpython-users</a> </pre> </blockquote> </body> </html> |
From: Kadir H. <kha...@ya...> - 2009-06-12 16:19:22
|
Hello All, I am trying to Zoom-In / Zoom-Out under program control. By changing scene.center vector, it looks like we get the zoom effect working OK. However, if we have any large object in the "space" (i.e., not necessarily in scene/display), the behaviour gets somewhat corrupted. The zoom depth is decreased and objects start to get lost as we zoom in. The interesting thing is that the userzoom (manual zoom) works OK even if you have the same large object around. Another funny behaviour is that, after program controlled zoom with large object around, the manual zoom also seems to be somewhat affected. Any idea on how userzoom normally works and prevents such problems to occur? I tried to observe any differences in scene.mouse.camera, scene.range, scene.fov behaviour for two different cases, but noticed nothing meaningful. It must be something like scene.depth, which does not exist (at least explicitely as far as I know), which gets changed with the existance of a large object. Kadir Here is my small Zoom Test code to see two differnt behaviour: ## ZOOM TEST from visual import * scene.range = (5.0,5.0,5.0) LargeObject = sphere(pos=(-125.0,-95.0,-125.0), radius=125.0, color=(0.7,0.7,0.7), visible=0) cyl1 = cylinder(pos=(0,-0.5,0), radius=0.5, axis=(0,1,0)) box1 = box(pos=(1,0,1)) bal1 = sphere(pos=(-1,0,2)) def ZoomIn(): scene.center = scene.center+scene.forward*0.10 def ZoomOut(): scene.center = scene.center-scene.forward*0.10 i=0 while 1: i += 1 if 50 < i < 150: ZoomIn() # Zoom with LargeObject not visible if 150 < i < 250: ZoomOut() if i == 250: LargeObject.visible=1 if 250 < i < 350: ZoomIn() # Zoom with LargeObject visible if 350 < i < 450: ZoomOut() rate(25) |
From: Bruce S. <Bru...@nc...> - 2009-06-08 17:16:01
|
There is no version yet for 3.0 because there is not yet a version of numpy for 3.0, and Visual depends on numpy. Bruce Sherwood roberto wrote: > hello, > i have a short question: is vpython module usable with python 3.0 ? > > i looked for info in the official page but it seems it has to be used > only with 2.x versions > > thank you very much > |
From: roberto <rob...@gm...> - 2009-06-08 15:52:59
|
hello, i have a short question: is vpython module usable with python 3.0 ? i looked for info in the official page but it seems it has to be used only with 2.x versions thank you very much -- roberto |
From: Symion <kn...@ip...> - 2009-06-08 10:02:16
|
Bruce Sherwood wrote: > It is unclear to me whether you can run multiwindow programs simply by > disabling shaders, using the standard VPython-Win-Py2.6-5.1.exe, or > whether it is necessary both to disable shaders AND run the > nonstandard VPython-Win-Py2.6-5.1-exp.exe. > > Could you please report on this point? Thanks. > > No hurry, as David Scherer is away for a couple of weeks, and I won't > know how to interpret your data, but it may mean something to him. > > Bruce > > Hi, I should have been more precise, I had installed the experimental version - VPython-Win-Py2.6-5.1-exp.exe! I only mentioned disabling shaders because it might have some bearing some where, and it was necessary in order to remove the V-IDLE error messages that appear every time I run a program. Now I know this means Materials are not available to me, but I still have control over Transparency and Lights. The results are still good and stable, I can now rely on my own information window instead of relying on V-IDLE window. This might be a good time to point out that Multiple Windows are useful when running Vpython programs off the web, as V-IDLE is not necessarily present when programs are accessed by Firefox browser and important information may not be displayed. This may be more of an issue for Mozilla Firefox than Vpython as the exact method Firefox uses when running programs is very strict and there does not seem to be any way of appending info to the executable name! (pythonw.exe) Although I thought there was a python.ini (default) entry in the Firefox/Tools/Options/Applications/ device, (under python file: Action?) but it seemed to disappear from the options list and I have been unable to find any reference to it!! Which reminds me, scene.range MUST now be specified early in the program, before reading it or a nasty error message interrupts program flow. This seems a bit odd as scene.range should have been set to a default state on initialization. Symion |
From: Bruce S. <Bru...@nc...> - 2009-06-05 17:54:04
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> </head> <body bgcolor="#ffffff" text="#000000"> What version of the Boost libraries are you using? It looks to me like there may be a mismatch between your Boost Libraries and the threadpool machinery. Here is an extract from INSTALL.txt that is part of the Visual package:<br> <br> You also need the threadpool resource: sourceforge.net/projects/threadpool.<br> If you are using the 1_35_0 Boost libraries, you can use version 0.2.4 which<br> is included in the package (in dependencies). If you use a different version<br> of the Boost libraries, you need to get an appropriate threadpool version and<br> replace the files in "dependencies/threadpool/include". Copy into the include<br> directory the contents of the boost directory in the threadpool package,<br> which includes a directory named "include" and a file "threadpool.hpp".<br> <br> Bruce Sherwood<br> <br> jorge a secas wrote: <blockquote cite="mid:BLU...@ph...l" type="cite"> <style> .hmmessage P { margin:0px; padding:0px } body.hmmessage { font-size: 10pt; font-family:Verdana } </style>in the tar there are two files with the outcome, the problem it's this:<br> <br> [root@sam19 visualpy]# make && make install<br> Making all in site-packages/visual<br> make[1]: se ingresa al directorio `/usr/local/visualpy/site-packages/visual'<br> make[1]: No se hace nada para `all'.<br> make[1]: se sale del directorio `/usr/local/visualpy/site-packages/visual'<br> Making all in src<br> make[1]: se ingresa al directorio `/usr/local/visualpy/src'<br> This is a quiet Makefile. If make exits with an error, check src/build.log to see the complete error message(s). In the event of an error that you cannot debug, please send a message to <a class="moz-txt-link-abbreviated" href="mailto:vis...@li...">vis...@li...</a>, including the files config.log and src/build.log, requesting assistance.<br> Compiling ./core/util/atomic_queue.cpp ...<br> Compiling ./core/util/displaylist.cpp ...<br> Compiling ./core/util/errors.cpp ...<br> Compiling ./core/util/extent.cpp ...<br> Compiling ./core/util/gl_extensions.cpp ...<br> Compiling ./core/util/gl_free.cpp ...<br> Compiling ./core/util/icososphere.cpp ...<br> Compiling ./core/util/quadric.cpp ...<br> Compiling ./core/util/render_manager.cpp ...<br> make[1]: *** [render_manager.lo] Error 1<br> make[1]: se sale del directorio `/usr/local/visualpy/src'<br> make: *** [all-recursive] Error 1<br> <br> <br> i really appreciate your answer<br> <br> txs.<br> <br> <hr>Disfruta antes que nadie del nuevo <a moz-do-not-send="true" href="http://download.live.com" target="_new">Windows Live Messenger</a> <pre wrap=""> <hr size="4" width="90%"> ------------------------------------------------------------------------------ OpenSolaris 2009.06 is a cutting edge operating system for enterprises looking to deploy the next generation of Solaris that includes the latest innovations from Sun and the OpenSource community. Download a copy and enjoy capabilities such as Networking, Storage and Virtualization. Go to: <a class="moz-txt-link-freetext" href="http://p.sf.net/sfu/opensolaris-get">http://p.sf.net/sfu/opensolaris-get</a></pre> <pre wrap=""> <hr size="4" width="90%"> _______________________________________________ Visualpython-users mailing list <a class="moz-txt-link-abbreviated" href="mailto:Vis...@li...">Vis...@li...</a> <a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/visualpython-users">https://lists.sourceforge.net/lists/listinfo/visualpython-users</a> </pre> </blockquote> </body> </html> |
From: Joe H. <hea...@gm...> - 2009-06-01 18:36:20
|
Is anyone with a first gen 17" MacBook Pro with Radeon X1600 graphics able to use materials and textures? Is simply isn't working for me although the X1600 should be able to handle it. Joe Heafner (follow me on Twitter: twitter.com/heafnerj) email: heafnerj(at)gmail(dot)com URL: www(dot)SticksAndShadows(dot)com |