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

    Holes or Strange Patches in Terrain

    Scheduled Pinned Locked Moved SketchUp Discussions
    sketchup
    25 Posts 4 Posters 912 Views 4 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.
    • D Offline
      dbwv69
      last edited by

      Everything appears to be ok with the generated mesh with the exception of the problem mentioned above. Also, I am certain it was only generated once. This one definitely has me stumped. I hope to work this problem out because of all the tests I did using various methods, this is the best looking terrain mesh yet, even if it does take some time to generate from a point cloud.

      The attached zip file contains the XYZ point cloud and the Sketchup file with the generated terrain mesh.


      Attachments.zip

      1 Reply Last reply Reply Quote 0
      • D Offline
        dbwv69
        last edited by

        I forgot to mention that the unit of measure for the XYZ point cloud is Meters.

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

          @tig said:

          How far from the origin was the points cloud / is the mesh ?

          This is probably the problem. Your mesh is extremely far from the origin and this can cause all sorts of visual issues (clipping, distorted views etc.).

          Move the whole mesh to the origin (select the mesh, start moving and type [0,0,0] then press Enter).


          Point Cloud Terrain Mesh.jpg

          Gai...

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

            @dbwv69 said:

            I forgot to mention that the unit of measure for the XYZ point cloud is Meters.

            your units in the model are architectural (feet and inches?) however.

            Gai...

            1 Reply Last reply Reply Quote 0
            • D Offline
              dbwv69
              last edited by

              I moved the model to the point of origin as suggested but still have the same problem.

              Yes, the units of measure in the model are defaulted to feet and inches but the 3 meter elevation data I obtained came in meters so I imported it that way rather than converting it, just for testing.

              And to think that this model is only a tiny fraction of the area (20 square miles) that I will be generating terrain meshes for although that is definitely another subject. LOL

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

                Move the points cloud to the origin, then make the mesh... πŸ˜•

                TIG

                1 Reply Last reply Reply Quote 0
                • D Offline
                  dbwv69
                  last edited by

                  It's funny but I hadn't noticed it before... The Cloud v8 plugin placed the point cloud a great distance from the point of origin despite selecting it when prompted. I verified this by trying it three times. I'm generating the new mesh now, after moving the point cloud to the point of origin as suggested.

                  @tig said:

                  Move the points cloud to the origin, then make the mesh... πŸ˜•

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

                    @dbwv69 said:

                    It's funny but I hadn't noticed it before... The Cloud v8 plugin placed the point cloud a great distance from the point of origin despite selecting it when prompted. I verified this by trying it three times. I'm generating the new mesh now, after moving the point cloud to the point of origin as suggested.

                    @tig said:

                    Move the points cloud to the origin, then make the mesh... πŸ˜•

                    Can I suggest you report this to Didier Bur the tool's author - you should be able to adjust the meshes origin dynamically. If the point-data places the mesh miles away from the origin there will be clipping issues - OpenGL + Sketchup don't like very small OR very large dimensions... πŸ˜’

                    TIG

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

                      With 20 square miles you will have this kind of problems I am afraid. SU has display limitations with very small or very large models.

                      I have moved the mesh to the origin and run ThomThom's Cleanup plugin on it. Interestingly, there were not too much to clea up but the Validity check the plugin run at the end resulted in a rather long list of errors (all "fixed" now).

                      ` Results of Validity Check.

                      The plane equation for CFace (7435) is not valid - fixed
                      The plane equation for CFace (8636) is not valid - fixed
                      The plane equation for CFace (8248) is not valid - fixed
                      The plane equation for CFace (7221) is not valid - fixed
                      The plane equation for CFace (12724) is not valid - fixed
                      The plane equation for CFace (13173) is not valid - fixed
                      The plane equation for CFace (11969) is not valid - fixed
                      The plane equation for CFace (14694) is not valid - fixed
                      The plane equation for CFace (18332) is not valid - fixed
                      The plane equation for CFace (18347) is not valid - fixed
                      The plane equation for CFace (18393) is not valid - fixed
                      The plane equation for CFace (22073) is not valid - fixed
                      The plane equation for CFace (23245) is not valid - fixed
                      The plane equation for CFace (27241) is not valid - fixed
                      The plane equation for CFace (29042) is not valid - fixed
                      The plane equation for CFace (29082) is not valid - fixed
                      The plane equation for CFace (34978) is not valid - fixed
                      The plane equation for CFace (35861) is not valid - fixed
                      The plane equation for CFace (38186) is not valid - fixed
                      The plane equation for CFace (38520) is not valid - fixed
                      The plane equation for CFace (38789) is not valid - fixed
                      The plane equation for CFace (40041) is not valid - fixed
                      The plane equation for CFace (40059) is not valid - fixed
                      The plane equation for CFace (41473) is not valid - fixed
                      The plane equation for CFace (42479) is not valid - fixed
                      The plane equation for CFace (42487) is not valid - fixed
                      The plane equation for CFace (51015) is not valid - fixed
                      The plane equation for CFace (76780) is not valid - fixed
                      The plane equation for CFace (56313) is not valid - fixed
                      The plane equation for CFace (56321) is not valid - fixed
                      The plane equation for CFace (56618) is not valid - fixed
                      The plane equation for CFace (59616) is not valid - fixed
                      The plane equation for CFace (59697) is not valid - fixed
                      The plane equation for CFace (64927) is not valid - fixed
                      The plane equation for CFace (65570) is not valid - fixed
                      The plane equation for CFace (70240) is not valid - fixed
                      The plane equation for CFace (75560) is not valid - fixed
                      The plane equation for CFace (79455) is not valid - fixed
                      The plane equation for CFace (83023) is not valid - fixed
                      The plane equation for CFace (83348) is not valid - fixed
                      The plane equation for CFace (87318) is not valid - fixed
                      The plane equation for CFace (89441) is not valid - fixed
                      The plane equation for CFace (93241) is not valid - fixed
                      The plane equation for CFace (94156) is not valid - fixed
                      The plane equation for CFace (96548) is not valid - fixed
                      The plane equation for CFace (97877) is not valid - fixed
                      The plane equation for CFace (98296) is not valid - fixed
                      The plane equation for CFace (98541) is not valid - fixed
                      The plane equation for CFace (99366) is not valid - fixed
                      The plane equation for CFace (100930) is not valid - fixed
                      The plane equation for CFace (101441) is not valid - fixed
                      The plane equation for CFace (101455) is not valid - fixed
                      The plane equation for CFace (108279) is not valid - fixed
                      The plane equation for CFace (109549) is not valid - fixed
                      The plane equation for CFace (119131) is not valid - fixed
                      The plane equation for CFace (120735) is not valid - fixed
                      The plane equation for CFace (123201) is not valid - fixed
                      The plane equation for CFace (123449) is not valid - fixed
                      The plane equation for CFace (123882) is not valid - fixed
                      The plane equation for CFace (124262) is not valid - fixed
                      The plane equation for CFace (124894) is not valid - fixed
                      The plane equation for CFace (75926) is not valid - fixed`

                      Then there still seemed to be some overlapping, co-linear edges (therefore maybe oplanar faces) but they were easy to fix by hand.

                      Do you still see any visual problems on the terrain?


                      Point Cloud Terrain Mesh.zip

                      Gai...

                      1 Reply Last reply Reply Quote 0
                      • D Offline
                        dbwv69
                        last edited by

                        I'll be sure to let them know about the point of origin glitch I apparantly discovered by accident. Also, I tried using the Cloud v8 plugin to do the triangulation but it seemed to hang and never finished which caused me to seek alternatives that ultimately led me to use the Triangulate Points [TIG] plugin found on this site.

                        I can only imagine how long it will take me to generate meshes, considering how long it is taking to do such a small sample of the area involved. My computer isn't the fastest thing in the world but if I end up dividing the area into separate meshes, I have several computers I can use to do the work.

                        @tig said:

                        @dbwv69 said:

                        It's funny but I hadn't noticed it before... The Cloud v8 plugin placed the point cloud a great distance from the point of origin despite selecting it when prompted. I verified this by trying it three times. I'm generating the new mesh now, after moving the point cloud to the point of origin as suggested.

                        @tig said:

                        Move the points cloud to the origin, then make the mesh... πŸ˜•

                        Can I suggest you report this to Didier Bur the tool's author - you should be able to adjust the meshes origin dynamically. If the point-data places the mesh miles away from the origin there will be clipping issues - OpenGL + Sketchup don't like very small OR very large dimensions... πŸ˜’

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

                          Well, yes, with a particular, large mesh I also chose this way; first import the points and then run the triangulation (at least I can save once in between) so I see your point.

                          Gai...

                          1 Reply Last reply Reply Quote 0
                          • D Offline
                            dbwv69
                            last edited by

                            I spoke too soon, the mesh just finished generating.

                            While I am still checking it over, it appears that moving the point cloud to the point of origin before generating the terrain mesh did the trick. I don't know if this had anything to do with it but I also exploded the point cloud prior to generating the mesh just to be certain I had covered all the bases.

                            You guys are my new best friends. I have drove myself nuts trying to figure this out. LOL

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

                              Glad it worked now. (And I can move the topic to the SU Discussions πŸ˜„ )

                              Gai...

                              1 Reply Last reply Reply Quote 0
                              • D Offline
                                dbwv69
                                last edited by

                                The terrain mesh you repaired looks exactly like it should.

                                I finished verifying the copy I was testing after moving it to the point of origin and it did indeed fix the problems I was encountering. I had no idea that the point of origin could cause so many problems but I will certainly keep it in mind from now on.

                                Interestingly, I was comparing the terrain mesh generated by using a point cloud containing approximately 10,000 points to one generated by importing a DEM directly into Sketchup using 100,000 points and I actually think the first one looks better.

                                10,000 Point Cloud Mesh:
                                Cloud.jpg

                                100,000 Point DEM Mesh:
                                DEM.jpg

                                And the best part is that I could have generated a point cloud at full resolution and made a much better looking terrain from it but the processing time would have been prohibitive. I may give it a try and let it process on another computer just to see the results.

                                @gaieus said:

                                With 20 square miles you will have this kind of problems I am afraid. SU has display limitations with very small or very large models.

                                I have moved the mesh to the origin and run ThomThom's Cleanup plugin on it. Interestingly, there were not too much to clea up but the Validity check the plugin run at the end resulted in a rather long list of errors (all "fixed" now).

                                {SNIP}

                                Then there still seemed to be some overlapping, co-linear edges (therefore maybe oplanar faces) but they were easy to fix by hand.

                                Do you still see any visual problems on the terrain?

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

                                  The one I mentioned above contained about 30,000 points and covered around the same area you are attempting to model - so it is not impossible just be prepared for all sorts of hardships.

                                  There is a terrain reshaper plugin which may be useful (to make it denser or lighter - but nice and even in any case).

                                  Gai...

                                  1 Reply Last reply Reply Quote 0
                                  • D Offline
                                    dbwv69
                                    last edited by

                                    Unfortunately, I know all about hardships because it has taken me over a week to get to this point while trying to find a solution that would generate a terrain that looked good and performed reasonably well. I can only imagine what I have yet to encounter when I start populating the terrain with houses and trees. I suspect that I will be asking for more help in the future. LOL

                                    The reshaper plugin looks interesting. I may take my final terrain results and see what it can to to further simply things a bit.

                                    @gaieus said:

                                    The one I mentioned above contained about 30,000 points and covered around the same area you are attempting to model - so it is not impossible just be prepared for all sorts of hardships.

                                    There is a terrain reshaper plugin which may be useful (to make it denser or lighter - but nice and even in any case).

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

                                      Well, you can always use layers to hide groups/components you are not currently working with. Also, there are a couple of plugins that make a simplified version of a component (say a whole house) and display that while you are working then switch back again when you are exporting images and such.

                                      http://forums.sketchucation.com/viewtopic.php?t=21469

                                      Gai...

                                      1 Reply Last reply Reply Quote 0
                                      • D Offline
                                        dbwv69
                                        last edited by

                                        It's funny that you mentioned it because that is my next step after I manage to generate a terrain mesh that is useable. I plan to organize the model into distinct layers and groups before modeling anything so I can keep the majority of things turned off while working with the model. I cut my Sketchup teeth on that one a few years ago while doing a very complex building model. It was interesting to say the least.

                                        I have never attempted to model anything even approaching this scale so it should be an interesting challenge.

                                        One thing I have been experimenting with while waiting for various terrain mesh tests to generate is roads. Do you know any effective way to generate roads other than using the drape tool? I've seen the "Instant Road" plugin but I prefer to see what alternatives might be available before purchasing a plugin for a single project.

                                        @gaieus said:

                                        Well, you can always use layers to hide groups/components you are not currently working with. Also, there are a couple of plugins that make a simplified version of a component (say a whole house) and display that while you are working then switch back again when you are exporting images and such.

                                        http://forums.sketchucation.com/viewtopic.php?t=21469

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

                                          Well, I only have the demo version of InstantRoad but that's the one that seems to be the tool nicely.

                                          Gai...

                                          1 Reply Last reply Reply Quote 0
                                          • D Offline
                                            dbwv69
                                            last edited by

                                            Upon further examination, I discovered that there are still some minor "glitches" that appear randomly as the terrain mesh is rotated or moved. They are much smaller than before though.

                                            Example shown below:


                                            Point Cloud Terrain Test 3.jpg

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

                                            Advertisement