<HTML>
<BODY>
<br>

<br>

<-----Original Message-----><br>

<br>

From: Ior Bock [lab_monkey@mail2world.com]<br>

Sent: 12/19/2006 5:55:38 PM<br>

To: help@python.org<br>

Subject: Python - WEIRD Code needed (help with)<br>

<br>

<br>

<br>

Hi,<br>

<br>

Looking for help with trying to figure out a way to emulate simple tv video feedback with PYTHON using simple scripts.<br>

<br>

Am presenting this to students and hope to stimulate their interest in this phenomenon.<br>

<br>

I've a background in Visual Basic, and am using an old version, 4.0, it compiles to a smaller executable which I prefer. I find myself in an odd situation, needing a very simple yet powerful capability of Python for a VB app Im working on.<br>

<br>

For this scenario I don't know where to begin though, am hoping for some thoughtful input, suggestions, and code samples to get me started would be a God send. Would prefer NOT using DirectX if possible.<br>

<br>

I know VERY litle about Python and a fair bit about VB.<br>

<br>

Have included a bunch of links to illustrate what I am looking for. Really what Im after is best represented in the very first link, and this is what I would like to replicate.<br>

<br>

Would like to do this with integers being used as the feedback medium, so instead of video signal feedback, we use "number feedback"<br>

<br>

Imagine in the following brief description we have our numbers acting as the signal in and signal out;<br>

<br>

"Video Feedback is easy and fun for anyone with a video camera and a monitor (TV screen). To make the simplest kind, take the "video out" from the camera and plug it into the "video in" on the monitor, and then point the camera at the monitor, so the monitor displays a picture of the monitor. Now you have a video feedback loop! To get the effects demonstrated in the gallery, careful adjustments of the various knobs and dials on the camera and monitor are required. I also recommended that you get a tripod. This is especially useful for doing rotations, since the camera can be held at a fixed angle. Adjust the tripod so you can rotate the camera about the viewing axis."<br>

<br>

Have tried this in Visual Basic, so in the VB code, user inputs numbers into some text boxes and these serve as the "video in" and "video out" mechanisms, so through looped recursion;<br>

<br>

do while loop_counter <> 5000<br>

textbox1.text = 100 represents Camera video out<br>

textbox2.text = 75 represents Monitor video in<br>

var = new value + (textbox1.text + textbox2.text) recursion value<br>

(code here generates graphic spiral )<br>

loop<br>

<br>

Would like the feedback generated however to be tied directly to the number inputs specifically though. <br>

<br>

Cheers<br>

------------------<br>

P.S. - got the following response from a VB forum;<br>

<br>

"Originally Posted by chemicalNova<br>

In any way in VB, drawing the graphical spiral will be very very VERY slow.<br>

<br>

Does it have to be literally the same as whats above? How about, for example, a PictureBox that acts as the screen (video out), and a PictureBox that acts as the camera (video in). The Screen picturebox has a mini version of the camera box, which holds the contents of the Screen Picturebox. Then, you could possibly give exact rotation angles, for the camera, and display it inside the screen picturebox."<br>

<br>

<I tried some variations of his above suggestions but was unable to get quite what I was after><br>

--------------<br>

<br>

Ideally, I'd love to be able to simply have some extremely small executable that just accepts inputs<br>

does the calculations above and then spits out the graphical outputs. <br>

<br>

If I could simply have my VB app, 'call' the name of the tiny Python executable, and then the Python executable<br>

just automatically looked for a named text file (created by the VB app) and extracted number file from this, then performed the calcs, then displayes the feedback emulation<br>

that would be ideal!<br>

<br>

Following demonstrates what Im after exactly, note I'm not looking for a solution that needs to be really high fine complex graphics, etc - just want to demonstrate the basic concept. <br>

'======================<br>

<br>

<br>

DESCRIPTIVE LINKS on VIDEO FEEDBACK FOLLOW;<br>

-------------<br>

http://www.youtube.com/watch?v=2Jqm62IhLGM<br>

<br>

http://www.videofeedback.dk/World/<br>

<br>

http://www.archive.org/movies/thumbnails.php?identifier=HansLemursonDavidSkold<br>

http://www.youtube.com/watch?v=RuHmtSGbD8s<br>

<br>

http://www.youtube.com/watch?v=2Jqm62IhLGM<br>

http://www.archive.org/movies/thumbnails.php?identifier=HansLemursonDavidSkold<br>

http://www.youtube.com/watch?v=RuHmtSGbD8s<br>

<br>

<br>

<br>

http://www.youtube.com/results?search_type=search_videos&search_query=feedback&search_sort=&search_category=26<br>

<br>

http://members.tripod.com/professor_tom/galleries/video/mixer/mixer4.html<br>

http://members.tripod.com/professor_tom/galleries/video/mixer/mixer5.html<br>

http://www.videofeedback.dk/World/<br>

http://nyfilmvideo.com/sep2002/screen4.htm<br>

=====<br>

Space-Time Dynamics in Video Feedback James P. Crutchfield Video feedback provides a readily available experimental system to study complex spatial and temporal dynamics. This article outlines the use and modeling of video feedback systems. It <br>

<br>

http://www.youtube.com/results?search_type=search_videos&search_query=feedback&search_sort=&search_category=26<br>

<br>

MediaSculp - Gallery <br>

http://www.mediasculp.com/QTVR/<br>

http://www.mediasculp.com/Gallery/videofeedback/index.htm<br>

http://www.videofeedback.dk/vf/oversigt.html<br>

http://www.videofeedback.com/<br>

http://www.art.pdx.edu/faculty/facultyhome/pirofsky/digital_stupa/digitalstupa.html <br>

<br>

<br>

Click to receive help removing your credit card debt
</BODY></HTML>
<br><br><div style="tag_ad_s_ord_66_99:ord_66;border-top: 1px #cccccc solid"><a target="_blank" style="FONT-SIZE: 13px; COLOR: #006599; FONT-FAMILY: Trebuchet MS" href="http://tagline.bidsystem.com/fc/BgLEGDHsP5G13zhyhi6osD4egHAsbsnoTioF/">If You Want a Second Mortgage...<br>...we'll connect you with 4 lenders. It just takes one simple form.</a></div><br>

<span id=m2wTl><p><font face="Arial, Helvetica, sans-serif" size="2" style="font-size:13.5px">_______________________________________________________________<BR>Get the Free email that has everyone talking at <a href=http://www.mail2world.com target=new>http://www.mail2world.com</a><br>  <font color=#999999>Unlimited Email Storage &#150; POP3 &#150; Calendar &#150; SMS &#150; Translator &#150; Much More!</font></font></span>