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: Gary P. <gar...@gm...> - 2008-12-05 17:24:37
|
Will programs written for version 3 run on version 5? In particular, I have visual.version = (3, 2, 11) Sorry if this has been asked and answered. I couldn't find a reference to this question. -gary On Tue, Dec 2, 2008 at 8:14 PM, Bruce Sherwood <Bru...@nc...> wrote: > Visual 5 is not quite ready for release, but it's very close. > > A preview is now available at vpython.org. Click on the link at the top > of the page for what will be the new web site, including screen shots > and full documentation. In the documentation section there is a page > describing the new features. > > Bruce Sherwood > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users > |
From: Scott D. D. <Sco...@Ac...> - 2008-12-05 17:21:46
|
Stef Mientki wrote: > Bruce Sherwood wrote: >> ... ray A unit vector pointing from camera in the direction of the mouse >> cursor. The points under the mouse cursor are exactly { camera + t*ray >> for t>0}. >> Also note the project() function for projecting the mouse position >> onto a given plane.... > Well the question was simple, but the solution isn't ;-) > I think for the moment (and maybe forever) I'm going to use > alt/ctrl/shift to differentiate between actions. Note that a box has 6 planes (at most three visible), so you could project onto each plane, determine if the point is on-box, and choose the "closest" of the on-box points. --Scott David Daniels Sco...@Ac... |
From: Bruce S. <Bru...@nc...> - 2008-12-05 14:56:33
|
Evidently you're referring to a Linux installation, where it is not possible to give a simple answer to your question. If you build from source, AND you specify that you're building for /usr/bin/python2.5, then visual will be where you say. If you build from source for /usr/local/bin/python2.5, it will be in /usr/local/lib/python2.5/site-packages/visual. If you install from a package manager on your Linux distribution, it ought to be in one of these places, but who knows? In any case, the thing to do is look in the likely places. Bruce Sherwood k roy wrote: > I have got a small doubt which is definitely stupid, but I need to > know that when we write > "from visual import *" > where is the visual directory present from which the modules are extracted. > Is it /usr/lib/python2.5/site-packages/visual or somewhere else??? |
From: Anders P. <an...@gm...> - 2008-12-05 13:01:15
|
Alternatively you can put smaller objects at the corners of the box and maintain their positions as the box is moved or resized. Clicking/dragging these objects would mean to perform one action while clicking the box can do something else. This has the additional benefit of showing the user graphically where to click for different effects. The main downside is the increased complexity. Any comments on this general solution? /Anders On Fri, Dec 5, 2008 at 12:48 PM, Stef Mientki <s.m...@ru...> wrote: > >> thanks Bruce, >> >> Bruce Sherwood wrote: >> > The general case is complicated, but it might not be too difficult in >> > a particular situation. From the documentation on mouse events: >> > >> > ray A unit vector pointing from camera in the direction of the mouse >> > cursor. The points under the mouse cursor are exactly { camera + t*ray >> > for t>0}. >> > >> > Also note the project() function for projecting the mouse position >> > onto a given plane. >> > >> > I'm afraid that it's up to you to use these tools; your question is >> > not a simple one. >> Well the question was simple, but the solution isn't ;-) >> I think for the moment (and maybe forever) I'm going to use >> alt/ctrl/shift to differentiate between actions. >> cheers, >> Stef >> >> > >> > Bruce Sherwood >> > >> > Stef Mientki wrote: >> >> hello, >> >> >> >> probably another simple question (for those who are known with >> >> vector algebra), >> >> how do I determine if I click in the corner region of a box or >> >> somewhere on the middle. >> >> >> >> the idea is that dragging, >> >> - should rotate the box if the start drag is in the corner >> >> - should move the object is hit some where in the middle >> >> >> >> thanks, >> >> Stef Mientki >> > >> > >> >> >> |
From: Stef M. <s.m...@ru...> - 2008-12-05 12:33:12
|
thanks Bruce, Bruce Sherwood wrote: > The general case is complicated, but it might not be too difficult in > a particular situation. From the documentation on mouse events: > > ray A unit vector pointing from camera in the direction of the mouse > cursor. The points under the mouse cursor are exactly { camera + t*ray > for t>0}. > > Also note the project() function for projecting the mouse position > onto a given plane. > > I'm afraid that it's up to you to use these tools; your question is > not a simple one. Well the question was simple, but the solution isn't ;-) I think for the moment (and maybe forever) I'm going to use alt/ctrl/shift to differentiate between actions. cheers, Stef > > Bruce Sherwood > > Stef Mientki wrote: >> hello, >> >> probably another simple question (for those who are known with >> vector algebra), >> how do I determine if I click in the corner region of a box or >> somewhere on the middle. >> >> the idea is that dragging, >> - should rotate the box if the start drag is in the corner >> - should move the object is hit some where in the middle >> >> thanks, >> Stef Mientki > > Het UMC St Radboud staat geregistreerd bij de Kamer van Koophandel in het handelsregister onder nummer 41055629. The Radboud University Nijmegen Medical Centre is listed in the Commercial Register of the Chamber of Commerce under file number 41055629. |
From: Stef M. <s.m...@ru...> - 2008-12-05 12:31:48
|
I forgot about the "world_space_pos" in the frame documentation. Sorry for the disturbance. cheers, Stef Stef Mientki wrote: > hello Bruce, > thanks for your fast respones. > > Bruce Sherwood wrote: > >> I think you need to give more information. I don't know what I'm >> supposed to do to see the "weird behavior", nor do I know in what way >> it is "weird". >> > Sorry for the confusion, by "weird" I mean not as I expect, > so probably I don't use the right algorithm to fulfill my expectation. > > Below is piece of code, showing my problem. > I've two boxes, a normal box, blue > and the same box, but green, in a frame. > Now I want to rotate the box in the frame, and thus the whole frame, > exactly the same as the free box. > (I've taken the axis of the boxes in such a way, that represent physical > properties, so I rather not want to change that) > In the beginning, when the frame is positioned at the origin, > the rotation behavior of free-box and frame are the same. > But when free-box and frame are shifted, this not anymore the case. > So the problem must be in the line that rotates the frame: > test_frame.rotate ( angle = -pi/2, axis = Y_AXIS, > origin = test_frame.pos + box_frame.pos ) > apparently it's not enough to add the frame position and the relative > position of the box in the frame. > > cheers, > Stef > > > > > # for reference, display origin and floor > org = visual.sphere ( > pos=(0,0,0), radius = 0.4 ) > l = 10. > floor = visual.box ( > pos=(l/2,-1,l/2), axis=(1,0,0), > color=(1,0,0), > length=l, width=l, height=2 ) > > # create a normal box > box_free = visual.box ( color=(0,0,1), > pos=(2,3,3), > length = 4, > width = 2, > height = 1 ) > > # create the same box in a frame > test_frame = frame () > box_frame = visual.box ( frame=test_frame, color=(0,1,0), > pos=(2,1,3), > length = 4, > width = 2, > height = 1 ) > > # rotate free_box and test_frame, works as expected > Y_AXIS = ( 0, 1, 0 ) > box_free .rotate ( angle = pi/2, axis = Y_AXIS ) > test_frame.rotate ( angle = pi/2, axis = Y_AXIS, > origin = test_frame.pos + box_frame.pos ) > > # now move the box and the frame in the z-direction > box_free.z += 2 > test_frame.z += 2 > > # rotate box and frame back > box_free .rotate ( angle = -pi/2, axis = Y_AXIS ) > test_frame.rotate ( angle = -pi/2, axis = Y_AXIS, > origin = test_frame.pos + box_frame.pos ) > > > > > Het UMC St Radboud staat geregistreerd bij de Kamer van Koophandel in het handelsregister onder nummer 41055629. > The Radboud University Nijmegen Medical Centre is listed in the Commercial Register of the Chamber of Commerce under file number 41055629. > > > > ------------------------------------------------------------------------------ > SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. > The future of the web can't happen without you. Join us at MIX09 to help > pave the way to the Next Web now. Learn more and register at > http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users > > > Het UMC St Radboud staat geregistreerd bij de Kamer van Koophandel in het handelsregister onder nummer 41055629. The Radboud University Nijmegen Medical Centre is listed in the Commercial Register of the Chamber of Commerce under file number 41055629. |
From: k r. <kro...@gm...> - 2008-12-05 11:06:32
|
I have got a small doubt which is definitely stupid, but I need to know that when we write "from visual import *" where is the visual directory present from which the modules are extracted. Is it /usr/lib/python2.5/site-packages/visual or somewhere else??? -- ~ Once you have flown, you will walk the earth with your eyes turned skyward, for there you have been, there you long to return --Da Vinci |
From: Stef M. <s.m...@ru...> - 2008-12-05 10:14:35
|
hello Bruce, thanks for your fast respones. Bruce Sherwood wrote: > I think you need to give more information. I don't know what I'm > supposed to do to see the "weird behavior", nor do I know in what way > it is "weird". Sorry for the confusion, by "weird" I mean not as I expect, so probably I don't use the right algorithm to fulfill my expectation. Below is piece of code, showing my problem. I've two boxes, a normal box, blue and the same box, but green, in a frame. Now I want to rotate the box in the frame, and thus the whole frame, exactly the same as the free box. (I've taken the axis of the boxes in such a way, that represent physical properties, so I rather not want to change that) In the beginning, when the frame is positioned at the origin, the rotation behavior of free-box and frame are the same. But when free-box and frame are shifted, this not anymore the case. So the problem must be in the line that rotates the frame: test_frame.rotate ( angle = -pi/2, axis = Y_AXIS, origin = test_frame.pos + box_frame.pos ) apparently it's not enough to add the frame position and the relative position of the box in the frame. cheers, Stef # for reference, display origin and floor org = visual.sphere ( pos=(0,0,0), radius = 0.4 ) l = 10. floor = visual.box ( pos=(l/2,-1,l/2), axis=(1,0,0), color=(1,0,0), length=l, width=l, height=2 ) # create a normal box box_free = visual.box ( color=(0,0,1), pos=(2,3,3), length = 4, width = 2, height = 1 ) # create the same box in a frame test_frame = frame () box_frame = visual.box ( frame=test_frame, color=(0,1,0), pos=(2,1,3), length = 4, width = 2, height = 1 ) # rotate free_box and test_frame, works as expected Y_AXIS = ( 0, 1, 0 ) box_free .rotate ( angle = pi/2, axis = Y_AXIS ) test_frame.rotate ( angle = pi/2, axis = Y_AXIS, origin = test_frame.pos + box_frame.pos ) # now move the box and the frame in the z-direction box_free.z += 2 test_frame.z += 2 # rotate box and frame back box_free .rotate ( angle = -pi/2, axis = Y_AXIS ) test_frame.rotate ( angle = -pi/2, axis = Y_AXIS, origin = test_frame.pos + box_frame.pos ) Het UMC St Radboud staat geregistreerd bij de Kamer van Koophandel in het handelsregister onder nummer 41055629. The Radboud University Nijmegen Medical Centre is listed in the Commercial Register of the Chamber of Commerce under file number 41055629. |
From: Bruce S. <Bru...@nc...> - 2008-12-05 03:36:27
|
I think you need to give more information. I don't know what I'm supposed to do to see the "weird behavior", nor do I know in what way it is "weird". Bruce Sherwood Stef Mientki wrote: > hello, > > I'm having trouble rotating a frame > In the following code, "my frame" is a frame that contains a box called > "bed" (and other objects) > When I use this code to rotate the box, parallel to the y-axis around > the center of the box: > > my_frame.rotate ( angle = a * displace.mag, > origin = my_frame.pos+bed.pos, axis = (0,1,0 )) > > it works as long as the frame is not moved. > After moving the frame, some weird rotation behavior occurs. > > Has anyone a working solution ? > > thanks, > Stef Mientki |
From: Bruce S. <Bru...@nc...> - 2008-12-05 03:35:18
|
Keep all your real objects invisible most of the time and just show a box which you rotate, then click on something in the scene to signal that you now want to see the data (the target could be a small box or sphere in a corner of the window), in which case you make the box invisible and your real objects visible. Click again to revert. A variation on this would be to show a sample of your data at all times, but click to show all the data (or hide most of the data). I'll comment that it isn't rotation itself that's slow. Rendering is pretty much independent of camera angle. Rather the issue is that once a scene takes a long time to render due to containing a large number of objects, rotation and zoom will be very slow because you get few updates per second. Bruce Sherwood Adrian Martínez Vargas wrote: > Hello mail list > > I check my code in vpython3x as show below. Using scene.visible = 0 and > scene.visible = 1 it load faster, and more faster than using crude code with > Coin3D and SoQT or VTK for Python. > > The problem is to manipulate (ex. rotate), it is really slow. > > The idea can be to hide all wile rotating or zooming and re-render (possible > showing the bounding box as visual reference) > > The question is: How to do that? > > > ******************************************************** > from visual import * > scene = display(title='Ejemplo VPython', > center=(1400,0,1400)) > scene.fullscreen=0 > scene.exit=0 > scene.autocenter = 1 > scene.visible = 0 > > for x in range(100): > for z in range(10): > for y in range(100): > box(pos=vector(1000+x*8.33,-15+z*3.,1000+y*8.33), > size=(8.33*0.9,3.*0.9,8.33*0.9), > color=color.red) > > scene.visible = 1 > ----- Original Message ----- > From: Bruce Sherwood > To: Adrián Martínez Vargas > Sent: Monday, December 01, 2008 6:17 PM > Subject: Re: [Visualpython-users] optimise visualization for large set of > data > > > That's basically what I did: > > scene.autocenter = 1 > for x in range(100): > for y in range(100): > for z in range(10): > box(pos=(x,y,10*z), size=(0.5,0.5,0.5)) > scene.visible = 1 > > Bruce Sherwood > > Adrián Martínez Vargas wrote: > Estimate > > I can get the code you use to test? > It is the same to previous versions? > > For the test I used > > from visual import * > scene = display(title='Ejemplo VPython', > center=(1400,0,1400)) > scene.fullscreen=0 > scene.exit=0 > > for x in range(100): > for z in range(10): > for y in range(100): > bloque=box(pos=vector(1000+x*8.33,-15+z*3.,1000+y*8.33), > size=(8.33*0.9,3.*0.9,8.33*0.9), > color=color.red) > > > Dr. Adrian Martínez Vargas > Revista Minería y Geología (Editor Principal) > ISMM, Las Coloradas, s/n > Moa, Holguín, > Cuba > CP. 83329 > http://www.ismm.edu.cu/revistamg/index.htm > > > -----Original Message----- > From: Bruce Sherwood <Bru...@nc... > <mailto:Bru...@nc...>> > To: Adrián Martínez Vargas <amv...@is... > <mailto:amv...@is...>> > Cc: vis...@li... > <mailto:vis...@li...> > Date: Mon, 01 Dec 2008 18:00:51 -0500 > Subject: Re: [Visualpython-users] optimise visualization for large set of > data > > > It's not quite released yet. But almost everything is ready to go. > > Bruce Sherwood > > Adrián Martínez Vargas wrote: > > Estimate Bruce Sherwood > > > > The only link that I get from http://wiki.python.org/ is e 4.beta > > version, where I can get the 5th version? > > > > > > Dr. Adrian Martínez Vargas > > Revista Minería y Geología (Editor Principal) > > ISMM, Las Coloradas, s/n > > Moa, Holguín, > > Cuba > > CP. 83329 > > http://www.ismm.edu.cu/revistamg/index.htm > > > > -----Original Message----- > > From: Bruce Sherwood <Bru...@nc... > <mailto:Bru...@nc...>> > > To: Adrián Martínez Vargas <amv...@is... > <mailto:amv...@is...>> > > Cc: vis...@li... > <mailto:vis...@li...> > > Date: Sat, 29 Nov 2008 13:01:19 -0500 > > Subject: Re: [Visualpython-users] optimise visualization for large > > set of data > > > > For Visual, that is a large data set in terms of having interactive > > zoom > > and rotate. > > > > Using the latest experimental version (Visual 5), which has an > > option to > > display cycle time (time between renders) and render time (time > > required > > to render the scene), on a rather fast laptop (Dell XPS with NVIdia > > graphics), 100x100x10 boxes has a cycle time of 1.35 seconds, and a > > render time of 0.17 seconds. In other words, Visual is hardly able to > > deal with that many objects interactively. > > > > In Visual 5 there is a new object, "points", which is similar to > curve > > but the points aren't connected. With the same 100x100x10 grid there > is > > a cycle time of 0.33 seconds and a render time of 0.080 seconds. > > > > Bruce Sherwood > > > > > > Adrián Martínez Vargas wrote: > > > hello mail list > > > > > > I have problems to visualise a large number of data, the > > visualization > > > windows get slowly, for example with 100x100x10 boxes it is > > really slow, > > > and it is not too much. > > > > > > The question is: how to optimise the visualization for large set > > of data? > > > > > > your > > > Adrian > > > > > > > > > > > > ---------------------------------------------------------------------- > -- > > > > > > > > > ---------------------------------------------------------------------- > --- > > > This SF.Net email is sponsored by the Moblin Your Move > > Developer's challenge > > > Build the coolest Linux based applications with Moblin SDK & win > > great prizes > > > Grand prize is a trip for two to an Open Source event anywhere in > > the world > > > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > <http://moblin-contest.org/redirect.php?banner_id=100&url=/> > > < http://moblin-contest.org/redirect.php?banner_id=100&url=/ > <http://moblin-contest.org/redirect.php?banner_id=100&url=/>> > > > > > > > > > > > > ---------------------------------------------------------------------- > -- > > > > > > _______________________________________________ > > > Visualpython-users mailing list > > > Vis...@li... > <mailto:Vis...@li...> > > > https://lists.sourceforge.net/lists/listinfo/visualpython-users > > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. > The future of the web can't happen without you. Join us at MIX09 to help > pave the way to the Next Web now. Learn more and register at > http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ > > > ------------------------------------------------------------------------ > > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users |
From: Bruce S. <Bru...@nc...> - 2008-12-05 03:26:34
|
The general case is complicated, but it might not be too difficult in a particular situation. From the documentation on mouse events: ray A unit vector pointing from camera in the direction of the mouse cursor. The points under the mouse cursor are exactly { camera + t*ray for t>0}. Also note the project() function for projecting the mouse position onto a given plane. I'm afraid that it's up to you to use these tools; your question is not a simple one. Bruce Sherwood Stef Mientki wrote: > hello, > > probably another simple question (for those who are known with vector > algebra), > how do I determine if I click in the corner region of a box or somewhere > on the middle. > > the idea is that dragging, > - should rotate the box if the start drag is in the corner > - should move the object is hit some where in the middle > > thanks, > Stef Mientki |
From: Scott D. D. <Sco...@Ac...> - 2008-12-05 00:49:11
|
Bruce Sherwood wrote: > .... Moreover, for the new Visual about to be > released, there's a problem with a native-mode version for the Mac > because the Mac Python 2.6 has an IDLE that won't run! Try the fix in: http://bugs.python.org/issue3926 (changes modules idlelib.run and idlelib.PyShell) I found this a bit ago. I'm hoping once 2.6.1 goes out the core developers will be more open to folding those into the trunk. --Scott David Daniels Sco...@Ac... |
From: Stef M. <s.m...@ru...> - 2008-12-04 23:46:25
|
hello, I'm having trouble rotating a frame In the following code, "my frame" is a frame that contains a box called "bed" (and other objects) When I use this code to rotate the box, parallel to the y-axis around the center of the box: my_frame.rotate ( angle = a * displace.mag, origin = my_frame.pos+bed.pos, axis = (0,1,0 )) it works as long as the frame is not moved. After moving the frame, some weird rotation behavior occurs. Has anyone a working solution ? thanks, Stef Mientki |
From: Adrian M. V. <amv...@is...> - 2008-12-04 22:58:19
|
Hello mail list I check my code in vpython3x as show below. Using scene.visible = 0 and scene.visible = 1 it load faster, and more faster than using crude code with Coin3D and SoQT or VTK for Python. The problem is to manipulate (ex. rotate), it is really slow. The idea can be to hide all wile rotating or zooming and re-render (possible showing the bounding box as visual reference) The question is: How to do that? ******************************************************** from visual import * scene = display(title='Ejemplo VPython', center=(1400,0,1400)) scene.fullscreen=0 scene.exit=0 scene.autocenter = 1 scene.visible = 0 for x in range(100): for z in range(10): for y in range(100): box(pos=vector(1000+x*8.33,-15+z*3.,1000+y*8.33), size=(8.33*0.9,3.*0.9,8.33*0.9), color=color.red) scene.visible = 1 ----- Original Message ----- From: Bruce Sherwood To: Adrián Martínez Vargas Sent: Monday, December 01, 2008 6:17 PM Subject: Re: [Visualpython-users] optimise visualization for large set of data That's basically what I did: scene.autocenter = 1 for x in range(100): for y in range(100): for z in range(10): box(pos=(x,y,10*z), size=(0.5,0.5,0.5)) scene.visible = 1 Bruce Sherwood Adrián Martínez Vargas wrote: Estimate I can get the code you use to test? It is the same to previous versions? For the test I used from visual import * scene = display(title='Ejemplo VPython', center=(1400,0,1400)) scene.fullscreen=0 scene.exit=0 for x in range(100): for z in range(10): for y in range(100): bloque=box(pos=vector(1000+x*8.33,-15+z*3.,1000+y*8.33), size=(8.33*0.9,3.*0.9,8.33*0.9), color=color.red) Dr. Adrian Martínez Vargas Revista Minería y Geología (Editor Principal) ISMM, Las Coloradas, s/n Moa, Holguín, Cuba CP. 83329 http://www.ismm.edu.cu/revistamg/index.htm -----Original Message----- From: Bruce Sherwood <Bru...@nc...> To: Adrián Martínez Vargas <amv...@is...> Cc: vis...@li... Date: Mon, 01 Dec 2008 18:00:51 -0500 Subject: Re: [Visualpython-users] optimise visualization for large set of data It's not quite released yet. But almost everything is ready to go. Bruce Sherwood Adrián Martínez Vargas wrote: > Estimate Bruce Sherwood > > The only link that I get from http://wiki.python.org/ is e 4.beta > version, where I can get the 5th version? > > > Dr. Adrian Martínez Vargas > Revista Minería y Geología (Editor Principal) > ISMM, Las Coloradas, s/n > Moa, Holguín, > Cuba > CP. 83329 > http://www.ismm.edu.cu/revistamg/index.htm > > -----Original Message----- > From: Bruce Sherwood <Bru...@nc...> > To: Adrián Martínez Vargas <amv...@is...> > Cc: vis...@li... > Date: Sat, 29 Nov 2008 13:01:19 -0500 > Subject: Re: [Visualpython-users] optimise visualization for large > set of data > > For Visual, that is a large data set in terms of having interactive > zoom > and rotate. > > Using the latest experimental version (Visual 5), which has an > option to > display cycle time (time between renders) and render time (time > required > to render the scene), on a rather fast laptop (Dell XPS with NVIdia > graphics), 100x100x10 boxes has a cycle time of 1.35 seconds, and a > render time of 0.17 seconds. In other words, Visual is hardly able to > deal with that many objects interactively. > > In Visual 5 there is a new object, "points", which is similar to curve > but the points aren't connected. With the same 100x100x10 grid there is > a cycle time of 0.33 seconds and a render time of 0.080 seconds. > > Bruce Sherwood > > > Adrián Martínez Vargas wrote: > > hello mail list > > > > I have problems to visualise a large number of data, the > visualization > > windows get slowly, for example with 100x100x10 boxes it is > really slow, > > and it is not too much. > > > > The question is: how to optimise the visualization for large set > of data? > > > > your > > Adrian > > > > > > > ---------------------------------------------------------------------- -- > > > > > ---------------------------------------------------------------------- --- > > This SF.Net email is sponsored by the Moblin Your Move > Developer's challenge > > Build the coolest Linux based applications with Moblin SDK & win > great prizes > > Grand prize is a trip for two to an Open Source event anywhere in > the world > > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > < http://moblin-contest.org/redirect.php?banner_id=100&url=/> > > > > > > > ---------------------------------------------------------------------- -- > > > > _______________________________________________ > > Visualpython-users mailing list > > Vis...@li... > > https://lists.sourceforge.net/lists/listinfo/visualpython-users > |
From: Stef M. <s.m...@ru...> - 2008-12-04 22:57:44
|
hello, probably another simple question (for those who are known with vector algebra), how do I determine if I click in the corner region of a box or somewhere on the middle. the idea is that dragging, - should rotate the box if the start drag is in the corner - should move the object is hit some where in the middle thanks, Stef Mientki |
From: k r. <kro...@gm...> - 2008-12-04 20:20:56
|
Hello, This deals with the vpd rpm in Brad Longo's blog ( http://bradlongo.wordpress.com/downloads/). I installed the vpd rpm in my Fedora 7 without any problems. Now when I tried to run 'python vpd.py' it gives the import error "no module named constant" for the line 8 in vpd.py from vpd.constant import* If any of you have used Visual Python Design VPD then kindly help. kr0y. > > >> > Hello, >> > I am an engineering student and extremely new to VPython. I have the >> > project >> > of building a GUI for VPython and demonstrate its usage as a tool for >> data >> > structures demonstration. So I am planning to provide buttons which will >> > help the user select the basic VPython shapes.The buttons will allow the >> > user to select, drag and drop the objects on the space provided. There >> > will >> > be a seperate space for editing the properties of the shape. As my main >> > purpose is to explore the usage of VPython as a tool for data structure >> > demonstration, I also need to provide certain simple commands which can >> > help >> > a teacher, who knows the pseudocode of any data structure property he >> > wants >> > to demonstrate, to generate the code, without knowing the Python syntax >> > for >> > the same. >> > Since I need to automatically generate VPython in the background, so it >> > will >> > serve as the backend of the project. For GUI building, I am using PyQt >> > and >> > Qt designer. >> > I would like you all to give your ideas and suggestions as the main >> > problem >> > which am facing is thinking of the commands which can help a person to >> > code >> > VPython programs with the help of GUI itself and maybe some extremely >> > simple >> > commands. Hoping to be helped; thanks in advance. >> > -kr0y. >> > >> > -- >> > ~ Once you have flown, you will walk the earth with your eyes turned >> > skyward, for there you have been, there you long to return --Da Vinci >> > >> ------------------------------------------------------------------------- >> > This SF.Net email is sponsored by the Moblin Your Move Developer's >> > challenge >> > Build the coolest Linux based applications with Moblin SDK & win great >> > prizes >> > Grand prize is a trip for two to an Open Source event anywhere in the >> > world >> > >> http://moblin-contest.org/redirect.php?banner_id=100&url=/_______________________________________________ >> > Visualpython-users mailing list >> > Vis...@li... >> > https://lists.sourceforge.net/lists/listinfo/visualpython-users >> > >> >> > > > -- > ~ Once you have flown, you will walk the earth with your eyes turned > skyward, for there you have been, there you long to return --Da Vinci > -- ~ Once you have flown, you will walk the earth with your eyes turned skyward, for there you have been, there you long to return --Da Vinci |
From: Stef M. <s.m...@ru...> - 2008-12-04 20:07:22
|
Bruce Sherwood wrote: > If you inspect the new documentation scheme now accessible at > vpython.org you'll see that a link to vector operations are indeed > prominently displayed at all times in the left margin. > Very good !! thanks, Stef |
From: Bruce S. <Bru...@nc...> - 2008-12-04 18:38:05
|
If you inspect the new documentation scheme now accessible at vpython.org you'll see that a link to vector operations are indeed prominently displayed at all times in the left margin. I hope too that the new layout will make printing the documentation seem less necessary. Bruce Sherwood Stef Mientki wrote: > thanks Bruce, > > Bruce Sherwood wrote: >> It's great that you found VPython to be useful for real work. >> >> I'm not absolutely sure I understand the situation, but here's an >> example which may address your question: >> >> rod = cylinder(pos=(1,2,3), axis=(5,0,0)) >> end_of_rod = rod.pos+rod.axis # this will be (6,2,3) >> > Yes you perfectly understood my question. > I think it must have been too late. > I didn't realize that the position is of course also a vector, > and vector adding is supported in VPython. > > And as I thought I had printed all the documents of Vpython, > I didn't notice the vector page. > I printed it today again, on 4 different printers, > on 3 of them it was totally unreadable, on 1 you could read it (not very > well). > There seems to be something strange with the css class program / program0 > > I would suggest to put the vector help page on top of content page, > because it's so important for "Ordinary Mortals" ;-) > > cheers, > Stef |
From: Stef M. <s.m...@ru...> - 2008-12-04 18:18:43
|
Martin Mason wrote: > As I understand your question you are trying to position manipulators > on the end of multijoint arms.. > I have written quite a bit of code to control 5 and 6 axis robotics > manipulators in Vpython. If you know the angles and lengths of your > joints and want to determine the position in 3space of your > manipulator, this is called Forward Kinematics. If you want pick a > particular spot in space and place a manipulator there by calculating > the appropriate joint angles, this is called Inverse kinematics. With > greater then 2axis, the problem can be overdetermined and you > typically apply iterative techinques or so called Lyapunov methods. > Anyway a quick intro to forward kinematics with all the examples > generated in Vpython is on my website. http://profmason.com/?p=569 > I have all the code written for the inverse kinematics, but I haven't > written anything up yet. > Failing that you can look at Introduction to Robotics Mechanics and > Control by JJ Craig. > thanks Martin, for the moment I only have 2 arms, and they should be movable by nurses, who are not educated in forward kinematics. All joints have a break, which is normally on, which makes the control easier. cheers, Stef > have fun! > mmason > > ---------------------- > Martin S. Mason > Professor of Physics and Engineering > Mt. San Antonio College > Walnut, CA 91789 > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > ------------------------------------------------------------------------ > > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users > |
From: Stef M. <s.m...@ru...> - 2008-12-04 18:16:36
|
thanks Bruce, Bruce Sherwood wrote: > It's great that you found VPython to be useful for real work. > > I'm not absolutely sure I understand the situation, but here's an > example which may address your question: > > rod = cylinder(pos=(1,2,3), axis=(5,0,0)) > end_of_rod = rod.pos+rod.axis # this will be (6,2,3) > Yes you perfectly understood my question. I think it must have been too late. I didn't realize that the position is of course also a vector, and vector adding is supported in VPython. And as I thought I had printed all the documents of Vpython, I didn't notice the vector page. I printed it today again, on 4 different printers, on 3 of them it was totally unreadable, on 1 you could read it (not very well). There seems to be something strange with the css class program / program0 I would suggest to put the vector help page on top of content page, because it's so important for "Ordinary Mortals" ;-) cheers, Stef |
From: Bruce S. <Bru...@nc...> - 2008-12-04 15:29:05
|
The first release of Visual 5 will be for Python 2.5, though of course we will try to track upgrades in Python. I tried building Visual 5 for Python 2.6, which is an attractive target because it provides support for identifying possible incompatibilities with Py3K. Unfortunately there are various problems. Here is what I posted on the VPython wiki in response to a question about 2.6: The Boost libraries, which enhance C++, have to be built for a specific version of Python, and since there aren't yet available these binaries for 2.6, I built them from source. Similarly for numpy. Turns out that something has changed in these components, because there's now a type mismatch between numpy integers and Python integers (this is a simplified description). Moreover, for the new Visual about to be released, there's a problem with a native-mode version for the Mac because the Mac Python 2.6 has an IDLE that won't run! Summary: There are various problems in the Python 2.6 world. But we'll be tracking them and looking for solutions. We would prefer to release the new Visual for Python 2.6, because Python 2.6 builds a bridge between Python 2.5 and the coming Python 3.0, a version of Python that will actually break some existing programs. Python 2.6 offers tools to check on possible incompatibilities. Bruce Sherwood Roberto Aguirre Maturana wrote: > Is Visual 5 going to be compatible with Py3K? > |
From: Roberto A. M. <rha...@ho...> - 2008-12-04 14:41:36
|
Is Visual 5 going to be compatible with Py3K? -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ |
From: Bruce S. <Bru...@nc...> - 2008-12-04 14:37:48
|
The example program "convex.py" was written by David Scherer, not by me. There wasn't any attribution in the file, so I'll add one. Bruce Sherwood Symion wrote: > Here is the Source Code for a Convex based list of objects, expanded > from convex.py > http://home.primusonline.com.au/knoware/python/ConvexObjects-2.py > <cid:par...@pr...> > > I have just bought a new computer, a Notebook ASUS dual core Intel @ > 1.8Ghz, with 2GRam, running Vista home and Mandriva Linux on USB. > I have successfully installed Python2.5 and Vpython2.5 again. > So far no problems have been encountered. > > Installing Vpython on Linux is a little more involved than Windows! > > Looking forward to the release of Visual 5. > > Symion > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users |
From: Symion <sy...@pr...> - 2008-12-04 13:08:47
|
Here is the Source Code for a Convex based list of objects, expanded from convex.py http://home.primusonline.com.au/knoware/python/ConvexObjects-2.py <cid:par...@pr...> I have just bought a new computer, a Notebook ASUS dual core Intel @ 1.8Ghz, with 2GRam, running Vista home and Mandriva Linux on USB. I have successfully installed Python2.5 and Vpython2.5 again. So far no problems have been encountered. Installing Vpython on Linux is a little more involved than Windows! Looking forward to the release of Visual 5. Symion |
From: Martin M. <pro...@gm...> - 2008-12-04 06:39:04
|
As I understand your question you are trying to position manipulators on the end of multijoint arms.. I have written quite a bit of code to control 5 and 6 axis robotics manipulators in Vpython. If you know the angles and lengths of your joints and want to determine the position in 3space of your manipulator, this is called Forward Kinematics. If you want pick a particular spot in space and place a manipulator there by calculating the appropriate joint angles, this is called Inverse kinematics. With greater then 2axis, the problem can be overdetermined and you typically apply iterative techinques or so called Lyapunov methods. Anyway a quick intro to forward kinematics with all the examples generated in Vpython is on my website. http://profmason.com/?p=569 I have all the code written for the inverse kinematics, but I haven't written anything up yet. Failing that you can look at Introduction to Robotics Mechanics and Control by JJ Craig. have fun! mmason ---------------------- Martin S. Mason Professor of Physics and Engineering Mt. San Antonio College Walnut, CA 91789 |