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.
    • 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
          • B
            Ben Ritter
            last edited by

            @fletch said:

            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.

            Fletch, thanks for the reminders. The bmp was a scanned in sketch that I tried. Perhaps not the best to use. Thank you anyway.

            1 Reply Last reply
            Reply Quote 0
            • GaieusG
              Gaieus
              last edited by

              @thomthom said:

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

              Here is a bit of the workflow.
              http://twilightrender.com/phpBB3/viewtopic.php?f=26&t=2208

              Gai...

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

                @unknownuser said:

                The board requires you to be registered and logged in to view this forum.

                😞

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

                1 Reply Last reply
                Reply Quote 0
                • GaieusG
                  Gaieus
                  last edited by

                  Ah yeah, that is a restricted area for license holders.

                  Anyway, it's drop.rb. πŸ˜‰

                  Gai...

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

                    Version 0.3.0b

                    • Renamed Mesh From Bitmap to Mesh From Heightmap
                    • Added new Mesh From Bitmap
                      [attachment=0:3etwkcol]<!-- ia0 -->MeshFromBitmap.png<!-- ia0 -->[/attachment:3etwkcol]

                    Known bug:
                    Flipped image isn't properly recognised.

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

                    1 Reply Last reply
                    Reply Quote 0
                    • J
                      jeffschaid01
                      last edited by

                      Hello,

                      After importing the bmp, I've adjusted height, width, etc. The program then follows through by indexing points and generating a mesh. After that I'm attempting to export as a vrml and the program continues to crash at 49%. I'm sure doing something incorrectly but not sure what. Any suggestions?

                      Thanks,
                      Jeff

                      1 Reply Last reply
                      Reply Quote 0
                      • J
                        jeffschaid01
                        last edited by

                        Hello,

                        Are further steps needed prior to exporting as vrml after height, width and depth adjustments have been made along with point indexing and mesh generating? All of these steps have been completed but SU is crashing at the 49% mark while exporting as vrml. Any help will be greatly apprecaited.

                        Thanks,
                        Jeff

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

                          @jeffschaid01 said:

                          Are further steps needed prior to exporting as vrml after height, width and depth adjustments have been made along with point indexing and mesh generating? All of these steps have been completed but SU is crashing at the 49% mark while exporting as vrml. Any help will be greatly apprecaited.

                          VRML? What are you using to export that?

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

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

                            @jeffschaid01 said:

                            Hello,

                            Are further steps needed prior to exporting as vrml after height, width and depth adjustments have been made along with point indexing and mesh generating? All of these steps have been completed but SU is crashing at the 49% mark while exporting as vrml. Any help will be greatly apprecaited.

                            Thanks,
                            Jeff

                            If SketchUp crashes when you export then I'm afraid I can't help, as this plugin has nothing to do with the exporter.

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

                            1 Reply Last reply
                            Reply Quote 0
                            • J
                              jeffschaid01
                              last edited by

                              Are there further steps needed (other than the ones mentioned) prior to export or should the file theoretically be ready for export?

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

                                No additional steps. Once it has created the geometry it's done its job.

                                You're problem appear to be with the exporter.

                                You're exporting to a 3d printer? Isn't there a different format then VRML you can use?

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

                                1 Reply Last reply
                                Reply Quote 0
                                • J
                                  jeffschaid01
                                  last edited by

                                  Yes. I can use other file types such as a 3ds or stl. However, I've tried exporting as a 3ds as well and again, the program crashes at 49% for some reason. Very strange.

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

                                    How big is the geometry you export?
                                    Did you use a large bitmap to create the mesh from?

                                    Maybe SketchUp.exe is running out of memory.

                                    Can you give an example of an image you converted to mesh, which you try to export?

                                    Does it happen with all meshes you've generated?

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

                                    1 Reply Last reply
                                    Reply Quote 0
                                    • J
                                      jeffschaid01
                                      last edited by

                                      In sketchup format (after converting to mesh) the file size is 13megs. I've attached the image for which I'm creating the "bitmap to mesh" from. Its size prior to converting to mesh is 44kb. I think you might be on to something as far as SU running out of memory. Possible work around?


                                      my_depth.jpg

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

                                        First verify it's a memory issue. open Task Manager and monitor the memory usage of SketchUp.exe when you export.

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

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

                                          That mesh I got from that image you posted was pretty dense. 85K triangles.
                                          I ran CleanUp on it afterwards, resulting in 34K triangles.

                                          If SU is running out of memory, I'd suggest you try with a smaller bitmap. Also, try to run CleanUp before exporting to get rid of co-planar faces.

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

                                          1 Reply Last reply
                                          Reply Quote 0
                                          • J
                                            jeffschaid01
                                            last edited by

                                            Thanks very much for the help. The cpu usage is at about 250,000k when the export process hits 49% then climbs to 270k and the program crashes and closes. Is this beyond SU capabilities?

                                            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
                                            • 6
                                            • 7
                                            • 8
                                            • 9
                                            • 10
                                            • 13
                                            • 14
                                            • 8 / 14
                                            • First post
                                              Last post
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement