• Login
sketchucation logo sketchucation
  • Login
🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

[REQUEST] Select faces by bitmap RGB values

Scheduled Pinned Locked Moved Plugins
11 Posts 6 Posters 1.5k Views
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.
  • B Offline
    baldaman
    last edited by 30 Sept 2009, 08:33

    Hi everybody,
    It is my first topic in the forum (my most visited website: twice a day!).
    First, I would like to say a big THANK YOU to all RUBY MASTERS who make Sketchup what it is today.

    My request: "bitmap select" like in the excellent polyboost for 3ds max.
    It is hard for me to explain in english so I've make a screenshot.

    Greeeeeeeeeeetings.

    bitmpaselect.jpg

    1 Reply Last reply Reply Quote 0
    • G Offline
      Gaieus
      last edited by 30 Sept 2009, 09:11

      Hi Baldman,

      Look at Didier's heightfield_gen.rb plugin which "creates a mesh based on a greyscale PGM or PPM image. Altitude is determined by the color of each pixel: white is highest altitude, black is lowest. Support for layer, automatic cleanup of coplanar edges."

      Download at the Ruby Library Depot and see if this is something you could use..

      Gai...

      1 Reply Last reply Reply Quote 0
      • B Offline
        baldaman
        last edited by 30 Sept 2009, 10:22

        Thank you GAIEUS for you reply.
        I've tried with this cool ruby form Didier Bur but's hard to obtain a clean selection at the end of the process.
        I think a modification of Didier's Code could do the job.
        Unfortunately it is unreadable.
        Didier si tu nous entends....

        1 Reply Last reply Reply Quote 0
        • G Offline
          Gaieus
          last edited by 30 Sept 2009, 11:49

          Well, it's definitely an old script (I already encountered it when I was a newbie back with version 5) and maybe it could use some revamping. I'll try to find the topic (from about 2 years ago) where people played with it and got interesting results but won't promise anything (on top of all, I have to go now).

          Gai...

          1 Reply Last reply Reply Quote 0
          • R Offline
            remus
            last edited by 30 Sept 2009, 13:20

            Both didiers height field scripts are scrambled, which is what baldaman meant by 'unreadable' i guess.

            http://remusrendering.wordpress.com/

            1 Reply Last reply Reply Quote 0
            • E Offline
              Ecuadorian
              last edited by 30 Sept 2009, 13:36

              If it's just black and white you're interested, you could convert your bitmap to vector lines before import.

              -Miguel Lescano
              Subscribe to my house plans YouTube channel! (30K+ subs)

              1 Reply Last reply Reply Quote 0
              • B Offline
                baldaman
                last edited by 30 Sept 2009, 14:05

                The idea is to "paint" distribution maps with photoshop or whatever.
                "Bitmap select" to select the faces and "components onto face collection" by Chris Fullmer to distribute the components onto the selected faces.

                1 Reply Last reply Reply Quote 0
                • B Offline
                  baldaman
                  last edited by 3 Nov 2009, 10:13

                  Sorry to insist.
                  Nobody, really?

                  1 Reply Last reply Reply Quote 0
                  • T Offline
                    thomthom
                    last edited by 3 Nov 2009, 10:19

                    There's no easy way to get pixel data from bitmaps in the SU ruby. Would need a library that reads the same formats that SU support. This isn't an easy request.

                    Thomas Thomassen — SketchUp Monkey & Coding addict
                    List of my plugins and link to the CookieWare fund

                    1 Reply Last reply Reply Quote 0
                    • B Offline
                      baldaman
                      last edited by 3 Nov 2009, 10:57

                      Thats what Didier BUR did with heightfield_gen.rb.
                      It's not with common bitmap files like jpg or png but...
                      Unfortunately Didier as disappeared for a while. I hope is fine.

                      Anyway thank you Thomthom for your reply.

                      1 Reply Last reply Reply Quote 0
                      • P Offline
                        plot-paris
                        last edited by 3 Nov 2009, 11:14

                        if there was a way to retrieve the bitmap information, that might be a gread addition to the component spray tool
                        distribution by bitmap...

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

                        Advertisement