From: Bruce P. <bap...@te...> - 2003-11-26 05:26:52
|
The Python Imaging Library (PIL) has a screen grab routine that works fine with VPython -- you can save the screen as a bitmap (large) or jpeg and several other formats. Do note that it grabs the screen (or a portion thereof) not the VPython window so anything overlapping will get grabbed as well. At 08:57 PM 11/25/2003, you wrote: >Send Visualpython-users mailing list submissions to > vis...@li... > >To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/visualpython-users >or, via email, send a message with subject or body 'help' to > vis...@li... > >You can reach the person managing the list at > vis...@li... > >When replying, please edit your Subject line so it is more specific >than "Re: Contents of Visualpython-users digest..." > > >Today's Topics: > > 1. vpython and my application (Rachel.Vaudron) > 2. Re: vpython and my application (Bruce Sherwood) > >--__--__-- > >Message: 1 >Date: Tue, 25 Nov 2003 15:20:54 +0100 (CET) >From: "Rachel.Vaudron" <ra...@se...> >To: <vis...@li...> >Subject: [Visualpython-users] vpython and my application > > Hi, > >after having payed with the demos and tried to use vpython with my programs= >, I >think that it's very powerful but I'm not sure that is the best tool for >my application, I hope you could help me to choose... > >I have to display 3D objets in an orthonormal system and complete this >with an axis and a grid. For these things, I think that vpython is good. >But, I have to put a background image behind my graph and the result must >look nice when being printed on very large paper sizes (e.g. A0), so a >screenshot is probably not good enough. > >Do you know if with vpython it is possible : > * to put a background image in the frame > * to change the origin programmatically > * to zoom programmatically > * to find a system to print easily ? > >I have studied the reference documentation but I haven't find more doc. >Could you say me where I could find some? > >Thaks a lot for your reply. > >Rachel > >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= >=3D >Rachel Vaudron >Laboratoire d=E9partemental de pr=E9histoire du Lazaret >33 bis bd franck Pilatte 06300 Nice >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= >=3D > > > >--__--__-- > >Message: 2 >Date: Tue, 25 Nov 2003 10:26:35 -0500 >From: Bruce Sherwood <bas...@un...> >To: "Rachel.Vaudron" <ra...@la...>, > vpusers <vis...@li...> >Subject: Re: [Visualpython-users] vpython and my application > >Currently there is no way to display an image in VPython. The online=20 >reference manual is complete; if you don't find a feature there it=20 >doesn't exist. > >However, some features may not be noticed at first. For example, you can=20 >change the origin programmatically. In the help section on "Controlling=20 >windows" you will see that you can programmatically change scene.center=20 >and scene.forward to change what part of the scene the "camera" is=20 >looking at and from what direction. > >Also, see the demo program stonehenge.py for an example of moving=20 >through the scene rather than merely rotating around the scene. > >As for the quality of the image, note that at http://vpython.org there=20 >is "A module by Ruth Chabay to export a VPython scene to POV-Ray".=20 >POV-Ray is a freeware utility that produces photo-quality "ray-traced"=20 >images, something that is not possible in real time with VPython. > >Putting this all together, here is a possible scheme that might do what=20 >you need: > >1) Produce the 3D image you want in VPython, using the Chabay module to=20 >export a scene-description file in POV-Ray format. > >2) Install POV-ray and use it to produce a photo-quality image. > >3) Use some tool such as PhotoShop to merge this image with your=20 >background image. > >There is not a good way built into VPython for printing images directly;=20 >you have to do screen prints. It is possible that among the abundant=20 >Python tools for image processing and printing it is possible to=20 >automate this, but I for one don't know how. > >Bruce Sherwood > >Rachel.Vaudron wrote: > > Hi, > >=20 > > after having payed with the demos and tried to use vpython with my prog= >rams, I > > think that it's very powerful but I'm not sure that is the best tool fo= >r > > my application, I hope you could help me to choose... > >=20 > > I have to display 3D objets in an orthonormal system and complete this > > with an axis and a grid. For these things, I think that vpython is good. > > But, I have to put a background image behind my graph and the result mu= >st > > look nice when being printed on very large paper sizes (e.g. A0), so a > > screenshot is probably not good enough. > >=20 > > Do you know if with vpython it is possible : > > * to put a background image in the frame > > * to change the origin programmatically > > * to zoom programmatically > > * to find a system to print easily ? > >=20 > > I have studied the reference documentation but I haven't find more doc. > > Could you say me where I could find some? > >=20 > > Thaks a lot for your reply. > >=20 > > Rachel > >=20 > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= >=3D=3D > > Rachel Vaudron > > Laboratoire d=E9partemental de pr=E9histoire du Lazaret > > 33 bis bd franck Pilatte 06300 Nice > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= >=3D=3D > >=20 > >=20 > >=20 > > ------------------------------------------------------- > > This SF.net email is sponsored by: SF.net Giveback Program. > > Does SourceForge.net help you be more productive? Does it > > help you create better code? SHARE THE LOVE, and help us help > > YOU! Click Here: http://sourceforge.net/donate/ > > _______________________________________________ > > Visualpython-users mailing list > > Vis...@li... > > https://lists.sourceforge.net/lists/listinfo/visualpython-users > > > > >--__--__-- > >_______________________________________________ >Visualpython-users mailing list >Vis...@li... >https://lists.sourceforge.net/lists/listinfo/visualpython-users > > >End of Visualpython-users Digest Bruce Peterson |