From: Bruce S. <bas...@un...> - 2003-11-25 15:26:40
|
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 |