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 Didier Bur

      Hi all,
      After a long silence, here is another toy I wrote to export SU terrains to Unity3D game engine, which uses RAW heightmaps to create terrains. I thought it could be of any interest to others, so here it is.
      Features:

      • creates BMP or RAW images, greyscale or color, 8 bits or 16 bits from any view of your model (top view recommanded of course)
      • creates a colored mask where no faces found in the view
      • can crop the image to the model projection
      • can blur the heightmap before writing it.

      Extract in Plugins folder, PDF doc included.

      Regards,

      EDIT: new release May 5th 2010, instant bugsplat fix 😛

      Get the latest version from the PluginStore http://sketchucation.com/pluginstore?pln=mesh2HeightMap


      ENGLISH VERSION: Extract in Plugins folder, PDF doc included.


      VERSION FRANCAISE: à décompresser dans le dossier Plugins, doc PDF incluse.

      DB

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

        That is interesting. Could probably use the generated image as displacement texture in render engines.

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

        1 Reply Last reply Reply Quote 0
        • CadFatherC Offline
          CadFather
          last edited by

          Thanks Didier, very interesting and good to see you around.. 👍

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

            Hi Didier,

            Indeed, long time no see and good to know you are still around.

            I have been looking at Unity for a while now so I guess this will come handy soon - thanks! 👍

            Gai...

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

              I get a instant BugSplat upon starting SU.
              When I remove it from the plugins folder SU starts normally.
              Using latest SU and the english version of your script.

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

                Same here... 😞

                TIG

                1 Reply Last reply Reply Quote 0
                • I Offline
                  ilay7k
                  last edited by

                  Thanks
                  Works at 6 version, but slow, seems my pc is slow
                  same thing at 7 as TIG and Pixero

                  1 Reply Last reply Reply Quote 0
                  • D Offline
                    DIEGO-RODRIGUEZ
                    last edited by

                    thank you very much for sharing.
                    Could make the menu visible, in order to personalize it.
                    the plugins *.rbs , and menu of plugins *.rb

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

                      @unknownuser said:

                      I get a instant BugSplat upon starting SU.

                      😡 😡

                      Are you on Mac, guys ? or do you use 7.1. ?

                      Always the same boring SU version update problems with rubies, I guess...

                      DB

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

                        PC, Vista, with latest SUp v7.1+M1

                        TIG

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

                          @TIG:

                          I'm on SU v7.0.8657
                          Do you know of any change in the API for 7.1. ?

                          DB

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

                            @didier bur said:

                            @TIG:

                            I'm on SU v7.0.8657
                            Do you know of any change in the API for 7.1. ?

                            Model.number_faces

                            only additions AFIK

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

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

                              @didier bur said:

                              @TIG:
                              I'm on SU v7.0.8657
                              Do you know of any change in the API for 7.1. ?

                              • arccurve.is_polygon?
                              • adding entities to groups initially seems less bugsplatty but it's not documented...
                                so none that should affect this...

                              TIG

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

                                Have you modified any 'built-in' methods that might clash with others mods ?

                                TIG

                                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
                                  • 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
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 1 / 4
                                            • First post
                                              Last post
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement