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

Texture: how to map it to a bending cylinder

Scheduled Pinned Locked Moved Newbie Forum
sketchup
21 Posts 8 Posters 4.3k Views 8 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
    CurryPork
    last edited by 28 Nov 2008, 04:24

    I'm trying to apply this material to a bent cylinder as per the attachment.

    I can't figure out how to map it correctly so the lines wrap around the cylinder all the way through. Can you do this in sketchup?

    Thanks


    texture.jpg

    1 Reply Last reply Reply Quote 0
    • V Offline
      Voder Vocoder
      last edited by 28 Nov 2008, 08:21

      Mapping textures can be tricky in some situations, but what you're talking about doing is fairly straightforward using a projected texture.

      Paint the texture on a vertical face, like a rectangle, then right-click > texture > projected. Then sample the texture and apply it to the cylinder or bent cylinder.

      stripy_map.jpg

      ~Voder

      1 Reply Last reply Reply Quote 0
      • R Offline
        remus
        last edited by 28 Nov 2008, 23:37

        To achieve the result taff got in you can always bend the texture in photoshop or a similar package. I think theres is a warp tool that can be used for this sort of thing...

        http://remusrendering.wordpress.com/

        1 Reply Last reply Reply Quote 0
        • T Offline
          TaffGoch
          last edited by 28 Nov 2008, 23:39

          Voder Vocoder,

          How would you approach this? (...which is what I think CurryPork may be after.)

          Capture001 28Nov2008.png
          I know that, for me, it was a pain in the butt. I tried "UVtools," but it's obviously inappropriate to the task. Is there, perhaps, a "follow me" type tool for texture, with which I'm not familiar?

          (To obtain the above result, I had to repeatedly sample/paint adjacent faces, with hidden-line viewing turned on.)

          Taff

          "Information is not knowledge." -- Albert Einstein

          1 Reply Last reply Reply Quote 0
          • V Offline
            Voder Vocoder
            last edited by 29 Nov 2008, 01:22

            Taff,

            I'm afraid the tedious method you describe is the only way I know of. Luckily, I thought, that wasn't what CurryPork was looking for, judging by his image and phrasing of the question.

            He certainly could have made it a bit easier for anyone trying to help him, first by posing his question with greater precision, and second by providing the texture itself to work with. I'm embarrassed to say I wasted about half an hour just looking around for a stripe like that (unsuccessfully).

            Remus, I'm extremely skeptical about your suggestion of "bending the texture" in PhotoShop, but I would be very glad to be proven wrong. Please show me.

            ~Voder

            1 Reply Last reply Reply Quote 0
            • V Offline
              Voder Vocoder
              last edited by 29 Nov 2008, 01:39

              Remus,

              My apologies. If using projected texture this way is what you were talking about, then it does indeed seem to work. Very clever idea: my compliments.

              And Taff, it was real quick and easy.

              wrap-around.jpg

              ~Voder

              1 Reply Last reply Reply Quote 0
              • S Offline
                solo
                last edited by 29 Nov 2008, 02:42


                http://img122.imageshack.us/img122/3787/psimagecw7.jpg


                http://img117.imageshack.us/img117/5377/supluspspfl7.jpg

                http://www.solos-art.com

                If you see a toilet in your dreams do not use it.

                1 Reply Last reply Reply Quote 0
                • T Offline
                  TaffGoch
                  last edited by 29 Nov 2008, 06:33

                  I based my wrap-around interpretation upon...

                  @unknownuser said:

                  ...so the lines wrap around the cylinder all the way through...

                  ...assuming he meant "...all along the length."

                  I first considered using a projection from the side as well, but that would only work with specialized cases (and it works well, as demonstrated by Remus and solo.) I, myself, have put side projections to good use, in the SU modeling of terrain altitude:
                  http://sketchup.google.com/3dwarehouse/details?mid=77627ea5941ff3d387ecd6083924dba

                  I sought a solution that would work with any geometry, no matter how it twists-and-turns in 3 dimensions. No such luck, without the tedious, repeated sampling/painting. Makes me wonder if our community ruby gurus have pondered this?

                  Taff

                  "Information is not knowledge." -- Albert Einstein

                  1 Reply Last reply Reply Quote 0
                  • V Offline
                    Voder Vocoder
                    last edited by 29 Nov 2008, 07:58

                    Sure, Taff, if you want to add emphasis on "around," be my guest, but one could just as easily add emphasis this way:

                    @unknownuser said:

                    ...so the lines wrap around the cylinder all the way through...

                    As I said, CurryPork could have done us all a favor by selecting his words--and his picture--with greater care.

                    At this point, I guess we could either assemble a panel of semanticians, cryptologists, and empaths to try and unravel this mess for us, or we could simply say we gave it our best shot and walk away from it, with no cause for shame.

                    I vote for the latter.

                    ~Voder

                    1 Reply Last reply Reply Quote 0
                    • C Offline
                      CurryPork
                      last edited by 29 Nov 2008, 09:30

                      I apologyze for my bad english (my third language). I knew my question didn't make sense, but what I meant is how would you wrap that texture as TAFF had shown with his colored image. And thanks Remus and Voder for demonstrating that this can be done with the projected map. It works well for what I wanted to accomplish.

                      Thanks everyone.

                      1 Reply Last reply Reply Quote 0
                      • C Offline
                        CurryPork
                        last edited by 29 Nov 2008, 10:10

                        OK, it's not working as well as I thoght... I applied the projected texture to the bent cylinder and it looks fine but when I rotate this shape, it doesn't hold the texture since the texture is "projected". Any suggestion on how to resolve this is appreciated.

                        Thanks

                        1 Reply Last reply Reply Quote 0
                        • R Offline
                          remus
                          last edited by 29 Nov 2008, 10:23

                          Could you post the model? i cant reproduce the issue.

                          http://remusrendering.wordpress.com/

                          1 Reply Last reply Reply Quote 0
                          • GaieusG Offline
                            Gaieus
                            last edited by 29 Nov 2008, 10:29

                            Hi Curry Pork,

                            When you have applied the texture, turn on hidden geometry (View menu), right click on one of the facets > texture >position and without doing anything else, hit enter.

                            Now turn off hidden geometry, select the Paint bucket tool and press Alt. It will turn into a sampler; sample the still selected facet and apply it to the whole surface of your tube.

                            If this does not screw up the UV coordinates (in which case I second what Remus says; post your model), it should fix the texture move issue.

                            Gai...

                            1 Reply Last reply Reply Quote 0
                            • V Offline
                              Voder Vocoder
                              last edited by 29 Nov 2008, 14:37

                              To reproduce the effect I depicted above (which is a series of circumferential rings running all along the bent cylinder, and which consistently gives that appearance from all angles), paint the texture with the stripes turning through a bend onto a vertical surface (a rectangle) that is lined up with the bent cylinder itself, just as I have shown. Then right-click the rectangle and select Texture > Projected. Then use Alt-Bucket to sample the projected texture, and finally click on the bent cylinder with the Bucket tool.

                              See attached.

                              ~Voder


                              bent-cylinder.skp

                              1 Reply Last reply Reply Quote 0
                              • C Offline
                                CurryPork
                                last edited by 1 Dec 2008, 20:18

                                Thanks everyone and thanks Voder for posting that model. I think I got this figure out so there's no need to post my model anymore.

                                Again, thank you all.

                                1 Reply Last reply Reply Quote 0
                                • romboutR Offline
                                  rombout
                                  last edited by 27 Mar 2009, 04:05

                                  @solo said:


                                  http://img122.imageshack.us/img122/3787/psimagecw7.jpg


                                  http://img117.imageshack.us/img117/5377/supluspspfl7.jpg

                                  oke solo how would i do this than. it needs to go around


                                  Afbeelding 21.png


                                  Afbeelding 22.png

                                  1 Reply Last reply Reply Quote 0
                                  • GaieusG Offline
                                    Gaieus
                                    last edited by 27 Mar 2009, 04:53

                                    That's because of projecting the texture. It is "best" when seen from the front you project it on AND from the back (although it's mirrored there) but on the sides it's always "smeared" like that. This is the nature of projection and it is (well) intended to behave like this.

                                    You should rather wrap that texture around or use Whaat's UV Tools plugin to map it cylindrically.

                                    Could you attach that Kerky image itself?

                                    Gai...

                                    1 Reply Last reply Reply Quote 0
                                    • romboutR Offline
                                      rombout
                                      last edited by 13 May 2009, 04:30

                                      @gaieus said:

                                      That's because of projecting the texture. It is "best" when seen from the front you project it on AND from the back (although it's mirrored there) but on the sides it's always "smeared" like that. This is the nature of projection and it is (well) intended to behave like this.

                                      You should rather wrap that texture around or use Whaat's UV Tools plugin to map it cylindrically.

                                      Could you attach that Kerky image itself?

                                      this is what i got... i moved to a different project but got a UV mapping problem again

                                      the second image is where i got a problem again


                                      resolved it a bit


                                      the new problem


                                      ther project

                                      1 Reply Last reply Reply Quote 0
                                      • GaieusG Offline
                                        Gaieus
                                        last edited by 13 May 2009, 11:19

                                        Well, a texture is extremely hard to position in 3D in a way that it looks seamless all, three connected faces. But this is similar to real world; an upholsterer (is that the proper word?) couldn't adjust the pattern seamless either. You can, of course, achieve much better results than in your picture (see attached).

                                        PositionTexture.jpg
                                        Here I made the rounded edges with Fredo's RoundEdge by Bezie plugin. Then made the following steps:

                                        1. Turned on hidden geometry
                                        2. painted the top face with the material
                                        3. right click > Texture > Position (do nothing but...) hit Enter
                                          (this will "fix" the texture coordinates to the face instead of the word coordinates)
                                        4. sampled the material and applied it to the small facets of the rounded edge one by one advancing from top to bottom on both sides
                                        5. sampled the material from the side and applied it to the vertical facets proceeding from outside towards the corner - where eventually you can see the inevitable seam between the two sides.
                                          Of course, you can "hide" this corner seam with some "carelessly" and "untidily" placed blanket or anything here but as I said above, this seam would (most probably) be there in real world, too.

                                        Gai...

                                        1 Reply Last reply Reply Quote 0
                                        • arail1A Offline
                                          arail1
                                          last edited by 14 May 2009, 00:06

                                          Is there any way to do the opposite? Make the texture follow the curve rather than go perpendicular to it - as in the grain of wood following the curve in bent wood furniture? Or following the line of a railing?

                                          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