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: Martin M. <pro...@gm...> - 2008-01-19 08:25:53
|
A few weeks ago folks posted about using the Wiimote to control vpython. I finally got around to posting some video of this on my site. In short I used two of the accelerometer axis to control the rotation of the image and the inclination of the remote to control the zoom. It is a pretty neat way to manipulate an image. Details of how to do this and videos are posted at my site: http://profmason.com/?p=529I finally got approval to do a vpython workshop out at Mt. Sac (As part of a larger workshop on Project based learning) If anyone is in the LA area and willing, I would love to find some folks to come in and talk about how they use Vpython in their classroom. (Or if you want to learn how Vpython can be used for integrated projects in the introductory engineering physics course) The workshop is scheduled from June 14th to the 17th. Contact me for more info at pro...@gm... have fun! Martin Mason --------------------- Martin S. Mason Professor of Physics Mt. San Antonio College 1100 N. Grand Ave. Walnut, CA 91789 |
From:
<fre...@gb...> - 2008-01-15 07:04:25
|
On mardi 15 janvier 2008, Bruce Sherwood wrote: > The URL you give is not valid. There is just a missing dot just before 'avi'... Sorry! > Can you please explain the heart of your program, the function > generateMovie? I don't understand what is involved in combining many png > images into a movie. What is the format of the movie? How does one view > such a movie? > > Also, I don't see where/how the povexport facility is invoked (povexport > is a routine available on the home page of vpython.org). Maybe it's > buried inside the module "Scene3D" which you don't include? Ok. The povexport.pov() function is called in the scene.pov() method. It=20 generates the pov file with the given filename of the current scene. But=20 this method is call through __povexport(), which also call povray to=20 generate the png image. The idea is to define some points where we go in straight line. This is=20 done in the move() method. By points I mean 2 things: the spectrometer=20 position, and the camera position (for zooms). All this is given in the=20 mvt dict. Most of keys are send to sub-objects, and are just angles of=20 differents spectro parts. At each step in the move(), we call the draw method, which in turn refresh= =20 all sub-objects and also generate a png image. There is also a wait() method, which just to generate images at the same=20 position, with respect of the timing. Last, there is a neutron object which can move along a pre-defined line,=20 and which also call the __povexport() method (through its newFrameSignal()= =20 object, binded to that method). At the end, we have all png images. The generateMove() method build a movie= =20 from that, using mplayer (Don't ask me for all options; a friend gave them= =20 to me!). Hope this helps. Feel free to ask for more informations. =2D-=20 Fr=E9d=E9ric http://www.gbiloba.org |
From: Bruce S. <Bru...@nc...> - 2008-01-14 23:34:42
|
The URL you give is not valid. Can you please explain the heart of your program, the function generateMovie? I don't understand what is involved in combining many png images into a movie. What is the format of the movie? How does one view such a movie? Also, I don't see where/how the povexport facility is invoked (povexport is a routine available on the home page of vpython.org). Maybe it's buried inside the module "Scene3D" which you don't include? Bruce Sherwood Frédéric wrote: > Le 14/1/2008, "Lorenzo Isella" <lor...@gm...> a écrit: > > >>I am stepping back from my previous post, when I was asking how to >>make a movie in vpython. >>That was too ambitious then. >>I managed to get some decent animations on my laptop (running Debian >>testing); now my question is how to get at least a set of png (or any >>other decent format; pdf, eps, jpg etc...) files with the "snapshots" >>of my system. >>I do not think I can do that directly from the window showing my >>animation, but I have not been able to find online a code showing how >>to achieve that. > > > Why don't you use povexport? You generate .pov files, and you can then > process them by a simple script, and build the movie. > > I attached a script I've done 3 years ago, for a student in order to > generate this: > > http://www.gbiloba.org/download/SNP-definitif-640x480avi > > > -- > Frédéric |
From: Joel K. <jj...@ya...> - 2008-01-14 14:09:57
|
The good news is, I have been able to get fair-to-decent results grabbing VPython animations to video using CamStudio: http://camstudio.org/ The bad news is, the program exists only in Windows, and I don't know of anyone working on a Linux port yet. The license is GNU GPL, so there shouldn't be any problems if someone wants to jump in. Maybe one of you computer science teachers out there would like to offer class credit to some hot-shot students willing to try? Joel ____________________________________________________________________________________ Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs |
From: <fre...@gb...> - 2008-01-14 12:22:27
|
Le 14/1/2008, "Lorenzo Isella" <lor...@gm...> a =E9crit: >I am stepping back from my previous post, when I was asking how to >make a movie in vpython. >That was too ambitious then. >I managed to get some decent animations on my laptop (running Debian >testing); now my question is how to get at least a set of png (or any >other decent format; pdf, eps, jpg etc...) files with the "snapshots" >of my system. >I do not think I can do that directly from the window showing my >animation, but I have not been able to find online a code showing how >to achieve that. Why don't you use povexport? You generate .pov files, and you can then process them by a simple script, and build the movie. I attached a script I've done 3 years ago, for a student in order to generate this: http://www.gbiloba.org/download/SNP-definitif-640x480avi -- Fr=E9d=E9ric |
From: Kadir H. <kha...@ya...> - 2008-01-14 12:09:25
|
Lorenzo Isella wrote: > I managed to get some decent animations on my laptop (running Debian > testing); now my question is how to get at least a set of png (or any > other decent format; pdf, eps, jpg etc...) files with the "snapshots" > of my system. I can answer your question for Windows environment. Same or similar solution MAY or MAY NOT apply for Linux, I have no experience in Linux environment. First you need to install Python Image Library, PIL, if you have not done so already. You may be using it already, if you are using TEXTURE feature of the recent Beta versions of VPython. Then in your source code you need to add some lines, like the followings: import Image import ImageGrab ... Your animation code goes here ... while looping: im = ImageGrab.grab((24,30,ImageWidth-4,ImageHeight-4)) fn = "Cat"+str(pn)+".png" im.save(fn) fn is the filename in Windows environment. IF THIS SYSTEM WORKS in LINUX, then someting similar to that of filename should be sufficient. ImageGrab needs the display location (upper-left corner) and display sizedefined to it, so it picks up the image from the screen for you. You need to set up some sort of a counter in the loop like the str(pn), to get a unique file name for each snapshot. Hope it works... Kadir ____________________________________________________________________________________ Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs |
From: Lorenzo I. <lor...@gm...> - 2008-01-14 11:47:48
|
Hello, I am stepping back from my previous post, when I was asking how to make a movie in vpython. That was too ambitious then. I managed to get some decent animations on my laptop (running Debian testing); now my question is how to get at least a set of png (or any other decent format; pdf, eps, jpg etc...) files with the "snapshots" of my system. I do not think I can do that directly from the window showing my animation, but I have not been able to find online a code showing how to achieve that. Any help here is really welcome! Many thanks Lorenzo |
From: Bruce S. <Bru...@nc...> - 2008-01-13 19:53:53
|
Chipping away at the beta version, there is a new 4.beta24 for Windows and Linux. For the new points object, remove the "antialias" attribute and create a shape attribute (currently "round" or "square"). Updated the summary of the features in the beta version. Added mandelbrot.py to examples, to show how to do pixel-oriented graphing. Fixed a bug which prevented specifying a color array in a curve or points constructor. Bruce Sherwood |
From: P H B. <p.h...@bh...> - 2008-01-13 11:57:09
|
Dear visualpython-users Some Vpython emails are specific to a particular platform (linux mac windows etc) and are of minimal interest to those using another platform. It would be helpful, particularly to users of other platforms, if those generating such emails were to include the platform name in the subject line Regards Peter |
From: Ron A. <rr...@ro...> - 2008-01-13 07:12:56
|
Bruce Sherwood wrote: > There's something wrong with the program you posted: > > Traceback (most recent call last): > File "C:\Documents and Settings\Bruce\My Documents\Python > stuff\vspace.py", line 279, in -toplevel- > ship.animate(period, len(asteroids)) > File "C:\Documents and Settings\Bruce\My Documents\Python > stuff\vspace.py", line 121, in animate > self.status.text = 'frame rate = %i, asteroids = %s' \ > ZeroDivisionError: float divmod() If I change the time.time() calls to time.clock(), I get that too. I did have the import wrong for the time module. Since I originally wrote this on XP. Changed: from time import clock to: import time # use time.clock if it works, else use time.time. if time.clock() != time.clock(): time.time = time.clock There is differences between time.clock and time.time between linux and windows. I'm using Ubuntu. The above should fix it. File attached with corrections. > Also, I'll note that you have the following: > > scene.range = (0, 0, 0) > scene.scale = (.1, .1, .1) Thanks, removed the scene.range assignment. Ron |
From: Bruce S. <Bru...@nc...> - 2008-01-13 04:13:55
|
There's something wrong with the program you posted: Traceback (most recent call last): File "C:\Documents and Settings\Bruce\My Documents\Python stuff\vspace.py", line 279, in -toplevel- ship.animate(period, len(asteroids)) File "C:\Documents and Settings\Bruce\My Documents\Python stuff\vspace.py", line 121, in animate self.status.text = 'frame rate = %i, asteroids = %s' \ ZeroDivisionError: float divmod() Also, I'll note that you have the following: scene.range = (0, 0, 0) scene.scale = (.1, .1, .1) The scene.range statement is irrelevant, because the scene.scale statement is equivalent to scene.range = (10,10,10). But in the beta version setting the range to 0 gives an error, as it should; it's a failing in the production version not to give an error. Bruce Sherwood Ron Adam wrote: > > I made some changes to the VSpace.py Demo I posted earlier. > > Velocities are now time based instead of frame based, so that things > should appear to move at the same speed on different speed computers. > > The frame rate is limited by adding and removing asteroid objects. So > the number of asteroid objects acts as a rough bench mark. On my system > I get 220 asteroids at 60 FPS. Your mileage may vary of course. ;-) > > Rotation of the world is done all at once by rotating the parent "space" > frame instead of rotating frames individually. > > You can zoom in and out of the field of view by pressing both mouse > buttons at the same time. This allows you to see how everything moves > relative to the view. This was disabled before. > > The objects, asteroids, sun, stars, ship, are implemented with classes > with an "animate" method. This groups related code together in a much > nicer way. > > > Enjoy, > Ron Adam |
From: Bruce S. <Bru...@nc...> - 2008-01-13 00:50:42
|
I would think you'd have to address your question to the glibmm experts, not to VPython users....? As to configure issues, what configure typically does on Linux is check for basic resources being available, and in what form. For example, is a C++ compiler available, are there libraries available on which glibmm depends, etc. A script for configuring the building of glibmm does not check that all the glibmm files are present, because a tarball for glibmm is supposed to contain all the glibmm files. Bruce Sherwood chris lyon wrote: > I'm having problems compiling glibmm-2.14.0 > it configures ok but upon trying make I get: > > In file included from regex.cc:4: > ../../glib/glibmm/regex.h:29:25: error: glib/gregex.h: No such file or > directory > ../../glib/glibmm/regex.h:594: error: ‘GRegexEvalCallback’ has not been > declared > > ...... > > > any ideas how this can be happening? My understanding is configure > checks for the required bits and pieces before make runs? How do I > address this problem? > > Chris > |
From:
<fre...@gb...> - 2008-01-12 23:34:03
|
On samedi 12 janvier 2008, chris lyon wrote: > I'm having problems compiling glibmm-2.14.0 > it configures ok but upon trying make I get: > > In file included from regex.cc:4: > ../../glib/glibmm/regex.h:29:25: error: glib/gregex.h: No such file or > directory > ../../glib/glibmm/regex.h:594: error: =E2=80=98GRegexEvalCallback=E2=80= =99 has not been > declared > > ...... > > > any ideas how this can be happening? My understanding is configure > checks for the required bits and pieces before make runs? How do I > address this problem? This header is in the libglib2.0-dev package. Is it installed ? =2D-=20 Fr=C3=A9d=C3=A9ric http://www.gbiloba.org |
From: Jaap S. <j....@hc...> - 2008-01-12 22:50:29
|
Jaap Spies wrote: > bradley wrote: >> Jaap, >> I had proposed that question before to some people and I was told >> that was not it. This makes me feel a lot better about myself lol. Do >> you happen to know what boost lib file is missing so that I could ask >> the boost people what they recommend on doing, and also why the file was >> deleted. > > I have to look it up, but I remember there was only a libboost_thread.mt > on Fedora 8. I'll come back on that later! > On Fedora 8 there is only /usr/libboost_thread-mt.so and family, not /usr/lib/libboost_thread.so FC 7: boost-1.33.1 FC 8: boost-1.34.1 So, what's the difference? Jaap |
From: Jaap S. <j....@hc...> - 2008-01-12 22:41:10
|
bradley wrote: > Jaap, > I had proposed that question before to some people and I was told > that was not it. This makes me feel a lot better about myself lol. Do > you happen to know what boost lib file is missing so that I could ask > the boost people what they recommend on doing, and also why the file was > deleted. I have to look it up, but I remember there was only a libboost_thread.mt on Fedora 8. I'll come back on that later! Jaap > Brad > > > > Jaap Spies wrote: >> bradley wrote: >>> I have not been able to get any of the beta version to compile on >>> Fedora. The reason is not a dependency issue, but may have something >>> to do with differences between Fedora and Ubuntu. Or at least that >>> was my understanding of it. Recently I have met up with someone >>> though who might have a solution and if so I will be able to make >>> some rpm's shortly. I will post them on my site as usual. If >>> anyone using Fedora 8 has gotten a beta version to compile please let >>> me know. >>> >> >> On Fedora 7 no problem, but on Fedora 8 there is a missing >> libboost_thread library in boost. The boost version in FC8 is rotten! >> >> Jaap >> > > > |
From: Jaap S. <j....@hc...> - 2008-01-12 21:16:36
|
bradley wrote: > I have not been able to get any of the beta version to compile on > Fedora. The reason is not a dependency issue, but may have something to > do with differences between Fedora and Ubuntu. Or at least that was my > understanding of it. Recently I have met up with someone though who > might have a solution and if so I will be able to make some rpm's > shortly. I will post them on my site as usual. > If anyone using Fedora 8 has gotten a beta version to compile please > let me know. > On Fedora 7 no problem, but on Fedora 8 there is a missing libboost_thread library in boost. The boost version in FC8 is rotten! Jaap |
From: bradley <bj...@nc...> - 2008-01-12 21:03:55
|
I have not been able to get any of the beta version to compile on Fedora. The reason is not a dependency issue, but may have something to do with differences between Fedora and Ubuntu. Or at least that was my understanding of it. Recently I have met up with someone though who might have a solution and if so I will be able to make some rpm's shortly. I will post them on my site as usual. If anyone using Fedora 8 has gotten a beta version to compile please let me know. Brad |
From: chris l. <chr...@sp...> - 2008-01-12 18:48:42
|
I'm having problems compiling glibmm-2.14.0 it configures ok but upon trying make I get: In file included from regex.cc:4: ../../glib/glibmm/regex.h:29:25: error: glib/gregex.h: No such file or directory ../../glib/glibmm/regex.h:594: error: ‘GRegexEvalCallback’ has not been declared ...... any ideas how this can be happening? My understanding is configure checks for the required bits and pieces before make runs? How do I address this problem? Chris |
From: Bruce S. <Bru...@nc...> - 2008-01-12 15:31:34
|
In the beta version (see "Recent developments" at vpython.org), in the example program stonehenge.py you'll see photos of flowers on walls, and in the "Contributed programs" section of vpython.org the program image.py shows some details about this. In the production version of VPython there is no way to display an image. Bruce Sherwood Frédéric Mantegazza wrote: > On samedi 12 janvier 2008, jer...@in... wrote: > >> Is there a way of filling the display space of a VP window with some >> jpeg, or other image? > > What do you mean by filling? With beta version, you can map an image on a > surface object (only sphere and plans fomr the moment). Is it what you > need? > |
From: Bruce S. <Bru...@nc...> - 2008-01-12 15:26:35
|
I suggest you study the VPython example program gas.py, which manipulates Numeric arrays without loops, then updates the pos attributes of all objects in a very tight loop. The key point is that you shouldn't be dealing with individual x, y, and z lists or arrays but rather with arrays of <x,y,z> vectors. Bruce Sherwood P.S. Technical point: The production version of VPython (3.2.9) imports Numeric (so you don't have to explicitly import it yourself), and the beta version (4.beta) imports numpy. Lorenzo Isella wrote: > Hello, > and thanks for your help. > Probably I'd better make one step at the time. > I made some progress in creating an animation; say that I have n_part > particles and n_config stored configurations (i.e.snapshots of the > system), and that all the particles coordinates in a given configuration > are stored in x_list, y_list, z_list, then this is what I can do: > 1) read the particle positions from tot_config and plot the initial > configuration > > my_config=0 > for i in xrange(0,n_part): > > > x_list[i]=tot_config[my_conf,3*i] > y_list[i]=tot_config[my_conf,(3*i+1)] > z_list[i]=tot_config[my_conf,(3*i+2)] > > > > particles=[v.sphere(pos=loc,radius=my_rad,color=v.color.blue)\ > for loc in zip(x_list,y_list,z_list)] > > 2) Then I can update the particle positions by reading the other > configurations and re-using x_list,y_list and z_list: > > for my_conf in xrange(1,n_config): > > > for i in xrange(0,n_part): > x_list[i]=tot_config[my_conf,3*i] > y_list[i]=tot_config[my_conf,(3*i+1)] > z_list[i]=tot_config[my_conf,(3*i+2)] > v.rate(1000) > particles[i].pos=(x_list[i],y_list[i],z_list[i]) > > > The problem of doing so is that I am "moving" only a particle at the > time, it takes quite some time and the resulting animations looks > somehow odd. > My idea would be: first generate the particles and locate them as in the > initial configuration, then read the second configuration and move all > the particles accordingly in a single go and so on and so forth. > However, whereas I can directly address e.g. particles[4].pos, I cannot > manipulate in one go all the particle positions directly via > particles.pos, which is why I am posting again. > I am sure that fixing this must be a one-liner, but so far I have not > achieved much. > Many thanks > > Lorenzo > > > >> Message: 3 >> Date: Thu, 10 Jan 2008 17:52:30 -0800 >> From: Scott David Daniels <Sco...@Ac...> >> Subject: Re: [Visualpython-users] Generating PDF and Movies in Visual >> Python >> To: vis...@li... >> Message-ID: <fm6hs4$rhj$1...@ge...> >> Content-Type: text/plain; charset=ISO-8859-1; format=flowed >> >> Lorenzo Isella wrote: >> >>> ... >>> pos_list=s.zeros(3) # I initialize the array to contain the single >>> particle's coordinates >>> my_rad=1.06/2. >>> for i in xrange(0,n_part): #n_part is the number of particles in my system >>> pos_list[0]=x_list[i] #x_list contains a list of the x-coordinate >>> of all the particles in the system at a given time >>> pos_list[1]=y_list[i] >>> pos_list[2]=z_list[i] >>> particle=v.sphere(pos=pos_list,radius=my_rad,color=v.color.blue) >>> >> > In a sense, I have filled the space with the same particle repeated >> > many times, whereas I would like to have an array of particles >> > part[j] whose positions can be updated in time. >> >> Try this (to get all points in the frame): >> my_rad = 1.06 / 2. >> particles = [v.sphere(pos=loc, radius=my_rad, color=v.color.blue) >> for loc in zip(x_list, y_list, z_list)] >> >> >>> 1)zooming and selecting a part of the scene (i.e. some specific particle >>> configurations) and generating a pdf or eps or jpg or png file. >>> >> See Ruth Chabay's contributed program to go from Vpython to POV-Ray >> source, then use POV-Ray to go from source to .png image. >> >> >>> 2)generating a movie. I saw there is a contributed program which should >>> work only for MacOS and I wonder if there is anything similar available >>> for Linux (I am running Debian testing on my box). >>> >> First, you are not asking anything simple when you ask to go to a movie. >> Your head needs to get higher if you really want to do this. E-mail me >> separately if you have everything solved up through getting .png images, >> and I can provide you with "no redistribution; no comercial use" code to >> take a bunch of .png files to a .mng file (which is an obscure movie >> format, but there _are_ a few readers out there). >> >> --Scott David Daniels >> Sco...@Ac... >> |
From:
<fre...@gb...> - 2008-01-12 15:07:14
|
On samedi 12 janvier 2008, jer...@in... wrote: > Is there a way of filling the display space of a VP window with some > jpeg, or other image? What do you mean by filling? With beta version, you can map an image on a=20 surface object (only sphere and plans fomr the moment). Is it what you=20 need? =2D-=20 Fr=E9d=E9ric http://www.gbiloba.org |
From: <jer...@in...> - 2008-01-12 14:15:09
|
Gents, I am a "newbie" (with a long beard). Perhaps I should have read more carefully the docs... Is there a way of filling the display space of a VP window with some jpeg, or other image? Thanks. If the "normal" answer is a plain "no", is it possible to hack the system routines, i.e. did somebody do that? Jerzy Karczmarczuk |
From: Lorenzo I. <lor...@gm...> - 2008-01-12 11:19:25
|
Hello, and thanks for your help. Probably I'd better make one step at the time. I made some progress in creating an animation; say that I have n_part particles and n_config stored configurations (i.e.snapshots of the system), and that all the particles coordinates in a given configuration are stored in x_list, y_list, z_list, then this is what I can do: 1) read the particle positions from tot_config and plot the initial configuration my_config=0 for i in xrange(0,n_part): x_list[i]=tot_config[my_conf,3*i] y_list[i]=tot_config[my_conf,(3*i+1)] z_list[i]=tot_config[my_conf,(3*i+2)] particles=[v.sphere(pos=loc,radius=my_rad,color=v.color.blue)\ for loc in zip(x_list,y_list,z_list)] 2) Then I can update the particle positions by reading the other configurations and re-using x_list,y_list and z_list: for my_conf in xrange(1,n_config): for i in xrange(0,n_part): x_list[i]=tot_config[my_conf,3*i] y_list[i]=tot_config[my_conf,(3*i+1)] z_list[i]=tot_config[my_conf,(3*i+2)] v.rate(1000) particles[i].pos=(x_list[i],y_list[i],z_list[i]) The problem of doing so is that I am "moving" only a particle at the time, it takes quite some time and the resulting animations looks somehow odd. My idea would be: first generate the particles and locate them as in the initial configuration, then read the second configuration and move all the particles accordingly in a single go and so on and so forth. However, whereas I can directly address e.g. particles[4].pos, I cannot manipulate in one go all the particle positions directly via particles.pos, which is why I am posting again. I am sure that fixing this must be a one-liner, but so far I have not achieved much. Many thanks Lorenzo > > Message: 3 > Date: Thu, 10 Jan 2008 17:52:30 -0800 > From: Scott David Daniels <Sco...@Ac...> > Subject: Re: [Visualpython-users] Generating PDF and Movies in Visual > Python > To: vis...@li... > Message-ID: <fm6hs4$rhj$1...@ge...> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Lorenzo Isella wrote: > >> ... >> pos_list=s.zeros(3) # I initialize the array to contain the single >> particle's coordinates >> my_rad=1.06/2. >> for i in xrange(0,n_part): #n_part is the number of particles in my system >> pos_list[0]=x_list[i] #x_list contains a list of the x-coordinate >> of all the particles in the system at a given time >> pos_list[1]=y_list[i] >> pos_list[2]=z_list[i] >> particle=v.sphere(pos=pos_list,radius=my_rad,color=v.color.blue) >> > > In a sense, I have filled the space with the same particle repeated > > many times, whereas I would like to have an array of particles > > part[j] whose positions can be updated in time. > > Try this (to get all points in the frame): > my_rad = 1.06 / 2. > particles = [v.sphere(pos=loc, radius=my_rad, color=v.color.blue) > for loc in zip(x_list, y_list, z_list)] > > >> 1)zooming and selecting a part of the scene (i.e. some specific particle >> configurations) and generating a pdf or eps or jpg or png file. >> > See Ruth Chabay's contributed program to go from Vpython to POV-Ray > source, then use POV-Ray to go from source to .png image. > > >> 2)generating a movie. I saw there is a contributed program which should >> work only for MacOS and I wonder if there is anything similar available >> for Linux (I am running Debian testing on my box). >> > First, you are not asking anything simple when you ask to go to a movie. > Your head needs to get higher if you really want to do this. E-mail me > separately if you have everything solved up through getting .png images, > and I can provide you with "no redistribution; no comercial use" code to > take a bunch of .png files to a .mng file (which is an obscure movie > format, but there _are_ a few readers out there). > > --Scott David Daniels > Sco...@Ac... > > > > > |
From: Ron A. <rr...@ro...> - 2008-01-11 22:37:14
|
I made some changes to the VSpace.py Demo I posted earlier. Velocities are now time based instead of frame based, so that things should appear to move at the same speed on different speed computers. The frame rate is limited by adding and removing asteroid objects. So the number of asteroid objects acts as a rough bench mark. On my system I get 220 asteroids at 60 FPS. Your mileage may vary of course. ;-) Rotation of the world is done all at once by rotating the parent "space" frame instead of rotating frames individually. You can zoom in and out of the field of view by pressing both mouse buttons at the same time. This allows you to see how everything moves relative to the view. This was disabled before. The objects, asteroids, sun, stars, ship, are implemented with classes with an "animate" method. This groups related code together in a much nicer way. Enjoy, Ron Adam |
From: Kadir H. <kha...@ya...> - 2008-01-11 10:30:11
|
Scott David Daniels wrote: > ... > See Ruth Chabay's contributed program to go from Vpython to POV-Ray > source, then use POV-Ray to go from source to .png image. I am not sure if I am missing anything, but in the Windows environment at least, you can obtain .png files directly from within Vpython, without going through POV-Ray, although it gives a much better photo-realistic output (at a very high cost of raster time). At the moment I am using Windows MovieMaker to make movies from a series of .png files, which results in very large file sizes with low video quality. I have tried several Divx Authoring programs with not much success in terms of file size. I have looked into MNG "movie" format which apparently is not supported in common video player environments. I have not attempted yet installing all those libs to get the .mng output done. Do you have any feeling on the .mng file sizes in relation with .png files, and the output quality? Kadir Haldenbilen ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Visualpython-users mailing list Vis...@li... https://lists.sourceforge.net/lists/listinfo/visualpython-users Scott Davis wrote: ____________________________________________________________________________________ Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping |