• Login
sketchucation logo sketchucation
  • Login
๐Ÿค‘ SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

Computer paintings

Scheduled Pinned Locked Moved Hardware, Software & Gadgets
25 Posts 2 Posters 2.0k Views 2 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    pilou
    last edited by 11 Jun 2011, 22:17

    Inspiration Claude Monet and Vieira Da Silva
    (first is my Sketchup model and the marvelous Random Painter by Chris Fullmer , second is a table's leg's model by Felix )
    if you are interested I have made this little prog ๐Ÿ˜„
    It's for Processing(free) but you can adapt for any language ๐Ÿ˜„
    A little fractal effect thx to Benoรฎt Mandelbrot to revival the concept โ˜€
    Just put your image in the Data folder and copy past these few lines : it's all ๐Ÿ˜‰

    
    size(1024,512);                                  // your image's size in pixel
    PImage pilou = loadImage("your image.png");     // any image with a subject + transparent background
     int t = 8;                                    //  minimum height size in pixel
    for (int k = 8; < 513; k = k + t) {      // increase width and height
       for (int y = 0; y < 513; y = y + k) {  //position x,y of each new image on the screen
         for (int x = 0; x < 1023; x = x + k*2) {
         image(pilou,x,y,k*2,k) ;             // draw an reducted image at the x,y position on the screen
         }                                   // end loop x
      }                                     // end loop y
    filter(INVERT);                        // invert colors between each new screen, you can erase it
    t=t*2;                                // increase  height size in pixel can be anything; Da Silva t= t+8
    }
    image(pilou,0,0);                   // draw at the end your original image ;)
    

    tabouret7.jpg


    proc05.jpg

    Frenchy Pilou
    Is beautiful that please without concept!
    My Little site :)

    1 Reply Last reply Reply Quote 0
    • B Offline
      brookefox
      last edited by 4 May 2012, 18:01

      Pilou.... Like this?

      1. download 'Processing' http://processing.org/download/
      2. install it.
      3. a data folder will thus be created. Put your image in it and copy and paste the code also in the data folder, in a file called what? or what?
      4. run processing; load your image

      ~ Brooke

      1 Reply Last reply Reply Quote 0
      • B Offline
        brookefox
        last edited by 5 May 2012, 00:07

        Strike 1: "unexpected token:513"


        processing-1-noted.JPG

        ~ Brooke

        1 Reply Last reply Reply Quote 0
        • P Offline
          pilou
          last edited by 5 May 2012, 01:40

          If your orginal image has no background area transparent that will works not!

          Try with this one I lauch it now so I am sure that it's work ๐Ÿ˜„
          (click on Select all for select all the code)

          size(1024,512);
          
          PImage tabou = loadImage("your_image.png");
           int t = 8;
          for (int k = 8; k < 513; k = k + t) {
          
          for (int y = 0; y < 513; y = y + k) {
            for (int x = 0; x < 1023; x = x + k*2) {
             image(tabou,x,y,k*2,k) ;
             }
          }
          filter(INVERT);
          t=t+4;
          }
          image(tabou,0,0);
          
          

          procc.jpg

          [attachment=0:tgyb3p08]<!-- ia0 -->taboure512.png<!-- ia0 -->[/attachment:tgyb3p08]

          Frenchy Pilou
          Is beautiful that please without concept!
          My Little site :)

          1 Reply Last reply Reply Quote 0
          • P Offline
            pilou
            last edited by 5 May 2012, 01:57

            Must have cheekerboard on background as transparent aera!

            Hope this works!
            See you soon in four days ๐Ÿ˜‰

            dd.jpg

            Frenchy Pilou
            Is beautiful that please without concept!
            My Little site :)

            1 Reply Last reply Reply Quote 0
            • B Offline
              brookefox
              last edited by 5 May 2012, 04:00

              Ah..., merci. You are right that my image had no transparent areas though it was a png, though I don't know how you could tell.

              Hopefully I'll have something to show.

              Bon voyage.

              ~ Brooke

              1 Reply Last reply Reply Quote 0
              • B Offline
                brookefox
                last edited by 5 May 2012, 16:45

                Still not working though with another with transparent areas. Same error. Please attach your image file so I can try it. Perhaps the png conversion by FastStone is faulty; I'll try another conversion program.

                Didn't work with Irfan as the converter, with three different settings.. The checkerboard is how your prog is configured to display transparency; it can be balck or white or some other, I believe. I'll crank up PS for an other go.

                ~ Brooke

                1 Reply Last reply Reply Quote 0
                • B Offline
                  brookefox
                  last edited by 7 May 2012, 23:34

                  The voting is over, Pilou. No luck here.


                  processing-2-noted.JPG

                  ~ Brooke

                  1 Reply Last reply Reply Quote 0
                  • P Offline
                    pilou
                    last edited by 9 May 2012, 01:19

                    Here an original image png (zipped) so unzipp it before any process!

                    Works for me ๐Ÿ˜„

                    If that yet don't work for you with this file, we must find another source of problem! ๐Ÿค“


                    taboure512.zip

                    Frenchy Pilou
                    Is beautiful that please without concept!
                    My Little site :)

                    1 Reply Last reply Reply Quote 0
                    • B Offline
                      brookefox
                      last edited by 9 May 2012, 18:46

                      Alas, professor...


                      processing-3-noted.JPG

                      ~ Brooke

                      1 Reply Last reply Reply Quote 0
                      • P Offline
                        pilou
                        last edited by 9 May 2012, 21:20

                        Seems very mysterious
                        We have the same version of Processing 1.5.1

                        Can you show me the arborescence of folders / files ( I can't see all them on the image above)

                        Normally you must have just the file "prog" and the folder "data" on the same level
                        seems they are not on the same "level" from what I can see
                        Maybe ๐Ÿ˜„

                        Frenchy Pilou
                        Is beautiful that please without concept!
                        My Little site :)

                        1 Reply Last reply Reply Quote 0
                        • B Offline
                          brookefox
                          last edited by 9 May 2012, 22:10

                          Some little thing I have wrong... Or maybe a big thing.

                          I tried it with data next to .exe and with data in taboure512 folder. Same result.

                          processing-4.JPG

                          processing-5.JPG

                          ~ Brooke

                          1 Reply Last reply Reply Quote 0
                          • P Offline
                            pilou
                            last edited by 9 May 2012, 23:29

                            Have you this arborescence of File / Folder ?
                            You must have the red rectangle with this little arborescence
                            anywhere : it's an entity ! Can works anywhere !

                            Here it's mixed with the arborescence of Processing : can be possible but not very clear ๐Ÿ˜„

                            If you have not maybe re-read my first post for create the first arborescence!

                            If you have yet that is some ennuyous because I don't see anything else! ๐Ÿ˜ณ

                            proc02.jpg

                            Frenchy Pilou
                            Is beautiful that please without concept!
                            My Little site :)

                            1 Reply Last reply Reply Quote 0
                            • B Offline
                              brookefox
                              last edited by 10 May 2012, 00:13

                              I will reread your first post. Other than that, I am not sure what you are saying. The pic you show is my pic, so that yes is my setup. 'Arborescence' I assume means tree (directory, folder) structure.

                              My OS is Vista 64.

                              ~ Brooke

                              1 Reply Last reply Reply Quote 0
                              • P Offline
                                pilou
                                last edited by 10 May 2012, 00:30

                                @unknownuser said:

                                'Arborescence' I assume means tree (directory, folder) structure.

                                Yes ๐Ÿ˜‰

                                @unknownuser said:

                                The pic you show is my pic

                                No !
                                it's that you must see ๐Ÿ˜‰ (I have made a photomontage)
                                In yours above I don't see the black icon "taboure512.pde" under the "data"

                                Frenchy Pilou
                                Is beautiful that please without concept!
                                My Little site :)

                                1 Reply Last reply Reply Quote 0
                                • P Offline
                                  pilou
                                  last edited by 10 May 2012, 00:35

                                  If I good remember ๐Ÿ˜‰

                                  the first time launch a Processing session
                                  Copy inside the lines above

                                  Save it in a folder anywhere of your choice say "my Processing test" (name of the folder)
                                  with the name that you want say "test" (name of your prog)

                                  Surrely a message eroor because ther is not yet an image inside the data folder created

                                  QUIT
                                  You must obtain a file "test.pde" and a folder "data" both inside "my Processing test" folder
                                  (".pde" is the extension name of a Processing program normally it's given automatically)
                                  (maybe extension 's file ".pde" is not visible following your system regulates )

                                  You must have the image follow

                                  proc.jpg

                                  You can now put inside your image inside the "data" folder created
                                  with the same name than inside the prog : say "sketch.png"

                                  (use always PNG format : support of the transparent background)

                                  Inside the prog the "" must be writed around the sketchUp's image!

                                  PImage pilou = loadImage("sketch.png");
                                  

                                  Relaunch it by double click on the file name "test.pde" inside your folder

                                  After 3 seconds (more or less following the age of your computer: mine is ten years! )
                                  An artistic image must be created on your screen ๐Ÿ˜„

                                  Grab it and past it inside your favorite 2D prog

                                  You can modify some numeric parameters inside the prog

                                  You can change of course the name of the image inside the prog
                                  if you input an other image with another name inside the data folder!
                                  (don't change the "pilou" words except you well understand the syntax)

                                  If you don't want the "filter Invert" on your image
                                  Jut put // before

                                  //filter(INVERT); 
                                  

                                  The image must have always 1024*512 inside the data folder!

                                  Hope this help you ๐Ÿ˜‰

                                  Frenchy Pilou
                                  Is beautiful that please without concept!
                                  My Little site :)

                                  1 Reply Last reply Reply Quote 0
                                  • P Offline
                                    pilou
                                    last edited by 10 May 2012, 00:36

                                    And sorry it's the second post that you must maybe re-read ๐Ÿ˜‰

                                    Frenchy Pilou
                                    Is beautiful that please without concept!
                                    My Little site :)

                                    1 Reply Last reply Reply Quote 0
                                    • B Offline
                                      brookefox
                                      last edited by 10 May 2012, 00:47

                                      OK. I did not show what was beside data, only what was in data. It is beside as you advise.


                                      processing-6.JPG

                                      ~ Brooke

                                      1 Reply Last reply Reply Quote 0
                                      • P Offline
                                        pilou
                                        last edited by 10 May 2012, 00:54

                                        Hum hum
                                        Last chance
                                        Copy the folder taboure512 on the Desk and run it from the Desk but I doubt

                                        Have you load and run some processing examples ?
                                        does they work ?

                                        Frenchy Pilou
                                        Is beautiful that please without concept!
                                        My Little site :)

                                        1 Reply Last reply Reply Quote 0
                                        • P Offline
                                          pilou
                                          last edited by 10 May 2012, 08:40

                                          Try to launch my own one!


                                          sketch_jun07a.zip

                                          Frenchy Pilou
                                          Is beautiful that please without concept!
                                          My Little site :)

                                          1 Reply Last reply Reply Quote 0
                                          • 1
                                          • 2
                                          • 1 / 2
                                          • First post
                                            Last post
                                          Buy SketchPlus
                                          Buy SUbD
                                          Buy WrapR
                                          Buy eBook
                                          Buy Modelur
                                          Buy Vertex Tools
                                          Buy SketchCuisine
                                          Buy FormFonts

                                          Advertisement