sketchucation logo sketchucation
    • Login
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    Mac User? | Join the Rayscaper Beta for Mac Learn More

    [Plugin] Bitmap To Mesh

    Scheduled Pinned Locked Moved Plugins
    264 Posts 75 Posters 517.1k Views 75 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.
    • S
      Scott M
      last edited by

      @thomthom said:

      For how long?
      Can you post the image you're using?
      Sorry it took so long to reply.It will stay that way as long as sketchup is up. I let it run for about 1 hour. I will attach the image.

      https://www.youtube.com/user/ecabinetstips

      1 Reply Last reply
      Reply Quote 0
      • FletchF
        Fletch
        last edited by

        😲 Impressive plugin ThomThom! Wow!
        (I obviously need a better displacement map for this tile now.) πŸ˜†


        Hightmap4SU-test1.jpg

        Fletch
        3D Modeling addict. Former owner/developer of Twilight Render. sleepinggiantvisual.com

        1 Reply Last reply
        Reply Quote 0
        • FletchF
          Fletch
          last edited by

          Further testing... just want to re-iterate what a great plugin you have here.

          http://twilightrender.com/phpBB3/download/file.php?id=4983

          Fletch
          3D Modeling addict. Former owner/developer of Twilight Render. sleepinggiantvisual.com

          1 Reply Last reply
          Reply Quote 0
          • thomthomT
            thomthom
            last edited by

            It's fun to see all the creations from this. πŸ˜„

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

            1 Reply Last reply
            Reply Quote 0
            • G
              Ghalko
              last edited by

              πŸ’­ What if you could make an image file that could encode for overhangs?

              Basically it would be a flat image with a curvy perimeter within the rectangle that when smooshed would make a rectangular-based object that would include overhangs, and potentially tunnels (A perimeter within a perimeter, matched with another across the map.) Also a different color perimeter or lack thereof would create sphere or bumpy boulder, or even a planet if your memory can handle it.

              So right now is is black and white for basic z-height. How much information could be encoded using rgb? Red values might indicate what pixels it lines up with, blue indicates order and green indicates height or distance.

              Using the perimeter as an encoding medium for the flattened surface for distance it must go for the final product.

              This was just a random idea I had a few minutes ago while thinking about this plugin, it is possible but the way might not be very straight-forward. The image format might have to be something more than a .bmp. Also a good thing that might come out of this is large scale compression potential. Also organic shapes...

              Bryan

              Arrrggghhh! Why won't it make a face!!! Stupid, no good piece of... Oh look! The line went to the wrong point. Whew... moving on. (My fights with sketchup.)

              1 Reply Last reply
              Reply Quote 0
              • K
                keyston
                last edited by

                hey, excellent tool, similar to the terrain editor in vue but with your script you can work to a scale.
                2 questions;

                how do you map a texture to a non flat surface in su?
                I usually un soften/smooth edges and muck around with the eyedropper in the material toolbar which is a long process at the best of times, but with the hundreds/thousands of faces generated using this plugin thats not an option.

                I was also wondering if it would be possible to use a bitmap from an object in your scene to generate the mesh, say like you have texture mapped a cube for example, with 1 texture on all faces, you select the object, then generate mesh on all the mapped faces.Possible? too difficult? Just an idea from someone with no idea. πŸ’­ πŸ‘ πŸ‘Ž ❓
                Thanks again for the plugin.

                1 Reply Last reply
                Reply Quote 0
                • K
                  keyston
                  last edited by

                  just found the answer to my first question, projected texture. much easier πŸ˜’

                  1 Reply Last reply
                  Reply Quote 0
                  • thomthomT
                    thomthom
                    last edited by

                    @keyston said:

                    I was also wondering if it would be possible to use a bitmap from an object in your scene to generate the mesh, say like you have texture mapped a cube for example, with 1 texture on all faces, you select the object, then generate mesh on all the mapped faces.Possible? too difficult? Just an idea from someone with no idea. πŸ’­ πŸ‘ πŸ‘Ž ❓

                    It'd be challenging to make the mesh work between faces, but the biggest problem is that it would most likely create a mesh that is all too dense for SketchUp to handle.

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

                    1 Reply Last reply
                    Reply Quote 0
                    • jamalitoJ
                      jamalito
                      last edited by

                      wow every good I like this plugin
                      becouse I am used it in ornamentation
                      thnx


                      basmah.jpg

                      Albert Einstein:
                      ((I am enough of an artist to draw freely upon my imagination. Imagination is more important than knowledge. Knowledge is limited. Imagination encircles the world.))

                      1 Reply Last reply
                      Reply Quote 0
                      • B
                        Ben Ritter
                        last edited by

                        Thomas, I love it. I have the mesh made, but struggling to find the right image size to make the mesh workable. I've broken the image down into 6 parts and I have a mesh, but can't get a texture applied. SU crashes.

                        I've been able to apply the texture when it's grouped, but the image gets applied rotated 180 deg.

                        So, for anyone, is there a way to simplify the mesh first? Would that actually help in applying the projected texture?

                        SU8.0.3117, File is 98mb

                        1 Reply Last reply
                        Reply Quote 0
                        • M
                          Matias GermΓ‘n
                          last edited by

                          ItΒ΄s a great plugin. Thanks Thomas. πŸ‘

                          1 Reply Last reply
                          Reply Quote 0
                          • thomthomT
                            thomthom
                            last edited by

                            @ben ritter said:

                            So, for anyone, is there a way to simplify the mesh first? Would that actually help in applying the projected texture?

                            If you need a simpker mesh, resample the bitmap you generated it from down. Less pixels - simpler mesh.

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

                            1 Reply Last reply
                            Reply Quote 0
                            • B
                              Ben Ritter
                              last edited by

                              I will try the resampling. Any idea why the image gets turned around?

                              1 Reply Last reply
                              Reply Quote 0
                              • thomthomT
                                thomthom
                                last edited by

                                @ben ritter said:

                                I will try the resampling. Any idea why the image gets turned around?

                                Got a screenshot? I'm not sure if I understand what you describe.

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

                                1 Reply Last reply
                                Reply Quote 0
                                • majidM
                                  majid
                                  last edited by

                                  Dear tomtom, I'ven;t tested your plugin yet, seems to be great and so many thanx, but as a suggestion to reduce faces and improvement, maybe you could add an option for merging co-planar faces

                                  My inspiring A, B, Sketches book: https://sketchucation.com/shop/books/intermediate/2612-alphabet-inspired-sketches--inspiring-drills-for-architects--3d-artists-and-designers-

                                  1 Reply Last reply
                                  Reply Quote 0
                                  • B
                                    Ben Ritter
                                    last edited by

                                    @thomthom said:

                                    @ben ritter said:

                                    I will try the resampling. Any idea why the image gets turned around?

                                    Got a screenshot? I'm not sure if I understand what you describe.

                                    Thomas, thanks for your help, I can't seem to recreate that scenario now, but here's what happens when I try to project the texture above it. I get bits and pieces onto the mesh.


                                    huskie.jpg

                                    1 Reply Last reply
                                    Reply Quote 0
                                    • thomthomT
                                      thomthom
                                      last edited by

                                      @majid said:

                                      Dear tomtom, I'ven;t tested your plugin yet, seems to be great and so many thanx, but as a suggestion to reduce faces and improvement, maybe you could add an option for merging co-planar faces

                                      You could run CleanUp afterwards.

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

                                      1 Reply Last reply
                                      Reply Quote 0
                                      • FletchF
                                        Fletch
                                        last edited by

                                        Ben, look at my example of roof tile above very closely - you will see that you should use a TINY .bmp... I mean TINY.

                                        Then scale the mesh that is generated UP in SketchUp, then PROJECT your texture DOWN onto the face. Be sure the texture position is set to PROJECTED.

                                        Remember that BLACK is the lowest point, and WHITE is the HIGHEST point on the final mesh... so make sure to create your displacement map appropriately... a sketch like that is not likely to give you the exact results you want... depending on what you want I guess.

                                        Thom Thom, I used your plugin to helpme create this image... thanks again! πŸ‘
                                        It is KEY to use a very good displacement map and very small resolution.


                                        Pins-Final_Twilight-Render.jpg

                                        Fletch
                                        3D Modeling addict. Former owner/developer of Twilight Render. sleepinggiantvisual.com

                                        1 Reply Last reply
                                        Reply Quote 0
                                        • thomthomT
                                          thomthom
                                          last edited by

                                          Fletch - how did you do that?
                                          A plugin that inserts components at vertices?

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

                                          1 Reply Last reply
                                          Reply Quote 0
                                          • Dave RD
                                            Dave R
                                            last edited by

                                            Fletch, that is way cool! It looks like an On/Off button but makes me think it's label could be changed by controlling which pins are up and which are down.

                                            Etaoin Shrdlu

                                            %

                                            (THERE'S NO PLACE LIKE)

                                            G28 X0.0 Y0.0 Z0.0

                                            M30

                                            %

                                            1 Reply Last reply
                                            Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better πŸ’—

                                            Register Login
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 13
                                            • 14
                                            • 2 / 14
                                            • First post
                                              Last post
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement