sketchucation logo sketchucation
    • Login
    πŸ€‘ SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    Adopt texture from face directly below

    Scheduled Pinned Locked Moved SketchUp Discussions
    sketchup
    9 Posts 4 Posters 647 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.
    • C Offline
      chanz
      last edited by

      Hello.

      I am in need of advice for a cruical step of a process. I am playing around with terrain that was divided by a BSP tree, meaning it has been subdivided for rendering. I am "undoing" this process by recreating it as it has created an insane amount of subdivisions. Have a look:

      Link Preview Image
      imgur.com

      Discover the magic of the internet at Imgur, a community powered entertainment destination. Lift your spirits with funny jokes, trending memes, entertaining gifs, inspiring stories, viral videos, and so much more from users.

      favicon

      Imgur (imgur.com)

      First, I determine the size of the original terrain tiles. Then I use the amazing "Drop Vertices" plugin. Now for the final piece of the puzzle, I would a like a quick way to grab the textures for each "tile" by raycasting down and then applying the texture of the polygon it intersects. I can of course do it by hand, but I have a lot of these and want to try to automate it as best as possible.

      Firstly, are there any scripts that do something like this? Secondly, if not, is there a good example that will get me going where I need?

      I am a programmer by profession so digging into Ruby shouldn't be impossible but if there is some script that does this already (or someone I can hire to write it), that would be better. Seriously happy to pay someone for their time.

      Thank you.

      Here are pictures that illustrate what I mean.

      http://i.imgur.com/3SbyOxM.png

      It needs to apply the texture from the bottom to the top.

      Thank you for your time.

      1 Reply Last reply Reply Quote 0
      • pilouP Offline
        pilou
        last edited by

        Eye dropper + don't make the trick in one click ?

        Frenchy Pilou
        Is beautiful that please without concept!
        My Little site :)

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

          adding the skp file would help us in suggesting workflows...

          john

          learn from the mistakes of others, you may not live long enough to make them all yourself...

          1 Reply Last reply Reply Quote 0
          • C Offline
            chanz
            last edited by

            Hey guys, thanks for the quick replies.

            The eye dropper and paint bucket tool work very well but only on large areas. The problem is that in the border between the sand and grass in this model, there are several other smaller textures. I can't really figure out a good camera angle or way to make both models visible so I can quickly and accurately copy the textures over. I can sample one texture and tile a number of them but really the issue is when there are many small variations like with the border I described.

            Can you think of a better workflow or have any ideas?

            Here is the sketchup file. The created terrain is above. The original is down below and the tile sizes should be exact.

            Thanks πŸ˜„


            texturequestion.skp

            1 Reply Last reply Reply Quote 0
            • C Offline
              chanz
              last edited by

              Looks like this might be a bit more complicated than I thought. πŸ˜„ Does anyone have any idea? Or, can anyone confirm that the idea I have for the script would work?

              1 Reply Last reply Reply Quote 0
              • pilouP Offline
                pilou
                last edited by

                Have you try ThruPaint by Fredo6?

                Frenchy Pilou
                Is beautiful that please without concept!
                My Little site :)

                1 Reply Last reply Reply Quote 0
                • cottyC Offline
                  cotty
                  last edited by

                  One way...

                  • Smooth edges
                  • scale old topo with Vertextools and scale factor 0
                  • combine textures
                  • make a projected texture
                  • assign to new topo faces

                  texturequestion.JPG


                  texturequestion_cotty.skp

                  my SketchUp gallery

                  1 Reply Last reply Reply Quote 0
                  • pilouP Offline
                    pilou
                    last edited by

                    I you have not more the original image
                    View Top
                    Maybe I "Flat" (or not) the original Ground, hide Edges, Export 2D as "Image", Crop in 2D Prog
                    Flatten Vertices by Niall Campbell or more powerful : Drop Vertices by Tig

                    (Scale 0,001 in Z make quasi the same and better for the aspect of the texture! πŸ˜‰
                    And use this image as texture projected on the Top?

                    textu.jpg

                    Frenchy Pilou
                    Is beautiful that please without concept!
                    My Little site :)

                    1 Reply Last reply Reply Quote 0
                    • C Offline
                      chanz
                      last edited by

                      Thank you guys for the suggestions and replies. Unfortunately, I need the model to not have just 1 texture but to retain it's original tile texturing. Do I have any other options? Does Thrupaint have anything here that can help me? Is there any way I can paint through surfaces to all faces that are under the drop bucket tool?

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

                      Advertisement