sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    [Plugin] Bitmap To Mesh

    Scheduled Pinned Locked Moved Plugins
    264 Posts 75 Posters 420.8k 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.
    • tbdT Offline
      tbd
      last edited by

      @thomthom said:

      None of these versions are available anywhere?

      nope. it was on old @Last Sketchup forums and lost.

      @thomthom said:

      OpenGL viewer within SU? 😲

      yep. in a separate window and it worked pretty well.

      SketchUp Ruby Consultant | Podium 1.x developer
      http://plugins.ro

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

        @unknownuser said:

        nope. it was on old @Last Sketchup forums and lost.
        😞
        And v2?

        @unknownuser said:

        yep. in a separate window and it worked pretty well.

        C-Extension? How did you generate and interface with this window?

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

        1 Reply Last reply Reply Quote 0
        • tbdT Offline
          tbd
          last edited by

          v2 lost on a hdd crash. yup, via a CExt using http://glew.sourceforge.net/basic.html to create and interact with the openGL window. used only a simple wireframe view for testing but it is possible to create a textured/shader scene as well.

          SketchUp Ruby Consultant | Podium 1.x developer
          http://plugins.ro

          1 Reply Last reply Reply Quote 0
          • shuraS Offline
            shura
            last edited by

            Genius!
            Thomas you have a great fan in me. Many times I thought "glad that I have insisted on paying for our lunch the day we met, dunno when I get the next chance to buy him cookies".
            With this release my credit is definitely used up...
            ...playing for time I extruded a cookie for you, until I get a better ideas πŸ˜‰

            Thanks for this plugin, I bet there are a thousand interesting ways to use it.

            cheers
            alex

            ThomasCookie.jpg

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

              πŸ˜† That's great Alex! πŸ˜„

              Btw - you wouldn't happen to be around MΓΌnchen next week? The office is going for a trip - Wednesday 'til Sunday... I think.

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

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

                @unknownuser said:

                v2 lost on a hdd crash. yup, via a CExt using http://glew.sourceforge.net/basic.html to create and interact with the openGL window. used only a simple wireframe view for testing but it is possible to create a textured/shader scene as well.

                Sounds like you had all sorts of fun experimental things lost in this HDD crash... 😞

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

                1 Reply Last reply Reply Quote 0
                • EarthMoverE Offline
                  EarthMover
                  last edited by

                  This is great Thomas.

                  Do you think it's possible to use the bitmap data to do other things besides generate a point cloud terrain? Could you transfer black lines on a bit map to lines on a face? Could you offset and pushpull based on pixel color data? Just thinking of how to take Silver Shadow's original request to generate a brick wall with depth using a bitmap and make it more polygon friendly. It's great, but using a point cloud terrain to generate several wall textures will bring SU to it's knees.

                  Could you possibly glean the UVW coordinates of a texture applied to a face and tile the 3D geometry as components over those coordinates?

                  3D Artist at Clearstory 3D Imaging
                  Guide Tool at Winning With Sketchup
                  Content Creator at Skapeup

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

                    @earthmover said:

                    Could you offset and pushpull based on pixel color data?

                    It's possible - but not easy - I don't know how.

                    @earthmover said:

                    It's great, but using a point cloud terrain to generate several wall textures will bring SU to it's knees.

                    You could use CleanUp to reduce excess faces/edges for uniform textures.
                    But in any case - keep the texture files small.

                    @earthmover said:

                    Could you possibly glean the UVW coordinates of a texture applied to a face and tile the 3D geometry as components over those coordinates?

                    The texture would have to be BMP - as there is no built in method to get access to the texture data in SU. But it is possible - however, this is also something that turns rather complicated. Though would be an interesting project I can't see myself taking it in this direction - I got at the moment UV Tools, Bezier Surface and Vertex Tools as my main focus (that is not including smaller updates/projects).

                    I will be updating it with some smaller improvements, but if anyone want to take it further then be my guest. I just threw this together today during a break as I realised that most the code would be reading the image files - which I already had the codes for from Vertex Tool's toolbar system.

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

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

                      Test with simple displacement map:

                      Displacement.png

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

                      1 Reply Last reply Reply Quote 0
                      • W Offline
                        Whaat
                        last edited by

                        cool stuff! I'm guessing that with some work, you could take a BMP texture applied to an existing mesh and use it to displace the mesh?

                        Great work Thom!

                        SketchUp Plugins for Professionals

                        1 Reply Last reply Reply Quote 0
                        • jeff hammondJ Offline
                          jeff hammond
                          last edited by

                          water.jpg

                          dotdotdot

                          1 Reply Last reply Reply Quote 0
                          • KrisidiousK Offline
                            Krisidious
                            last edited by

                            you ROCK!!! 😍

                            where are my old bump maps? time to go play...

                            By: Kristoff Rand
                            Home DesignerUnique House Plans

                            1 Reply Last reply Reply Quote 0
                            • EarthMoverE Offline
                              EarthMover
                              last edited by

                              @whaat said:

                              cool stuff! I'm guessing that with some work, you could take a BMP texture applied to an existing mesh and use it to displace the mesh?

                              Great work Thom!

                              I'm looking forward to that...with perhaps a poly count adjustment. πŸ‘ πŸ‘

                              3D Artist at Clearstory 3D Imaging
                              Guide Tool at Winning With Sketchup
                              Content Creator at Skapeup

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

                                @whaat said:

                                cool stuff! I'm guessing that with some work, you could take a BMP texture applied to an existing mesh and use it to displace the mesh?

                                Possible - but you'd risk an insanely heavy mesh...

                                @earthmover said:

                                with perhaps a poly count adjustment.

                                Well, one could sample less of the image...

                                If I was better at math I could work out where the contrasts where and use more points from those areas...

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

                                1 Reply Last reply Reply Quote 0
                                • david_hD Offline
                                  david_h
                                  last edited by

                                  I finally got it to work. I had to the LIB2 thing. It always takes me a little longer. At first i thought it was hanging on me and on some images it did, but I played around with my BMP in phoshop and got the mesh to work. Take a look: see if you can figure it out. Cool plugin. Don't know how I will use it yet but it's cool!


                                  mesh1.jpg


                                  mesh2.jpg


                                  mesh3.jpg

                                  If I make it look easy...It is probably easy

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

                                    This does seem like a plugin with a lot of potential. I gave it a try with a BMP version of the following image but it didn't appear that anything was happening. It seemed to lock up my computer but it should probably be chalked up to the lousy computer I have at work.

                                    http://farm5.static.flickr.com/4120/4783291846_6d66178a50.jpg

                                    This height map was actually created in SU to begin with.

                                    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

                                      Quick test in Rhino:
                                      2010-10-01_200759.jpg

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

                                        Dedmin, did you try to do it with ThomThom's script in SU?

                                        By the way, I think it looks nicer in SketchUp. πŸ˜‰

                                        Etaoin Shrdlu

                                        %

                                        (THERE'S NO PLACE LIKE)

                                        G28 X0.0 Y0.0 Z0.0

                                        M30

                                        %

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

                                          1.25 million entities? 😲 That would let the magic smoke out of this computer for sure. πŸ˜†

                                          Etaoin Shrdlu

                                          %

                                          (THERE'S NO PLACE LIKE)

                                          G28 X0.0 Y0.0 Z0.0

                                          M30

                                          %

                                          1 Reply Last reply Reply Quote 0
                                          • jeff hammondJ Offline
                                            jeff hammond
                                            last edited by

                                            with this bmp, i added a few extra pixels along the top and bottom making it an even 125x500px which brought the entities down by 75%..
                                            (make sure to scale the y axis to 25% in order to fix the proportions)

                                            zipped on a mac.. ignore the ds files etc..

                                            untitled1.jpg

                                            dotdotdot

                                            1 Reply Last reply Reply Quote 0
                                            • 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