home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.ascii-art      Infamous alt.ascii-art forum      9,209 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 9,127 of 9,209   
   Ron to Eli the Bearded   
   Re: vk goes for a stroll (was other stuf   
   29 Aug 22 22:11:31   
   
   XPost: alt.ascii-art.animation   
   From: colonel_hack@yahoo.com   
      
   On Mon, 29 Aug 2022, Eli the Bearded wrote:   
      
   >   
   > I have _never_ gotten side-by-side 3-d images to work unless it involved   
   > special glasses or viewer.   
      
   What about a viewmaster or an regualar stereoscope? I assume you see real   
   things as 3d.   
      
   Does this one work for you?   
   https://xkcd.com/237/   
      
   Somebody long ago posted this program that takes a file with depth info   
   and makes a random ascii 3d out of it. Funny thing it worked for me on   
   unix (aix/freebsd/linux) but not on windows (turboc in a command window).   
   I never really tried to figure our why. It may have even been the DOS   
   font.   
      
   #define DEPTH0  16   
   #define COLS    79   
   #define COLS   120   
      
   #include    
      
   main()   
        {   
        long now;   
        int col;   
        char m[COLS+1],s[COLS+1];   
        int i,e,c;   
      
        /* seed random number generator */   
        time (&now);   
        srand (now);   
      
        /* print fusion X's */   
        for (col = 0; COLS - col >= DEPTH0; col += DEPTH0)   
           {   
           for (i = 0; i < DEPTH0-1; ++i)   
              putchar (' ');   
           putchar ('X');   
           }   
        putchar ('\n');   
      
        /* process input image */   
        while (memset(m,'\0',COLS+1),fgets (m, COLS+1, stdin))   
           {   
           e = 0;   
           s[COLS] = 0;   
           for(i=0; i= DEPTH0 && i < COLS &&   
                 (c = m[i - DEPTH0]) >= '0' && c <= '9')   
                 {   
                 e = 1;   
                 s[i] = s[i-DEPTH0+c-'0'];   
                 ++i;   
                 }   
              s[i++] = (e || i < DEPTH0) ? randasc() : s[i-DEPTH0];   
              }   
           puts (s);   
           }   
      
   }   
      
   randasc()   
   {   
        /* large set of random characters */   
        /* return ('!'+rand()%92);   
      
        /* lowercase random letters */   
         return ('a'+rand()%26);   
      
   }   
      
   sample in:   
                    22222222               222222222   
                 22222222222222         222222222222222   
               222222      222222      222222      222222   
              22222         222222    222222        222222   
             22222                                  22222   
             22222     22222222222        22222222222222   
             22222     22222222222        22222222222222   
              22222          22222                  22222   
               222222       222222    222222        222222   
                 2222222222222222      22222222222222222   
                   22222222222           22222222222222   
      
   and out:   
                   X               X               X               X   
   #`wNdfg`iDGG|FF:#`wNdfg`iDGG|FF:wNdfg`iDADGG|FF:wNdfg`iDGG|FF:wN-Ndfg`iDGG|FF:w   
   .^TqGtgj(j0%!TUR.^TqGtgj(j0%!R.^TqGtgj(j0%!Y!R.^TqGt(j0%!Y!R.^TqGt(J(j0%!Y!R.^T   
   lK9MY],_U)tWNYeulK9MY],_U)tYeulK9f9MY],)tYeul$lK9f9],)tYeveul$lf9],)tgtYeveul$l   
   I|^+!S^Rb6!bcQmQI|^+!S^Rb6cQmQIWI|^+!S^RcQmQIWwWI|!S^RcQ+QmQIWwW!S^RcQxQ+QmQIWw   
   ?mM{:ci5N(NivL|6?mM{:ci5NivL|6Z6?mM{:ci5NivL|6Z6?mM{:ci5NivL|6Z6M{:ci=i5NivL|6Z   
   [[0O!R`u:@8jXAaT[[0O!R`u:jXAaT)T[[0R`u:jXAaT)TiT[[0R`uXAaT)TiT[[0R`uTuXAaT)TiT[   
   +tlqzsCJ_|Yhh$U,+tlqzsCJ_hh$U,@,+tlsCJ_hh$U,@,9,+tlsCJh$U,@,9,+tlsCJYJh$U,@,9,+   
   2?xbMth:ior*MG^u2?xbMth:ioMG^u2P2?xbMth:iG^u2PWP2?xbMth:iG^u2PWPxbMthkh:iG^u2PW   
   hFbxa{c_B,l#9w^4hFbxa{c_B,lw^4hFbBbxa{c_lw^4hF7FbBa{c_lwow^4hF7Fa{c_lwFwow^4hF7   
   !EmdqRI1d{zw?zF(!EmdqRI1d{zw?(!EmdqRI1d{zw?(!_!Emdq1d{zw?(!_!Emdq1d{E{zw?(!_!Em   
   VWKWUE/A{QMi2lteVWKWUE/A{QMi2ltWKWUE/A{QMiJi2ltWKWUE/QMiJi2ltWKWUE/@/QMiJi2ltWK   
   Py%dVPOssPy%dVPOssPy%dVPOssPy%dVPOssPy%dVPOs   
      
   I don't seem to have recorded who posted it in the 1st place.   
      
      --Ron   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca