From: Bruce S. <Bru...@nc...> - 2012-12-20 16:05:40
|
In the Contributed section of vpython.org is a module you can import into a VPython program which generates a file containing POVRAY scene description language equivalent to the VPython scene. You can then process that file with POVRAY. Unless you make the VPython scene invisible, the execution of the VPython program will display the scene, which apparently you don't want to happen. However, a typical way to use the POVRAY export module in VPython is to wait for a mouse click before generating the POVRAY file, so that you can use the mouse to zoom and rotate the scene before generating the file. Bruce Sherwood On Thu, Dec 20, 2012 at 7:42 AM, Denis BEURIVE <den...@gm...>wrote: > Hello, > > Before I dive into JPython, I have a simple question. > > I am looking for a tool that can generate a 3D image (and eventually a 3D > animation) from a script. > > I know POVRAY, that I've already used. But POVRAY language used to > describe the scene is too limited for what I need to do. > > Python, which I already used, would be excellent. > > So, can I follow this procedure : > > - I write a Python script that creates one (or several successive) > scene(s). > - Then a run Python on the script in order to generate an image (or a > list of images). > > What I mean is : Do I need to run the user interface in order to create an > image (or a list of images) ? > > Note : A problem with POVRAY is that we can not call the renderer without > executing the user interface. Well... we can call POVRAY with some command > line arguments. But it is really limited. And the INI file must be assigned > with the user interface... > > Best regards, > > Denis > > > ------------------------------------------------------------------------------ > LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial > Remotely access PCs and mobile devices and provide instant support > Improve your efficiency, and focus on delivering more value-add services > Discover what IT Professionals Know. Rescue delivers > http://p.sf.net/sfu/logmein_12329d2d > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users > > |