From: Arthur <ajs...@op...> - 2003-03-04 17:49:39
|
[jon] >Does have any ideas about how to project an image (e.g., from a jpeg) onto a surface (for example one face of a cube In OpenGL and in Povray, I believe that kind of projection is considered a "texture", and is part of that capability. I don't think you can expect to do that in a realtime VPython scene currently. Probably the best you can do is an animation of Povray images, with the basic scene created by VPython and exported to Povray. That's essentially how I did the animations on my PyGeo site, for example - http://home.netcom.com/~ajs/CirclePencil.html. I've developed a pretty automated routine to do these kinds of animations. The VPython povexport file - a separate download from www.vpython.org - does have the capabilities to export basic texture information to Povray, but I do no think it handles the texturing of an image file onto an object. So I think some hand work on the exported Povray file might be necessary. Though adding that capacity to povexport might not be a big thing. That's the long answer. Short answer. Not (currently at least) a VPython thing, IMO. Art |