From: Dethe E. <de...@li...> - 2005-06-30 16:00:23
|
There are web plugins for X3D (an XML-based 3D modelling language, =20 the successor to VRML), so VPython could conceivably export to X3D =20 the way it does to POVRay. You would lose any custom Python =20 interactivity (unless it was recoded in Javascript and X3D), but have =20= basic X3D interactivity (grab, walk, fly, if I recall correctly). I don't know of any X3D exporters at this time, but I would expect it =20= to be easier than porting VPython to a plugin. --Dethe On 30-Jun-05, at 7:25 AM, Flavio Coelho wrote: > 2005/6/30, Jonathan Brandmeyer <jbr...@ea...>: > >> >> On Wed, 2005-06-29 at 23:21 -0700, Anton Sherwood wrote: >> >>> Titi Anggono wrote: >>> >>>> I have a physics visualization using vpython. I just >>>> curios to show it in a web page. I want when a visitor >>>> clicks this file, a web browser will execute the >>>> program and generate the visualization. >>>> >> >> Starting your script from a web page shouldn't be a problem , see =20 >> cherrypy >> > (www.cherrypy.org <http://www.cherrypy.org>) for a web application > framework, see also snakelets (www.snakelets.org <http://=20 > www.snakelets.org>). > your main chalenge will be to get the output of vpython in a format =20= > that can > be visualized through a web-browser: animated gif, mpg perhaps? > In any case, I believe, interactivity such as we heve in the standard > vpython canvas, would be out of the question. > > I hope someone in vpython development team will correct if I am =20 > wrong. It > would be really good to have a way to integrate vpython into a web > application. > > > > --=20 > Fl=E1vio Code=E7o Coelho > registered Linux user # 386432 > --------------------------- > Great spirits have always found violent opposition from =20 > mediocrities. The > latter cannot understand it when a man does not thoughtlessly =20 > submit to > hereditary prejudices but honestly and courageously uses his =20 > intelligence. > Albert Einstein > "Why is Virtual Reality always posited in terms of space, when time =20 is the only real commodity left?" --Rich Gold |