Re: =>Ascii Stereogram Movie<=
From Julius Kammerl <inf...@kammerl.de>
· alt.ascii-art
· 13 Dec 2004 10:40 · View full thread
· report
col...@yahoo.com schrieb: > On Tue, 23 Nov 2004, Faux_Pseudo wrote: > > >> >>_.-In alt.ascii-art, Julius Kammerl wrote the following -._ >> >>>Free Online Ascii Stereogram Movie Generator: >>> >>>http://www.kammerl.de/ascii/AsciiStereoMovie.php >>> >>>check it out... >> >>So how was it done? What software was used? How much time did it >>take? Why was it done? Someone (the OP?) please answer these >>questions. Hi All, I wrote the ascii movie stereogram gereator just for fun. It't a little php script. Here is the important part. Please mention me, if you copy the script.. Feel free to ask further questions.. > PHP-Code: function GenerateStereoImage($xPos="", $yPos="") { // Position of 3D object in the movie global $FillText, $AStereo, $StereoX, $StereoY, $ImgX, $ImgY, $ImgDepth, $RandPattern; $StereoArray = $AStereo; $XmoveStr=str_repeat('0',min($xPos,$ImgX-$StereoX)); $XfillStr=str_repeat('0',max(0,$ImgX-$StereoX-$xPos)); foreach ($StereoArray as $line => $StData) { $StereoArray[$line]=$XmoveStr.$StData.$XfillStr; } $Yfill = max(0,$ImgY-$StereoY-$yPos); $YfillArrT = explode("\n", str_repeat(str_repeat('0',$ImgX)."\n",$yPos)); array_pop($YfillArrT); $YfillArrB = explode("\n", str_repeat(str_repeat('0',$ImgX)."\n",$Yfill)); array_pop($YfillArrB); $StereoArray = array_merge($YfillArrT,$StereoArray,$YfillArrB); $CharSet = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; if ($RandPattern==0) { $Pattern = substr(str_repeat($FillText,floor(($ImgDepth*$ImgY)/strlen($FillText))+1),0,$ImgDepth*$ImgY); } else { $Pattern = substr(str_repeat(str_shuffle($CharSet),floor(($ImgDepth*$ImgY)/strlen($CharSet))+1),0,$ImgDepth*$ImgY); } $AAscii = explode("\n",wordwrap($Pattern,$ImgDepth,"\n",1)); foreach ($AAscii as $line => $asciitext) { $asciitext = substr($asciitext.str_shuffle($CharSet),0,$ImgX); for ($i=$ImgDepth; $i<$ImgX; $i++) { $Shift=$StereoArray[$line]{$i-$ImgDepth}; $Shift=min($Shift,floor($ImgDepth/2)); //limit the sky... $asciitext{$i}=$asciitext{$i-$ImgDepth+$Shift}; } $AAscii[$line] = $asciitext; } return $AAscii; }
Original message headers
X-Google-Thread: f996b,ffa376e6ff68f010 X-Google-Attributes: gidf996b,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Mon, 13 Dec 2004 11:40:12 +0100 From: Julius Kammerl <inf...@kammerl.de> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.6) Gecko/20040113 X-Accept-Language: pt-br, de-at, de, en-us, en MIME-Version: 1.0 Newsgroups: alt.ascii-art Subject: Re: =>Ascii Stereogram Movie<= References: <419...@news.fhg.de> <D7zod.15751$D26.9954@lakeread03> <200...@bunrab.ronnet.moc> In-Reply-To: <200...@bunrab.ronnet.moc> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <41bd718d$1...@news.fhg.de> Organization: Fraunhofer Gesellschaft (http://www.fraunhofer.de/) Lines: 70 Path: g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!217.19.16.136.MISMATCH!feeder1.cambrium.nl!feed.tweaknews.nl!npeer.de.kpn-eurorings.net!usenet-feed.fhg.de!news.fhg.de!not-for-mail Xref: g2news1.google.com alt.ascii-art:2554
Related ASCII art in the Gallery
Explore these categories from our collection of 11,000+ artworks:
Make your own ASCII art
Turn images, text or 3D into ASCII, or draw your own – right in your browser.
About this message.
This message was posted publicly to the newsgroup
alt.ascii-art
in 2004 and is mirrored here unchanged as part of the Historic Archives – only email addresses are masked.
The artwork and text belong to their original authors: if you copy a piece, keep the artist's initials or signature intact and credit them where you can.
Are you the author? Contact us to get your posts attributed, connected to your artist profile, or removed.
Report this message
Help us keep the archive clean and accurate. Reports are reviewed by a person – nothing is changed automatically.