• Login
sketchucation logo sketchucation
  • Login
ℹ️ GoFundMe | Our friend Gus Robatto needs some help in a challenging time Learn More

[Plugin] Bitmap To Mesh

Scheduled Pinned Locked Moved Plugins
264 Posts 75 Posters 420.6k 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.
  • D Offline
    dedmin
    last edited by 1 Oct 2010, 18:59

    No, there is a similar command in Rhino - Mesh Heightfield. I just used your image to test it - the mesh is quite small 33 by 8 by 1,3 mm. I doubt this can be done in SketchUP.

    1 Reply Last reply Reply Quote 0
    • D Offline
      dedmin
      last edited by 1 Oct 2010, 19:13

      And Rhino maps the image as a texture

      Untitled-1.jpg

      2010-10-01_221122.jpg

      2010-10-01_221044.jpg

      1 Reply Last reply Reply Quote 0
      • N Offline
        notareal
        last edited by 1 Oct 2010, 19:18

        Nice one! I can imagine that one day this will be in need.

        Welcome to try [Thea Render](http://www.thearender.com/), Thea support | [kerkythea.net](http://www.kerkythea.net/) -team member

        1 Reply Last reply Reply Quote 0
        • D Offline
          Dave R
          last edited by 1 Oct 2010, 19:47

          Dedmin, that looks nice.

          I did make the heighfield map in SketchUp so I know that part can be done. Here's the mesh from which I made the map.

          http://farm5.static.flickr.com/4118/4791556894_9724ee2004_z.jpg

          Etaoin Shrdlu

          %

          (THERE'S NO PLACE LIKE)

          G28 X0.0 Y0.0 Z0.0

          M30

          %

          1 Reply Last reply Reply Quote 0
          • D Offline
            dedmin
            last edited by 1 Oct 2010, 20:02

            Sure - I mean the plugin. Can that plugin make so small mesh from an image without scaling? Looks good Dave πŸ‘
            By the way, did You notice that Layout 3 can now paste Excel tables - very handy!

            1 Reply Last reply Reply Quote 0
            • S Offline
              shura
              last edited by 1 Oct 2010, 20:05

              Jeff, that concentric wave looks great!

              Thomas, sorry but I won't be able to get out of Berlin atm. We are preparing to move to a new appartment with my son being only six weeks old, and Munich is 600km from here... 😒
              Enjoy your time there - and don't forget that not all of us germs wear leather pants and drink beer until they pass out. πŸ˜†

              alex

              1 Reply Last reply Reply Quote 0
              • T Offline
                thomthom
                last edited by 1 Oct 2010, 21:21

                @shura said:

                and don't forget that not all of us germs wear leather pants and drink beer until they pass out. πŸ˜†

                What?! I've been lied to!! πŸ˜„

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

                1 Reply Last reply Reply Quote 0
                • T Offline
                  thomthom
                  last edited by 1 Oct 2010, 21:23

                  @unknownuser said:

                  yeah, it works in sketchup..
                  tt's script scales everything to a square so i made the mistake of adding more black for an overall 500x500 px (4times the recommended resolution of 250x250)..

                  it came in at a modest 1.25 million entities πŸ˜„

                  I'll update it with a tool for placing the mesh in the model, with correction aspect ratio and let you define a height - basically let you draw a bounding box.
                  Maybe even with an option to sample less pixels.

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

                  1 Reply Last reply Reply Quote 0
                  • T Offline
                    thomthom
                    last edited by 1 Oct 2010, 21:24

                    @thomthom said:

                    Maybe even with an option to sample less pixels.

                    Or... Maybe interpolate pixels... Though - the same could be done by the user by just scaling down the image...

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

                    1 Reply Last reply Reply Quote 0
                    • D Offline
                      Dave R
                      last edited by 1 Oct 2010, 21:30

                      Dedmin, thanks. Since I haven't been able to do it yet, I don't know but I fully expect I'd have to scale the mesh to the right size. Looks like Jeff managed it, though.

                      As to the excel tables into LO, yes. I did see that. You can't do anything about formatting once it is in, though. Oh well, maybe in LO4.

                      Etaoin Shrdlu

                      %

                      (THERE'S NO PLACE LIKE)

                      G28 X0.0 Y0.0 Z0.0

                      M30

                      %

                      1 Reply Last reply Reply Quote 0
                      • S Offline
                        shura
                        last edited by 1 Oct 2010, 21:37

                        just used an alpha map and deleted the lower part of the mesh, then flattened it. not talking about quality, but at least it looks like some sort of image tracing...

                        zz.jpg

                        1 Reply Last reply Reply Quote 0
                        • K Offline
                          ken28875
                          last edited by 1 Oct 2010, 22:20

                          Wow! 😲 😲

                          You keep on amazing me with your plugins, Thomas! You're the man.

                          Thank you very much,

                          _KN

                          Follow Your Dreams.

                          1 Reply Last reply Reply Quote 0
                          • C Offline
                            Chris Fullmer
                            last edited by 1 Oct 2010, 22:55

                            @thomthom said:

                            Test with simple displacement map:

                            Displacement.png

                            MMMmmmm, a plugin that makes chocolate bars. I'm hungry now!

                            Lately you've been tan, suspicious for the winter.
                            All my Plugins I've written

                            1 Reply Last reply Reply Quote 0
                            • T Offline
                              thomthom
                              last edited by 2 Oct 2010, 09:00

                              πŸ˜„

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

                              1 Reply Last reply Reply Quote 0
                              • M Offline
                                MALAISE
                                last edited by 2 Oct 2010, 14:02

                                ThomThom , for your own knowledge, you should get advantages by visiting ImageJ community (OpenSource)http://www.google.fr/url?sa=t&source=web&cd=1&ved=0CBUQFjAA&url=http%3A%2F%2Frsbweb.nih.gov%2Fij%2F&rct=j&q=ImageJ&ei=ujqnTJXjIZGp4AbwxvGjDQ&usg=AFQjCNGnkzWAmC5t2IbtD4C8ayw1R0v7tg&sig2=e2-bW7zDggSXIeVI7vPRbA&cad=rja . They work around scientific pictures, and all the ways to extract informations .

                                Thank you really very much for all the plugins you give us.

                                MALAISE

                                La Connaissance n'a de valeur que partagΓ©e

                                1 Reply Last reply Reply Quote 0
                                • D Offline
                                  Dave R
                                  last edited by 3 Oct 2010, 11:23

                                  Except with very small BMP files, I don't seem to have any luck. Even with a small BMP file it takes a long time to process but that could just be my computer.

                                  Coen's comment though is intriguing. I was thinking this plugin could be a neat way to get line drawings into SketchUp. I made the attached line drawing as a quick test and got the second image as a result. I inverted the image and got the results in the third image. I wonder if it would be possible to have a control to somehow limit the range in the gray scale. Perhaps any RGB value less than, say, 250,250,250 gets read as 0,0,0? Or perhaps no height is assigned? Perhaps it isn't possible but I wonder.


                                  Image001cropped.jpg


                                  BMP2Mesh Results.jpg


                                  BMP2Mesh Inverted.jpg

                                  Etaoin Shrdlu

                                  %

                                  (THERE'S NO PLACE LIKE)

                                  G28 X0.0 Y0.0 Z0.0

                                  M30

                                  %

                                  1 Reply Last reply Reply Quote 0
                                  • R Offline
                                    Rich O Brien Moderator
                                    last edited by 3 Oct 2010, 11:27

                                    Making Knuckle-Dusters Dave?

                                    Download the free D'oh Book for SketchUp

                                    1 Reply Last reply Reply Quote 0
                                    • D Offline
                                      Dave R
                                      last edited by 3 Oct 2010, 11:28

                                      Maybe I should. πŸ˜„ I was just doodling on the pad using AutoDesk Sketchbook.

                                      Etaoin Shrdlu

                                      %

                                      (THERE'S NO PLACE LIKE)

                                      G28 X0.0 Y0.0 Z0.0

                                      M30

                                      %

                                      1 Reply Last reply Reply Quote 0
                                      • T Offline
                                        thomthom
                                        last edited by 3 Oct 2010, 11:43

                                        @dave r said:

                                        I wonder if it would be possible to have a control to somehow limit the range in the gray scale. Perhaps any RGB value less than, say, 250,250,250 gets read as 0,0,0? Or perhaps no height is assigned? Perhaps it isn't possible but I wonder.

                                        It's technical possible to read values lower than 250 as 0, but I don't quite get why?
                                        Though you can do it in PS (or similar) by adjusting the Levels.)

                                        I have an idea of how to make the mesh less spiky though, but it needs some experimenting.

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

                                        1 Reply Last reply Reply Quote 0
                                        • D Offline
                                          Dave R
                                          last edited by 3 Oct 2010, 11:51

                                          I was just thinking that setting some limit so that everything is either black or white and not shades of gray would get rid of the spikes.

                                          Would it be possible to work things so that a face is created only if the value is less than some set point (250,250,250?) and the face is always at Z=0? Delete coplanar edges between faces and you'd have a raster to SKP converter.

                                          Etaoin Shrdlu

                                          %

                                          (THERE'S NO PLACE LIKE)

                                          G28 X0.0 Y0.0 Z0.0

                                          M30

                                          %

                                          1 Reply Last reply Reply Quote 0
                                          • 1
                                          • 2
                                          • 3
                                          • 4
                                          • 5
                                          • 13
                                          • 14
                                          • 3 / 14
                                          3 / 14
                                          • First post
                                            42/264
                                            Last post
                                          Buy SketchPlus
                                          Buy SUbD
                                          Buy WrapR
                                          Buy eBook
                                          Buy Modelur
                                          Buy Vertex Tools
                                          Buy SketchCuisine
                                          Buy FormFonts

                                          Advertisement