From: John K. <joh...@ho...> - 2003-02-07 00:51:50
|
I'm wondering if it is possible to position text in 2-d window coordinates (as opposed to the virtual 3-d coordinates that VPython usually uses). I want to have some text that remains in the same position (the edge of the window, say), even as the user rotates the scene and zooms, etc. Is there any way to do this? Also, are there any other geometrical figures planned for VPython? For example: ellipsoids, truncated cones, or non-rectangular prisms? If not, how would one go about programming objects like these? (I'm taking the COG monte-carlo package as a model here.) Another question about plans for VPython: are there any plans to implment opacity for geometrical figures, as there is for labels? Thanks for any help you can provide. Sincerely, NV _________________________________________________________________ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail |
From: Bruce S. <bas...@un...> - 2003-02-07 03:43:33
Attachments:
bodies.py
|
Currently there isn't a way to place text in a fixed position. Notice however that a "label" does continue to face you as you rotate the camera. Thom Ives initiated a module which creates some new objects: tube, frustum (a cone with the top cut off), and partial sphere. These were built using the low-level faces object. You can find this module in a new area of http://vpython.org for demo programs contributed by users. It would be lovely to have opacity for Visual objects, but this is very difficult to achieve with real-time rendering. It is feasible with labels because they are always in front. Bruce Sherwood ----- Original Message ----- From: "John Keck" <joh...@ho...> To: <vis...@li...> Sent: Thursday, February 06, 2003 7:51 PM Subject: [Visualpython-users] text placement in window space and future features > I'm wondering if it is possible to position text in 2-d window coordinates > (as opposed to the virtual 3-d coordinates that VPython usually uses). I > want to have some text that remains in the same position (the edge of the > window, say), even as the user rotates the scene and zooms, etc. Is there > any way to do this? > > Also, are there any other geometrical figures planned for VPython? For > example: ellipsoids, truncated cones, or non-rectangular prisms? If not, > how would one go about programming objects like these? (I'm taking the COG > monte-carlo package as a model here.) > > Another question about plans for VPython: are there any plans to implment > opacity for geometrical figures, as there is for labels? > > Thanks for any help you can provide. > > Sincerely, > > NV > > > _________________________________________________________________ > Add photos to your e-mail with MSN 8. Get 2 months FREE*. > http://join.msn.com/?page=features/featuredemail > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users > > |
From: Gary P. <pa...@in...> - 2003-02-09 16:56:52
|
Is it possible to use Visual with Jython to produce applet-type things that will run in a web browser? I want to produce simulations that can be viewed more widely, and I don't want to have to learn java to do it. (I could figure out the answer to this on my own, but if someone already knows that it's not possible, it would save me some hours of poking around only to come up empty.) -Gary |
From: Bruce S. <bas...@un...> - 2003-02-09 18:14:25
|
I don't know whether this is possible, but I'm at least pretty sure that no one has done it. At the risk of stating the obvious, you can of course just put a VPython program on a web site and tell people to install VPython (just as you might have to tell them to install some plugin). Agreed though that it would be desirable to have a simple and direct scheme for playing VPython programs in a brower. Definitely on the wish list. Bruce Sherwood ----- Original Message ----- From: "Gary Pajer" <pa...@in...> To: <vis...@li...> Sent: Sunday, February 09, 2003 11:55 AM Subject: [Visualpython-users] jython / browser applets ? > Is it possible to use Visual with Jython to produce applet-type things that > will run in a web browser? > > I want to produce simulations that can be viewed more widely, and I don't > want to have to learn java to do it. > > (I could figure out the answer to this on my own, but if someone already > knows that it's not possible, it would save me some hours of poking around > only to come up empty.) > > -Gary > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users > > |
From: Arthur <aj...@ix...> - 2003-02-09 19:40:11
|
> Is it possible to use Visual with Jython to produce applet-type things that > will run in a web browser? > > I want to produce simulations that can be viewed more widely, and I don't > want to have to learn java to do it. > > (I could figure out the answer to this on my own, but if someone already > knows that it's not possible, it would save me some hours of poking around > only to come up empty.) Not possible, as I see it. Without *a lot* of work. Because both Numeric and VPython itself are in C, and therefore not accessible to Jython. There had at one point been a partial port of Numeric to Java - probably complete enough for most needs related to VPython. But then there is the issue of the VPython code itself. In the perfect world, VPython code would be ported both to use the Bosst C++ library- one one hand, and to Java using some like GL4Java, on the other. In the end, the same Python code might be able to run both flavors. Would be wonderful. But this kind of effort behind a refractoring of VPython does not seem to be in the cards - by all signs. Art |
From: Bruce S. <bas...@un...> - 2003-02-07 03:43:51
Attachments:
bodies.py
|
Currently there isn't a way to place text in a fixed position. Notice however that a "label" does continue to face you as you rotate the camera. Thom Ives initiated a module which creates some new objects: tube, frustum (a cone with the top cut off), and partial sphere. These were built using the low-level faces object. You can find this module in a new area of http://vpython.org for demo programs contributed by users. It would be lovely to have opacity for Visual objects, but this is very difficult to achieve with real-time rendering. It is feasible with labels because they are always in front. Bruce Sherwood ----- Original Message ----- From: "John Keck" <joh...@ho...> To: <vis...@li...> Sent: Thursday, February 06, 2003 7:51 PM Subject: [Visualpython-users] text placement in window space and future features > I'm wondering if it is possible to position text in 2-d window coordinates > (as opposed to the virtual 3-d coordinates that VPython usually uses). I > want to have some text that remains in the same position (the edge of the > window, say), even as the user rotates the scene and zooms, etc. Is there > any way to do this? > > Also, are there any other geometrical figures planned for VPython? For > example: ellipsoids, truncated cones, or non-rectangular prisms? If not, > how would one go about programming objects like these? (I'm taking the COG > monte-carlo package as a model here.) > > Another question about plans for VPython: are there any plans to implment > opacity for geometrical figures, as there is for labels? > > Thanks for any help you can provide. > > Sincerely, > > NV > > > _________________________________________________________________ > Add photos to your e-mail with MSN 8. Get 2 months FREE*. > http://join.msn.com/?page=features/featuredemail > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users > > |