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

    [Plugin] Heightmap from model

    Scheduled Pinned Locked Moved Plugins
    63 Posts 28 Posters 61.2k Views 29 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.
    • Didier BurD Offline
      Didier Bur
      last edited by

      @TIG: No, I never do that !

      DB

      1 Reply Last reply Reply Quote 0
      • Didier BurD Offline
        Didier Bur
        last edited by

        @TIG: No, I never do that !

        DB

        1 Reply Last reply Reply Quote 0
        • A Offline
          AcesHigh
          last edited by

          awesome Didier! I had asked for such a plugin some months ago! It will be great to create some bumpmaps (or displacement maps) to use with VRAY!

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

            Didier I extracted the plugin to the plugins folder and it causes SU to crash upon opening. I removed the plugin and SU opened fine.

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

            1 Reply Last reply Reply Quote 0
            • Didier BurD Offline
              Didier Bur
              last edited by

              It seems that crappy Vista is causing the problem (as usual).
              Since the script writes binary BMP or RAW files, ensure you have the right to do this (be logged as admin ?)
              Any other clue anyone ?

              DB

              1 Reply Last reply Reply Quote 0
              • PixeroP Offline
                Pixero
                last edited by

                Well...I had the same problems on XP at work, so... it can't be just Vista.

                1 Reply Last reply Reply Quote 0
                • N Offline
                  notareal
                  last edited by

                  👍 Nice tool. Wonder if hdr or exr would be possible as file options.

                  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
                  • TIGT Offline
                    TIG Moderator
                    last edited by

                    @didier bur said:

                    It seems that crappy Vista is causing the problem (as usual).
                    Since the script writes binary BMP or RAW files, ensure you have the right to do this (be logged as admin ?)
                    Any other clue anyone ?

                    Where does it write these to?
                    I am an admin so it shouldn't matter.
                    Also it crashes SUp BEFORE you try to do anything - just by loading it you get the problem.

                    TIG

                    1 Reply Last reply Reply Quote 0
                    • charly2008C Offline
                      charly2008
                      last edited by

                      Hi TIG,

                      i have the same problem with XP. SU7 was just by loading and then came a Bugsplat.

                      Karlheinz

                      He who makes no mistakes, makes nothing

                      1 Reply Last reply Reply Quote 0
                      • Didier BurD Offline
                        Didier Bur
                        last edited by

                        @unknownuser said:

                        Where does it write these to?

                        It writes images at the same location than the SKP is.

                        @unknownuser said:

                        it crashes SUp BEFORE you try to do anything - just by loading it

                        That's what is really strange. I don't overwrite built-in methods, don't do any 'require' or something that involve other files.

                        Would you please test this version and tell me if the problem persists ? 🎉


                        mesh2HeightMap.zip

                        DB

                        1 Reply Last reply Reply Quote 0
                        • PixeroP Offline
                          Pixero
                          last edited by

                          Still crashes instantly while loading SU. Now on Windows 7 64bit. SU 7.1.

                          1 Reply Last reply Reply Quote 0
                          • charly2008C Offline
                            charly2008
                            last edited by

                            it still crashes while loading SU.

                            Karlheinz

                            He who makes no mistakes, makes nothing

                            1 Reply Last reply Reply Quote 0
                            • TIGT Offline
                              TIG Moderator
                              last edited by

                              Test file = instant Bugsplat.
                              Didier - why not PM or email the 'uncompiled' script to one of us for debugging - you can trust me 😉 ...
                              You know that I hack into your encrypted rb files all of the time, but the rbs ones are a bit harder... just easier if you supply it unencrypted...
                              It must be simple to fix...

                              TIG

                              1 Reply Last reply Reply Quote 0
                              • G Offline
                                georglorenz
                                last edited by

                                Slightly off topic here: Is there a plugin that does the exact opposite of this one? That is creating a terrain from an greyscale image (.jpg or anything else)? Thank you. G

                                1 Reply Last reply Reply Quote 0
                                • Chris FullmerC Offline
                                  Chris Fullmer
                                  last edited by

                                  There is, Didier wrote a script that imports a heightmap image into SU. I forget what its called, but it was written by didier bur and should be posted here on the forum somewhere....

                                  Chris

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

                                  1 Reply Last reply Reply Quote 0
                                  • N Offline
                                    notareal
                                    last edited by

                                    Nice work!

                                    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
                                    • M Offline
                                      miikka1978
                                      last edited by

                                      Did anybody find some solution for instant BugSplat upon starting SU when using this plugin?

                                      1 Reply Last reply Reply Quote 0
                                      • Chris FullmerC Offline
                                        Chris Fullmer
                                        last edited by

                                        I was going to look at the code, but it is encrypted. So it would require Didier to look at it.

                                        Sometimes if the script calls the active_model before the model is initialized by SU it can cause problems. But I can't see if the script is possibly doing anything like that.

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

                                        1 Reply Last reply Reply Quote 0
                                        • M Offline
                                          miikka1978
                                          last edited by

                                          Chris,
                                          Is it possible to use your Color by Z- plugin for creating a heightmap from model? I would need to create heightmap from Sketchup model and take it into Unity 3D for creating a terrain (just like Heightmap plugin was supposed to do).
                                          http://forums.sketchucation.com/viewtopic.php?f=180&t=16660

                                          1 Reply Last reply Reply Quote 0
                                          • Chris FullmerC Offline
                                            Chris Fullmer
                                            last edited by

                                            Look at the technicque used in this post:

                                            http://forums.sketchucation.com/viewtopic.php?f=323&t=16660&start=15#p131738

                                            The idea is to make your terrain, then apply a gradient image to the entire terrain. It will make a much smoother gradient than my color by Z and the gradient will be more accurate.

                                            You can try using the attached gradient image. That will give you a greyscale heightmap. I don't know what file format you need, but I am hoping you can export a black and white image from SU and find a way to get it into the correct format.

                                            Let me know if this works, if you are still missing a piece to the puzzle.

                                            Chris

                                            BW-gradient.jpg

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

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

                                            Advertisement