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: Guenter S. <Gue...@ph...> - 2009-08-31 17:03:01
|
I ran into a number of problems with vpython on Linux which appear to be
all related. The problems do not happen in Windows. My system is ubuntu
9.04, vpython 5.12 compiled from source (5.11 gives identical results).
Thee common feature I see on Linux is, whenever vpython raises an
exception, python seg. faults.
Example 1:
In [1]: from visual import *
In [2]: a = vector(1,2,3)
In [3]: for i in a:
...: print i
...:
...:
1.0
2.0
3.0
Segmentation fault
~ $
but the following works:
Example 2:
In [1]: from visual import *
In [2]: a = vector(1,2,3)
In [3]: for i in a:
...: print i
...: if i>2:
...: break
...:
...:
1.0
2.0
3.0
This seems to point to the raising a StopIteration exception as the
problem point.
Example 3:
In [1]: from visual import *
In [2]: a = [1,2,3]
In [3]: mag2(a)
Out[3]: 14.0
In [4]: a = [1,2,'x']
In [5]: mag2(a)
Segmentation fault
~ $
It should have raised a TypeError as in this case
In [1]: from visual import *
In [2]: a = [1,2,'x']
In [3]: print a[0]*a[0]+a[1]*a[1]+a[2]*a[2]
------> print(a[0]*a[0]+a[1]*a[1]+a[2]*a[2])
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
Finally this fails as well:
Example 5:
In [1]: from visual import *
In [2]: quit()
Do you really want to exit ([y]/n)?
Segmentation fault
~ $
This error is probably caused by a SystemExit exception.
Is something wrong with my install? Hard to see how to go wrong there,
it's configure, make, make install and taking care of site-packages in
ubuntu 9.04.
Thank you for your help and the great work.
Guenter Schneider
|
|
From: Matteo M. <mat...@it...> - 2009-08-31 12:34:37
|
Dears,
I've a problem integrating VPython5 with PyQt4. If anyone can help me...
thanks a lot!
Here is the problem:
The following code should show a PyQt4 form together with a VPython scene.
Using VPython3 it works correctly, while useing VPython5 it crashes.
Does anyone has experience on facing this problem?
I would be very grateful if anyone can help me.
from visual import *
from PyQt4 import QtCore, QtGui
import sys
class MainWindow(QtGui.QMainWindow):
def __init__(self):
QtGui.QDialog.__init__(self)
scene.visible = 1
b = box()
app = QtGui.QApplication(sys.argv)
window = MainWindow()
window.show()
sys.exit(app.exec_())
replacing
scene.visible = 1
with
scene.visible = 0
it works and the Qt window is shown also with VPython5 (but the scene
can't be obviously seen!).
Thanks in advance
Matteo
--
-------------------------------------------------------
Matteo Malosio, Eng.
Researcher
ITIA-CNR (www.itia.cnr.it)
Institute of Industrial Technologies and Automation
National Research Council
via Bassini 15, 20133 MILANO, ITALY
Ph: +39 0223699978
Fax: +39 0223699925
e-mail: mat...@it...
-------------------------------------------------------
|
|
From: Bruce S. <Bru...@nc...> - 2009-08-30 18:02:07
|
Can you give a simple test routine that shows the problem with label? I'm not familiar with this problem. The only text output in VPython is the label object. In visual.controls (see the example program controlstest.py) there are options that include simple menus (made from labels). You might search the archives for this list, as various people in the past have talked about their own work on embedding VPython in larger environments. Bruce Sherwood nipun batra wrote: > I saw videos on physics using VPython.I tried to use label to display > changing parameters,but it looks ugly at times when it's overwritten on > previous value.Moreover it makes a simple projectile program damn > slow.Any alternative? > Can we use some text fields,areas ,menus here in VPython > |
|
From: nipun b. <nip...@gm...> - 2009-08-30 06:52:05
|
I saw videos on physics using VPython.I tried to use label to display changing parameters,but it looks ugly at times when it's overwritten on previous value.Moreover it makes a simple projectile program damn slow.Any alternative?Can we use some text fields,areas ,menus here in VPython |
|
From: Bruce S. <Bru...@nc...> - 2009-08-29 14:51:29
|
Thanks for catching this! Yes, the documentation is indeed self-contradictory; only gdots accepts a list of points, but they all should; this is an oversight. It involves I think a pretty simple fix to graph.py -- just emulate for the other objects what's done for gdots. Bruce Sherwood Jon Schull wrote: > The documentations seems to be self-contradictory (can a list be used > for all the g* objects or just the gdots object)? > > > When you create a gcurve, gdots, gvbars, or ghbars object, you can > provide a list of points to be plotted, just as is the case with the > ordinary curve object: > values = [(1,2), (3,4), (-5,2), (-5,-3)] > data = gdots(pos=values, color=color.blue) > /This list option is available only when creating the //gdots// object./ > > > I find it works with gdots but not with gcurve.... > > Jon Schull sc...@di... <mailto:sc...@di...> > cell: 585-738-6696 > Associate Professor Rochester Institute of Technology > > > > On Wed, Aug 26, 2009 at 5:24 PM, Bruce Sherwood <Bru...@nc... > <mailto:Bru...@nc...>> wrote: > > In the contributed section of vpython.org <http://vpython.org> is a > new povexport-2009-08-26.zip > package which lets you specify that a specific object to be exported > to POV-Ray > and ray-traced not only should not cast a shadow but also should not > make any > reflections in other objects. By specifying no_shadow=True and > no_reflection=True for an object you have the capability of making > an object be > "unreal" in the final raytraced image. A good example is a curve object > representing a trajectory of a moving object. > > Bruce Sherwood > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day > trial. Simplify your report design, integration and deployment - and > focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > <mailto:Vis...@li...> > https://lists.sourceforge.net/lists/listinfo/visualpython-users > > |
|
From: nipun b. <nip...@gm...> - 2009-08-29 05:55:01
|
I have just started with VPython and like it.I quickly need a simple working example of rotation of a cube.Please help |
|
From: Jon S. <js...@gm...> - 2009-08-29 02:34:40
|
The documentations seems to be self-contradictory (can a list be used for all the g* objects or just the gdots object)? When you create a gcurve, gdots, gvbars, or ghbars object, you can provide a list of points to be plotted, just as is the case with the ordinary curve object: values = [(1,2), (3,4), (-5,2), (-5,-3)] data = gdots(pos=values, color=color.blue) *This list option is available only when creating the **gdots** object.* I find it works with gdots but not with gcurve.... Jon Schull sc...@di... cell: 585-738-6696 Associate Professor Rochester Institute of Technology On Wed, Aug 26, 2009 at 5:24 PM, Bruce Sherwood <Bru...@nc...>wrote: > In the contributed section of vpython.org is a new > povexport-2009-08-26.zip > package which lets you specify that a specific object to be exported to > POV-Ray > and ray-traced not only should not cast a shadow but also should not make > any > reflections in other objects. By specifying no_shadow=True and > no_reflection=True for an object you have the capability of making an > object be > "unreal" in the final raytraced image. A good example is a curve object > representing a trajectory of a moving object. > > Bruce Sherwood > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users > |
|
From: nipun b. <nip...@gm...> - 2009-08-28 13:53:56
|
Hi,i wish to make an application to track a UAV in which i plan to do following receive info serially into a GUI(most probably i will use pyGTK).Need something for moving map display,virtual cockpit and plane simuation 3d.How good will Vpython be for the task.Can all this be integrated in a single Vpython screen something like MS Flight Simulator,menus etc also be added |
|
From: Krishna S. R. <dks...@gm...> - 2009-08-28 11:15:37
|
Hello, The visual-5.12 tar file for Linux is not there. The page says Not Found The requested URL /contents/download/visual-5.12.tar.bz2 was not found on this server. Please fix! Cheers, Sandy |
|
From: Bruce S. <Bru...@nc...> - 2009-08-26 21:24:47
|
In the contributed section of vpython.org is a new povexport-2009-08-26.zip package which lets you specify that a specific object to be exported to POV-Ray and ray-traced not only should not cast a shadow but also should not make any reflections in other objects. By specifying no_shadow=True and no_reflection=True for an object you have the capability of making an object be "unreal" in the final raytraced image. A good example is a curve object representing a trajectory of a moving object. Bruce Sherwood |
|
From: Bruce S. <Bru...@nc...> - 2009-08-22 22:14:10
|
Let's hope that someone else has run across this problem, but it sounds completely unfamiliar. My own first thought was that it is necessary to update the graphics driver, but since you managed to get everything to function with your workaround, that doesn't seem likely. There's nothing particularly special about sliders -- they just process mouse events. You might try narrowing the scope of the problem by playing with a copy of the module controls.py (in C:\Python26\Lib\site-packages\visual), inserting debugging print statements at critical points. And I would think you should see problems with any program that does mouse drags, such as the example program toroid_drag.py or colorsliders.py. The latter program has slider-like devices but doesn't import controls. Bruce Sherwood Parker Swanson wrote: > Hello VPython community, > > Maybe somebody can point me toward a solution to our problem: our College has acquired a number of HP EliteBook 2730p Tablet PC's with "Windows XP Tablet PC Edition 2005 Version 2002 Service Pack 3" installed. We want to use the machines to develop and run VPython programs. But I find that some of the objects in visual.controls don't work: for example, the slider. (This was observed with the supplied controlstest.py program as well as a program I wrote.) > > As a temporary work-around, I found that if I install a virtualization platform such as VMWare Server 1.0.9 or VirtualBox, then build a Win XP Professional VM, and install Python 2.6.2 and VPython-Win-Py2.6-5.12.exe within the VM, VPython including the visual.controls objects (including the sliders) work just fine in the VM. > > Question: Is there any published patch for Visual 5 which would allow all the controls to work in the Win XP Tablet OS? (Possibly if I have time I'll look into the source code myself...). > > Thanks! > par...@li... > |
|
From: Parker S. <Par...@li...> - 2009-08-22 19:39:41
|
Hello VPython community, Maybe somebody can point me toward a solution to our problem: our College has acquired a number of HP EliteBook 2730p Tablet PC's with "Windows XP Tablet PC Edition 2005 Version 2002 Service Pack 3" installed. We want to use the machines to develop and run VPython programs. But I find that some of the objects in visual.controls don't work: for example, the slider. (This was observed with the supplied controlstest.py program as well as a program I wrote.) As a temporary work-around, I found that if I install a virtualization platform such as VMWare Server 1.0.9 or VirtualBox, then build a Win XP Professional VM, and install Python 2.6.2 and VPython-Win-Py2.6-5.12.exe within the VM, VPython including the visual.controls objects (including the sliders) work just fine in the VM. Question: Is there any published patch for Visual 5 which would allow all the controls to work in the Win XP Tablet OS? (Possibly if I have time I'll look into the source code myself...). Thanks! par...@li... |
|
From: Bruce S. <Bru...@nc...> - 2009-08-21 19:16:58
|
Visual 5.12 released for Windows (Python 2.6), Mac (Python 2.6, Intel, OSX 10.4 and 10.5), and Linux. As far as I can tell, you can install Visual 5.12 without uninstalling Visual 5.11. New: frame_to_world and world_to_frame functions for converting between frame and "world" coordinates, stimulated by a suggestion of Robert Xiao. See the documentation on frames. Fixes: bug in frame manipulations (pointed out by Robert Xiao), and a bug in helix that didn't permit creating additional attributes when creating a helix. There are significant improvements to VIDLE thanks to Guilherme Polo working in a 2009 Google Summer of Code project, including the ability to edit and test without first having to save a file (you're warned about whether to save the file when you exit), and the shell window coming forward when there is an error, to alert you. The VIDLE startup icon on the Mac (in /Applications/VPython) has been simplified and is probably more robust. The attentive reader will note that I haven't built installers for Python 2.5 nor PowerPC Macs, for which older installers are still available. Please let me know whether this is a problem, and/or whether you would be willing to take responsibility for building installers for these lesser-used configurations (I could teach you what's involved). Bruce Sherwood |
|
From: Korb, T. <jt...@pu...> - 2009-08-17 15:24:26
|
As the semester gets started, here is a reminder that there is a VPython
wiki available as an alternative to post and share information about
VPython...
http://vpython.wikidot.com
I set it up last fall in response to a request from Bruce Sherwood. All
members of this list are welcome (and encouraged!) to join. The site
includes a forum for posting questions and answers (including code
snippets), which could simplify and organize ongoing discussions.
Members can also create pages to post demonstration programs,
collaborate on projects and documentation, and develop ideas.
To join, visit...
http://vpython.wikidot.com/system:join
After you have created your Wikidot account, you'll need this "secret
password" to become a member of the VPython site:
vpython-user
If you forget the secret password, just submit a normal request to join
and I'll try to approve it promptly.
Tim Korb
|
|
From: Bruce S. <Bru...@nc...> - 2009-08-17 02:26:51
|
Now I find that this hall of mirrors is complete: Guilherme Polo tells me that the person who suggested to him that he approach David Scherer and me about including IDLE in his summer project was....Scott David Daniels! Bruce Sherwood Bruce Sherwood wrote: > This is actually very humorous, as you'll see. For the benefit of those > who may not know about it, I'll comment that Google every year runs a > program called "Google Summer of Code" (GSoC) in which significant > open-source projects such as Python nominate students to work on > projects and Google pays the student. A mentor is assigned to the > student to give advice and follow progress. > > One of this summer's Python projects was proposed by a Brazilian > student, Guilherme Polo, who had done good work in two previous GSoC > programs, and the project was accepted by the Python group. Polo > proposed doing a lot of maintenance and bug fixes on Tk and IDLE. His > mentor was....me! So yes, I do know about Polo's work, and I'm really > excited about it. > > David Scherer and I had a wish list of IDLE fixes and changes which are > among the things Polo worked on. To give just one example: There are now > thousands of students every semester learning about computational > modeling in introductory university physics classes by writing VPython > programs (see http://www.matterandinteractions.org). These are novice > programmers. It is common for them to stare at a non-moving image > without it occurring to them that the halt could be due to a program > error. Polo has implemented that the shell window containing the error > comes forward to be seen, which should make a huge difference. > > The GSoC is nearly at an end, and Polo is finishing up his work. The > presumption is that this will make it into the official IDLE for Python, > but in the meantime I'll change the temporary VIDLE to be the new > version. Hurray! > > Bruce Sherwood > > Scott David Daniels wrote: >> Hey Bruce, did you notice gpolo's flurry of checkins on Idle? >> It might be a good time to see what is still a bug, and what is not. >> >> A number of year-old and older issues got addressed. >> >> --Scott David Daniels >> Sco...@Ac... > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users |
|
From: Bruce S. <Bru...@nc...> - 2009-08-16 05:52:08
|
Neither of you has it quite right. Kadir is correct that the problem is something to do with the graphics card or driver, because Marco was running a standard example (bounce.py), not writing a new program. Because I answered a personal note from Marco before I saw the same post by him in the list, I know that the issue isn't materials but any image whatsoever. He has a laptop, and probably he needs to update his graphics driver, or possibly his graphics card just doesn't support OpenGL properly. Bruce Sherwood Kadir Haldenbilen wrote: > I believe Marco has a problem with materials setting. > > It is highly likely that his display adapter does not support new > material types, so that they are all > displayed dark blue. > > Marco may need to switch materials off in the sitesetings file at the > visual directory. > > Kadir > > ------------------------------------------------------------------------ > *From:* Scott David Daniels <Sco...@Ac...> > *To:* vis...@li... > *Sent:* Saturday, August 15, 2009 8:44:59 PM > *Subject:* Re: [Visualpython-users] visualization of colors > > marco bittelli wrote: > > I am starting to use Python and Visualpython. I am running the first > simple > > program with a 3D animation of a red ball bouncing on a blue floor. I > > installed > > > > Visual 5.11 released for Windows and Python 2.6. The colors are not > showing > > well on the screen. For instance both the ball and the floor are dark > blue. > > The human eye is not great with pure blue. You could make it a paler > blue by using a less monochrome color. For example, you could simply go > from a pure blue RGB (0.0, 0.0, 1.0) to increasing the "lightness" by > adding a balanced amount of red and green (for example (.4, .4, 1.0)), > or even pump up green since we are so good at seeing green: (.4, .6, 1). > so, rather than "blue" in the demo, use one of these triples. > > It may also be your lighting. You could turn up the ambient some, > (scene.ambient = .4, rather than the .2 default) for example, or add > lights. I think the default lighting has a "hole" from one direction, > are you looking at the dark side of the demo? > > to fiddle with all of this, do something simple: > import visual as vp > s = vp.sphere() # make a sphere (default color is white) > s.color = (.5, .6, .7) # try painting the sphere a new color > vp.scene.ambient # see ambient lighting (note it is colored light) > vp.scene.ambient = .4 # Set ambient to an intensity of white > t = vp.sphere(pos=(3,2,1), color=(1,.6,.4)) # create another sphere > > --Scott David Daniels > Sco...@Ac... <mailto:Sco...@Ac...> > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and > focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > <mailto:Vis...@li...> > https://lists.sourceforge.net/lists/listinfo/visualpython-users > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > > > ------------------------------------------------------------------------ > > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users |
|
From: Bruce S. <Bru...@nc...> - 2009-08-16 05:40:05
|
This is actually very humorous, as you'll see. For the benefit of those who may not know about it, I'll comment that Google every year runs a program called "Google Summer of Code" (GSoC) in which significant open-source projects such as Python nominate students to work on projects and Google pays the student. A mentor is assigned to the student to give advice and follow progress. One of this summer's Python projects was proposed by a Brazilian student, Guilherme Polo, who had done good work in two previous GSoC programs, and the project was accepted by the Python group. Polo proposed doing a lot of maintenance and bug fixes on Tk and IDLE. His mentor was....me! So yes, I do know about Polo's work, and I'm really excited about it. David Scherer and I had a wish list of IDLE fixes and changes which are among the things Polo worked on. To give just one example: There are now thousands of students every semester learning about computational modeling in introductory university physics classes by writing VPython programs (see http://www.matterandinteractions.org). These are novice programmers. It is common for them to stare at a non-moving image without it occurring to them that the halt could be due to a program error. Polo has implemented that the shell window containing the error comes forward to be seen, which should make a huge difference. The GSoC is nearly at an end, and Polo is finishing up his work. The presumption is that this will make it into the official IDLE for Python, but in the meantime I'll change the temporary VIDLE to be the new version. Hurray! Bruce Sherwood Scott David Daniels wrote: > Hey Bruce, did you notice gpolo's flurry of checkins on Idle? > It might be a good time to see what is still a bug, and what is not. > > A number of year-old and older issues got addressed. > > --Scott David Daniels > Sco...@Ac... |
|
From: Kadir H. <kha...@ya...> - 2009-08-15 18:06:12
|
I believe Marco has a problem with materials setting.
It is highly likely that his display adapter does not support new material types, so that they are all
displayed dark blue.
Marco may need to switch materials off in the sitesetings file at the visual directory.
Kadir
________________________________
From: Scott David Daniels <Sco...@Ac...>
To: vis...@li...
Sent: Saturday, August 15, 2009 8:44:59 PM
Subject: Re: [Visualpython-users] visualization of colors
marco bittelli wrote:
> I am starting to use Python and Visualpython. I am running the first simple
> program with a 3D animation of a red ball bouncing on a blue floor. I
> installed
>
> Visual 5.11 released for Windows and Python 2.6. The colors are not showing
> well on the screen. For instance both the ball and the floor are dark blue.
The human eye is not great with pure blue. You could make it a paler
blue by using a less monochrome color. For example, you could simply go
from a pure blue RGB (0.0, 0.0, 1.0) to increasing the "lightness" by
adding a balanced amount of red and green (for example (.4, .4, 1.0)),
or even pump up green since we are so good at seeing green: (.4, .6, 1).
so, rather than "blue" in the demo, use one of these triples.
It may also be your lighting. You could turn up the ambient some,
(scene.ambient = .4, rather than the .2 default) for example, or add
lights. I think the default lighting has a "hole" from one direction,
are you looking at the dark side of the demo?
to fiddle with all of this, do something simple:
import visual as vp
s = vp.sphere() # make a sphere (default color is white)
s.color = (.5, .6, .7) # try painting the sphere a new color
vp.scene.ambient # see ambient lighting (note it is colored light)
vp.scene.ambient = .4 # Set ambient to an intensity of white
t = vp.sphere(pos=(3,2,1), color=(1,.6,.4)) # create another sphere
--Scott David Daniels
Sco...@Ac...
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Visualpython-users mailing list
Vis...@li...
https://lists.sourceforge.net/lists/listinfo/visualpython-users
|
|
From: Scott D. D. <Sco...@Ac...> - 2009-08-15 17:56:30
|
Hey Bruce, did you notice gpolo's flurry of checkins on Idle? It might be a good time to see what is still a bug, and what is not. A number of year-old and older issues got addressed. --Scott David Daniels Sco...@Ac... |
|
From: Scott D. D. <Sco...@Ac...> - 2009-08-15 17:36:49
|
marco bittelli wrote:
> I am starting to use Python and Visualpython. I am running the first simple
> program with a 3D animation of a red ball bouncing on a blue floor. I
> installed
>
> Visual 5.11 released for Windows and Python 2.6. The colors are not showing
> well on the screen. For instance both the ball and the floor are dark blue.
The human eye is not great with pure blue. You could make it a paler
blue by using a less monochrome color. For example, you could simply go
from a pure blue RGB (0.0, 0.0, 1.0) to increasing the "lightness" by
adding a balanced amount of red and green (for example (.4, .4, 1.0)),
or even pump up green since we are so good at seeing green: (.4, .6, 1).
so, rather than "blue" in the demo, use one of these triples.
It may also be your lighting. You could turn up the ambient some,
(scene.ambient = .4, rather than the .2 default) for example, or add
lights. I think the default lighting has a "hole" from one direction,
are you looking at the dark side of the demo?
to fiddle with all of this, do something simple:
import visual as vp
s = vp.sphere() # make a sphere (default color is white)
s.color = (.5, .6, .7) # try painting the sphere a new color
vp.scene.ambient # see ambient lighting (note it is colored light)
vp.scene.ambient = .4 # Set ambient to an intensity of white
t = vp.sphere(pos=(3,2,1), color=(1,.6,.4)) # create another sphere
--Scott David Daniels
Sco...@Ac...
|
|
From: marco b. <mar...@un...> - 2009-08-15 02:14:56
|
Hello, Hello, I am starting to use Python and Visualpython. I am running the first simple program with a 3D animation of a red ball bouncing on a blue floor. I installed Visual 5.11 released for Windows and Python 2.6. The colors are not showing well on the screen. For instance both the ball and the floor are dark blue. Same thing with other example programs using colored objects. I am using Windows XP with 1280 x 800 pixels for the screen, 32 bit. Any hints ?? Thanks for your great job ! Marco |
|
From: Robert X. <nne...@gm...> - 2009-08-13 07:50:06
|
py2exe puts all the python files in a .zip file, and uses a special importer
to import modules contained in that zip. When materials.py uses __file__ to
search for the TGA files, it gets
"directory/library.zip/visual/materials.py", and since .zip files can't
actually be treated as directories by Python, it fails to find the files.
I've tested py2exe out on VPython. This one change is sufficient to allow
py2exe to produce a fully self-contained version of the Python program,
including the Python interpreter and all necessary libraries (visual, numpy,
core modules, etc.).
Robert
2009/8/12 Bruce Sherwood <Bru...@nc...>
> What is it about py2exe that changes the directory structure, to move the
> .tga files away from the visual directory? Where does it put them (and why)?
> In my ignorance of py2exe, this fix of rummaging around in upper directories
> seems odd.
>
> Bruce Sherwood
>
> Robert Xiao wrote:
>
> As some people on this list have already noticed, materials.py searches for
> the texture .tga files in its own directory, which causes problems with
> packagers like py2exe.
>
> My solution to this is the following patch to materials.py, to allow it to
> search a few levels up from its own directory for these files:
>
> --- site-packages/visual/materials.py
> +++ site-packages/visual/materials.py
> @@ -147,10 +147,19 @@
> image = image[::-1]
> return image
>
> -texturePath = os.path.split( __file__ )[0] + "/"
> -data = loadTGA(texturePath+"turbulence3") # the targa file is 512*512*3
> -tx_turb3 = raw_texture( data=reshape(data,(64,64,64,3)), interpolate=True,
> mipmap=False )
> -tx_wood = raw_texture( data=loadTGA(texturePath+"wood"), interpolate=True)
> +curdir = os.path.dirname( __file__ )
> +for uplevel in range(4):
> + try:
> + uppath = os.path.sep.join([os.path.pardir]*uplevel)
> + texturePath = os.path.normpath(os.path.join(curdir, uppath)) +
> os.path.sep
> + data = loadTGA(texturePath+"turbulence3") # the targa file is
> 512*512*3
> + tx_turb3 = raw_texture( data=reshape(data,(64,64,64,3)),
> interpolate=True, mipmap=False )
> + tx_wood = raw_texture( data=loadTGA(texturePath+"wood"),
> interpolate=True)
> + except IOError, OSError:
> + if uplevel == 3:
> + raise
> + continue
> + break
>
> def get_default_channels(data):
> dims = data.shape
>
> Now you can use a setup.py like the following for py2exe:
>
> ---8< code >8---
> #py2exe setup script
>
> from distutils.core import setup
> import py2exe
>
> # find visual's files
> import os.path as path
> from glob import glob
> import visual
>
> tgas = glob(path.join(path.dirname(visual.__file__), "*.tga"))
>
> setup(
> # The first three parameters are not required, if at least a
> # 'version' is given, then a versioninfo resource is built from
> # them and added to the executables.
> version = "1.0.0",
> description = "Example Application",
> name = "Example Application",
>
> # targets to build
> console = ["example.py"],
>
> zipfile = "library.zip",
> options={
> "py2exe":{
> "optimize": 2,
> # Exclude some libraries which are non-essential.
> # These are imported indirectly from numpy.
> "excludes": ["doctest", "pydoc", "urllib2"],
> "compressed": True,
> "bundle_files": 1,
> "ascii": True,
> }
> },
>
> # VPython data files
> data_files=[("",tgas)],
> )
> ---8< /code >8---
>
> In the above script, I excluded three libraries (doctest, pydoc, urllib2)
> as they were imported from numpy but are not necessary for the system to
> function. This decreases the size of the resulting bundle considerably.
>
> Robert
>
> ------------------------------
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now. http://p.sf.net/sfu/bobj-july
>
> ------------------------------
>
> _______________________________________________
> Visualpython-users mailing lis...@li...://lists.sourceforge.net/lists/listinfo/visualpython-users
>
>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now. http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Visualpython-users mailing list
> Vis...@li...
> https://lists.sourceforge.net/lists/listinfo/visualpython-users
>
>
|
|
From: Bruce S. <Bru...@nc...> - 2009-08-13 02:29:53
|
<!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">
What is it about py2exe that changes the directory structure, to move
the .tga files away from the visual directory? Where does it put them
(and why)? In my ignorance of py2exe, this fix of rummaging around in
upper directories seems odd.<br>
<br>
Bruce Sherwood<br>
<br>
Robert Xiao wrote:
<blockquote
cite="mid:ef6...@ma..."
type="cite">As some people on this list have already noticed,
materials.py searches for the texture .tga files in its own directory,
which causes problems with packagers like py2exe.<br>
<br>
My solution to this is the following patch to materials.py, to allow it
to search a few levels up from its own directory for these files:<br>
<br>
--- site-packages/visual/materials.py<br>
+++ site-packages/visual/materials.py<br>
@@ -147,10 +147,19 @@<br>
image = image[::-1]<br>
return image<br>
<br>
-texturePath = os.path.split( __file__ )[0] + "/"<br>
-data = loadTGA(texturePath+"turbulence3") # the targa file is 512*512*3<br>
-tx_turb3 = raw_texture( data=reshape(data,(64,64,64,3)),
interpolate=True, mipmap=False )<br>
-tx_wood = raw_texture( data=loadTGA(texturePath+"wood"),
interpolate=True)<br>
+curdir = os.path.dirname( __file__ )<br>
+for uplevel in range(4):<br>
+ try:<br>
+ uppath = os.path.sep.join([os.path.pardir]*uplevel)<br>
+ texturePath = os.path.normpath(os.path.join(curdir, uppath)) +
os.path.sep<br>
+ data = loadTGA(texturePath+"turbulence3") # the targa file is
512*512*3<br>
+ tx_turb3 = raw_texture( data=reshape(data,(64,64,64,3)),
interpolate=True, mipmap=False )<br>
+ tx_wood = raw_texture( data=loadTGA(texturePath+"wood"),
interpolate=True)<br>
+ except IOError, OSError:<br>
+ if uplevel == 3:<br>
+ raise<br>
+ continue<br>
+ break<br>
<br>
def get_default_channels(data):<br>
dims = data.shape<br>
<br>
Now you can use a setup.py like the following for py2exe:<br>
<br>
---8< code >8---<br>
#py2exe setup script<br>
<br>
from distutils.core import setup<br>
import py2exe<br>
<br>
# find visual's files<br>
import os.path as path<br>
from glob import glob<br>
import visual<br>
<br>
tgas = glob(path.join(path.dirname(visual.__file__), "*.tga"))<br>
<br>
setup(<br>
# The first three parameters are not required, if at least a<br>
# 'version' is given, then a versioninfo resource is built from<br>
# them and added to the executables.<br>
version = "1.0.0",<br>
description = "Example Application",<br>
name = "Example Application",<br>
<br>
# targets to build<br>
console = ["example.py"],<br>
<br>
zipfile = "library.zip",<br>
options={<br>
"py2exe":{<br>
"optimize": 2,<br>
# Exclude some libraries which are non-essential.<br>
# These are imported indirectly from numpy.<br>
"excludes": ["doctest", "pydoc", "urllib2"],<br>
"compressed": True,<br>
"bundle_files": 1,<br>
"ascii": True,<br>
}<br>
},<br>
<br>
# VPython data files<br>
data_files=[("",tgas)],<br>
)<br>
---8< /code >8---<br>
<br>
In the above script, I excluded three libraries (doctest, pydoc,
urllib2) as they were imported from numpy but are not necessary for the
system to function. This decreases the size of the resulting bundle
considerably.<br>
<br>
Robert<br>
<pre wrap="">
<hr size="4" width="90%">
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. <a class="moz-txt-link-freetext" href="http://p.sf.net/sfu/bobj-july">http://p.sf.net/sfu/bobj-july</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: Bruce S. <Bru...@nc...> - 2009-08-13 02:14:19
|
<!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"> This looks like a candidate for inclusion in Visual. Thanks.<br> <br> Bruce Sherwood<br> <br> Robert Xiao wrote: <blockquote cite="mid:ef6...@ma..." type="cite">I wrote a small frame wrapper class to add these sorts of transformations in a program I developed:<br> <br> class Frame(frame):<br> def world_axes(self):<br> x_axis = norm(self.axis)<br> z_axis = norm(self.axis.cross(self.up))<br> y_axis = norm(z_axis.cross(x_axis))<br> return (x_axis, y_axis, z_axis)<br> <br> def world_offset(self, pos):<br> x,y,z = self.world_axes()<br> return pos.x*x + pos.y*y + pos.z*z<br> <br> def world_pos(self, pos):<br> return self.pos + self.world_offset(pos)<br> <br> def frame_offset(self, pos):<br> x,y,z = self.world_axes()<br> return vector(pos.dot(x), pos.dot(y), pos.dot(z))<br> <br> def frame_pos(self, pos):<br> return self.frame_offset(pos - self.pos)<br> <br> world_pos is the frame->world transformation; frame_pos is the world->frame transformation.<br> <br> Robert<br> <pre wrap=""> <hr size="4" width="90%"> ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. <a class="moz-txt-link-freetext" href="http://p.sf.net/sfu/bobj-july">http://p.sf.net/sfu/bobj-july</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: Robert X. <nne...@gm...> - 2009-08-12 22:40:05
|
As some people on this list have already noticed, materials.py searches for
the texture .tga files in its own directory, which causes problems with
packagers like py2exe.
My solution to this is the following patch to materials.py, to allow it to
search a few levels up from its own directory for these files:
--- site-packages/visual/materials.py
+++ site-packages/visual/materials.py
@@ -147,10 +147,19 @@
image = image[::-1]
return image
-texturePath = os.path.split( __file__ )[0] + "/"
-data = loadTGA(texturePath+"turbulence3") # the targa file is 512*512*3
-tx_turb3 = raw_texture( data=reshape(data,(64,64,64,3)), interpolate=True,
mipmap=False )
-tx_wood = raw_texture( data=loadTGA(texturePath+"wood"), interpolate=True)
+curdir = os.path.dirname( __file__ )
+for uplevel in range(4):
+ try:
+ uppath = os.path.sep.join([os.path.pardir]*uplevel)
+ texturePath = os.path.normpath(os.path.join(curdir, uppath)) +
os.path.sep
+ data = loadTGA(texturePath+"turbulence3") # the targa file is
512*512*3
+ tx_turb3 = raw_texture( data=reshape(data,(64,64,64,3)),
interpolate=True, mipmap=False )
+ tx_wood = raw_texture( data=loadTGA(texturePath+"wood"),
interpolate=True)
+ except IOError, OSError:
+ if uplevel == 3:
+ raise
+ continue
+ break
def get_default_channels(data):
dims = data.shape
Now you can use a setup.py like the following for py2exe:
---8< code >8---
#py2exe setup script
from distutils.core import setup
import py2exe
# find visual's files
import os.path as path
from glob import glob
import visual
tgas = glob(path.join(path.dirname(visual.__file__), "*.tga"))
setup(
# The first three parameters are not required, if at least a
# 'version' is given, then a versioninfo resource is built from
# them and added to the executables.
version = "1.0.0",
description = "Example Application",
name = "Example Application",
# targets to build
console = ["example.py"],
zipfile = "library.zip",
options={
"py2exe":{
"optimize": 2,
# Exclude some libraries which are non-essential.
# These are imported indirectly from numpy.
"excludes": ["doctest", "pydoc", "urllib2"],
"compressed": True,
"bundle_files": 1,
"ascii": True,
}
},
# VPython data files
data_files=[("",tgas)],
)
---8< /code >8---
In the above script, I excluded three libraries (doctest, pydoc, urllib2) as
they were imported from numpy but are not necessary for the system to
function. This decreases the size of the resulting bundle considerably.
Robert
|