• Login
sketchucation logo sketchucation
  • Login
🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

Projecting texture on curved surface

Scheduled Pinned Locked Moved SketchUp Discussions
sketchup
13 Posts 4 Posters 1.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.
  • B Offline
    blueman2
    last edited by 6 Feb 2019, 00:21

    I know this has been beaten to death and I'm familiar with the technique of importing image as texture on flat surface and then "picking material" from flat surface (set as projected) and painting it on to curved surface. That is what I used here.

    Image 5.jpgImage 6.jpgImage 7.jpg
    (note I had not bothered to align the texture image to the surface. I'm waiting to eliminate the curve distortion before I spend time on that)

    I've done this before and I can't remember whether I used some plugin that I no longer have or did something different. But this time, no matter what I try (changing the length of the flat surface for example) the pattern this time distorts on some of the curves more than others.
    Image 16.jpg

    Would appreciate any help. Thanks

    1 Reply Last reply Reply Quote 0
    • D Offline
      Dave R
      last edited by 6 Feb 2019, 03:40

      Can you share the SKP model and the original image?

      Etaoin Shrdlu

      %

      (THERE'S NO PLACE LIKE)

      G28 X0.0 Y0.0 Z0.0

      M30

      %

      1 Reply Last reply Reply Quote 0
      • B Offline
        blueman2
        last edited by 6 Feb 2019, 04:09

        Here's the model shape and image. Thanks


        curved texture application.skp


        sadia-seamless.jpg

        1 Reply Last reply Reply Quote 0
        • B Offline
          Box
          last edited by 6 Feb 2019, 04:16

          Done with Fredo's ThruPaint


          ThruPaint.gif

          1 Reply Last reply Reply Quote 0
          • B Offline
            blueman2
            last edited by 6 Feb 2019, 04:37

            Very nice! Will look at that in the morning. I did a search for "Texture" in extensions and Sketchucation and this didn't come up. I do have a number of his tools but not that one. Thanks

            1 Reply Last reply Reply Quote 0
            • D Offline
              Dave R
              last edited by 6 Feb 2019, 04:52

              Thru Paint is an excellent choice. I did it without any extensions. First, I reimported the image as a texture and made it the correct size for the application. (3/4 in. wide). I placed it on a 3/4 in. wide rectangle aligned with the curved shape. then sampled from it an applied it to the curved surface.

              Screenshot - 2_5_2019 , 10_48_27 PM.png

              By making the texture the right width in the first place, that fixes the issue of the lateral alignment.
              Screenshot - 2_5_2019 , 10_51_17 PM.png

              Etaoin Shrdlu

              %

              (THERE'S NO PLACE LIKE)

              G28 X0.0 Y0.0 Z0.0

              M30

              %

              1 Reply Last reply Reply Quote 0
              • H Offline
                HornOxx
                last edited by 6 Feb 2019, 11:03

                ... if not yet known, I just to add this little info for Blueman2 - ThruPaint is one tool out of Fredo6´s Fredo Tools Plugin


                Fredo Tools.jpg

                never trust a skinny cook

                1 Reply Last reply Reply Quote 0
                • B Offline
                  blueman2
                  last edited by 6 Feb 2019, 13:46

                  @dave r said:

                  Thru Paint is an excellent choice. I did it without any extensions. First, I reimported the image as a texture and made it the correct size for the application. (3/4 in. wide). I placed it on a 3/4 in. wide rectangle aligned with the curved shape. then sampled from it an applied it to the curved surface.

                  By making the texture the right width in the first place, that fixes the issue of the lateral alignment.

                  So Dave, are you saying that the width of the rectangle I had was off? I thought I had set it to 3/4.
                  But still, that may have affected the lateral alignment but my main question was about the distortion at the curves. Is that what caused that problem also?

                  1 Reply Last reply Reply Quote 0
                  • D Offline
                    Dave R
                    last edited by 6 Feb 2019, 14:01

                    The rectangle is 13/16 in. wide. I'm not sure how you inserted the texture but curiously, it shows as 2-35/64 in. wide.

                    Screenshot - 2_6_2019 , 7_52_45 AM.png

                    Part of the lateral alignment probplem is due to the mismatch. The other has to do with the position of the rectangle and the shape relative to the origin. When you sample off the rectangle, the texture's position in space is also sampled and applied. I'll see if I can make a better example showing that.

                    As for the bending distortion, that comes from projecting the texture. It might be easier to understand the projection distortion if you put the rectangle directly in front of the shape. In this case you don't want it to be projected.

                    Again, I'll make an example for you.

                    Etaoin Shrdlu

                    %

                    (THERE'S NO PLACE LIKE)

                    G28 X0.0 Y0.0 Z0.0

                    M30

                    %

                    1 Reply Last reply Reply Quote 0
                    • B Offline
                      blueman2
                      last edited by 6 Feb 2019, 14:14

                      @dave r said:

                      The rectangle is 13/16 in. wide. I'm not sure how you inserted the texture but curiously, it shows as 2-35/64 in. wide.

                      Part of the lateral alignment probplem is due to the mismatch. The other has to do with the position of the rectangle and the shape relative to the origin. When you sample off the rectangle, the texture's position in space is also sampled and applied. I'll see if I can make a better example showing that.

                      As for the bending distortion, that comes from projecting the texture. It might be easier to understand the projection distortion if you put the rectangle directly in front of the shape. In this case you don't want it to be projected.

                      Again, I'll make an example for you.

                      Thanks Dave, I'd be curious though I must admit, I ended up using ThruPaint and it was a piece of cake. But still, if you have time, I'd like to see what you're explaining

                      1 Reply Last reply Reply Quote 0
                      • D Offline
                        Dave R
                        last edited by 6 Feb 2019, 14:42

                        Let's see if this works. Here's a screen shot of the setup. I imported the image of the tile and applied it to the face as shown. Note the size of the tile and the position of the tile's lower left corner.
                        Screenshot - 2_6_2019 , 8_12_13 AM.png

                        And here's a GIF showing what happens when I sample the texture and apply it to the blank square position at the origin.
                        Click on it to make it move if it doesn't.

                        See where the lower left corner of the texture gets placed? It's going to be 2 in. to the right of the actual corner of the rectangle and ~2-13/64 in. up from the bottom edge. If the original square had been located at some multiple of 12 in. from the origin along the red axis and its bottom edge on the red/green* plane, the material would have been aligned when I placed it on the other rectangle.

                        It's important to note that this alignment is based on local axes for the context. The geometry is all loose in this case but if you are applying a texture to a face in a component or group, thelocation of the Component/group origin will come into play.

                        Projecting a texture is like any other sort of projection. The pixels of the texture get projected straight at the curved face which results in distortion. You can see how the red and black bars cover a larger area near the top than they do at the middle of the cylinder.
                        Screenshot - 2_6_2019 , 8_32_17 AM.png

                        IF you had to project a texture onto a curved surface, the least distortion will occur if you set the flat face you're projecting from at an angle that is as close to parallel with the average angle of the faces as you can get it. Usually eyeballing it will work pretty well.

                        So going back to my attempt to apply your texture to the edge of your shape, no projection and the rectangle aligned with the shape. To be honest, there were maybe three faces along the curved edge where the texture didn't align properly. I fixed them by exposing hidden geometry and then using the eye dropper to sample the correctly oriented texture on the face next to the bad one and reapplying the texture to the bad one. Not a huge task. I think Fredo's Thrupaint is a great tool for managing this sort of thing and other texturing tasks but I want to show you that it can be done with native tools.

                        Etaoin Shrdlu

                        %

                        (THERE'S NO PLACE LIKE)

                        G28 X0.0 Y0.0 Z0.0

                        M30

                        %

                        1 Reply Last reply Reply Quote 0
                        • B Offline
                          blueman2
                          last edited by 6 Feb 2019, 14:50

                          OK thanks. I saw that technique and actually tried it a little but it seemed tedious and I didn't use parallel placement to the curve which may have been the downfall. Thanks

                          1 Reply Last reply Reply Quote 0
                          • D Offline
                            Dave R
                            last edited by 6 Feb 2019, 14:58

                            No need for the parallel placement if you aren't projecting the texture. I'm guessing this texture of yours is some banding as might be used on a musical instrument. In real life it would be about veneer thick and would be wrapped around the body of the gitbox or whatever. You'd use projection if you wanted to show how a pattern of glued up blocks changes when they are turned on a lathe.

                            Etaoin Shrdlu

                            %

                            (THERE'S NO PLACE LIKE)

                            G28 X0.0 Y0.0 Z0.0

                            M30

                            %

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

                            Advertisement