• Login
sketchucation logo sketchucation
  • Login
ℹ️ GoFundMe | Our friend Gus Robatto needs some help in a challenging time Learn More

[Plugin] Heightmap from model

Scheduled Pinned Locked Moved Plugins
63 Posts 28 Posters 61.2k Views
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.
  • D Offline
    Didier Bur
    last edited by Didier Bur 16 Dec 2009, 21:25

    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
    • T Offline
      thomthom
      last edited by 16 Dec 2009, 21:28

      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
      • C Offline
        CadFather
        last edited by 16 Dec 2009, 22:06

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

        1 Reply Last reply Reply Quote 0
        • G Offline
          Gaieus
          last edited by 17 Dec 2009, 07:48

          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
          • P Offline
            Pixero
            last edited by 17 Dec 2009, 09:49

            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
            • T Offline
              TIG Moderator
              last edited by 17 Dec 2009, 13:48

              Same here... 😞

              TIG

              1 Reply Last reply Reply Quote 0
              • I Offline
                ilay7k
                last edited by 17 Dec 2009, 17:28

                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 17 Dec 2009, 18:48

                  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
                  • D Offline
                    Didier Bur
                    last edited by 17 Dec 2009, 18:50

                    @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
                    • T Offline
                      TIG Moderator
                      last edited by 17 Dec 2009, 19:05

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

                      TIG

                      1 Reply Last reply Reply Quote 0
                      • D Offline
                        Didier Bur
                        last edited by 17 Dec 2009, 19:29

                        @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
                        • T Offline
                          thomthom
                          last edited by 17 Dec 2009, 19:49

                          @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
                          • T Offline
                            TIG Moderator
                            last edited by 17 Dec 2009, 19:51

                            @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
                            • T Offline
                              TIG Moderator
                              last edited by 17 Dec 2009, 19:52

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

                              TIG

                              1 Reply Last reply Reply Quote 0
                              • D Offline
                                Didier Bur
                                last edited by 17 Dec 2009, 22:15

                                @TIG: No, I never do that !

                                DB

                                1 Reply Last reply Reply Quote 0
                                • D Offline
                                  Didier Bur
                                  last edited by 17 Dec 2009, 22:17

                                  @TIG: No, I never do that !

                                  DB

                                  1 Reply Last reply Reply Quote 0
                                  • A Offline
                                    AcesHigh
                                    last edited by 18 Dec 2009, 00:23

                                    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 18 Dec 2009, 02:14

                                      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
                                      • D Offline
                                        Didier Bur
                                        last edited by 18 Dec 2009, 17:53

                                        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
                                        • P Offline
                                          Pixero
                                          last edited by 19 Dec 2009, 06:32

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

                                          Advertisement