• Login
sketchucation logo sketchucation
  • Login
πŸ€‘ 30% Off | Artisan 2 on sale until April 30th Buy Now

[Plugin] UV Toolkit

Scheduled Pinned Locked Moved Plugins
377 Posts 86 Posters 298.7k 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.
  • P Offline
    Pixero
    last edited by 22 Dec 2009, 08:26

    I'm using it to rotate the texture on leaves on trees so doing it manually isn't an option. πŸ˜‰

    And don't forget the right click menu...

    1 Reply Last reply Reply Quote 0
    • T Offline
      thomthom
      last edited by 22 Dec 2009, 08:30

      Only thing though, about which points should it rotate...?

      Thomas Thomassen β€” SketchUp Monkey & Coding addict
      List of my plugins and link to the CookieWare fund

      1 Reply Last reply Reply Quote 0
      • P Offline
        Pixero
        last edited by 22 Dec 2009, 08:34

        Can't you just swap the UV "scale"?
        I mean like it is now but with an option to keep the scale on the X and Y axis.
        (Rotating the points so that Points A,B,C,D would be D,A,B,C or something like that.)

        1 Reply Last reply Reply Quote 0
        • T Offline
          thomthom
          last edited by 22 Dec 2009, 08:49

          There is no such fixed points. The one for the quad-faces works like that because you can use the four vertices of the face. But you can't do that when you have differently shaped faces and/or want to preserve scale.

          With SU, you have to generate the set of points yourself and query the face. So when rotating, I need one anchor point.

          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
            thomthom
            last edited by 22 Dec 2009, 08:50

            hm... or maybe it won't be a problem.... hmm

            Thomas Thomassen β€” SketchUp Monkey & Coding addict
            List of my plugins and link to the CookieWare fund

            1 Reply Last reply Reply Quote 0
            • P Offline
              Pixero
              last edited by 22 Dec 2009, 08:57

              Ok, what would you suggest.
              Center of face? Or a window where you can choose like in Profile Builder?

              http://i.imagehost.org/0489/menu.jpg

              1 Reply Last reply Reply Quote 0
              • T Offline
                thomthom
                last edited by 22 Dec 2009, 09:04

                centerofface.png
                That's the thing: what would you determine as centre of face for something like this? (or top,left,right,etc...)

                Thomas Thomassen β€” SketchUp Monkey & Coding addict
                List of my plugins and link to the CookieWare fund

                1 Reply Last reply Reply Quote 0
                • P Offline
                  Pixero
                  last edited by 22 Dec 2009, 09:17

                  Center of bounding box maybe?

                  1 Reply Last reply Reply Quote 0
                  • G Offline
                    Gaieus
                    last edited by 22 Dec 2009, 10:05

                    @thomthom said:

                    [attachment=0:3sro2dfg]<!-- ia0 -->centerofface.png<!-- ia0 -->[/attachment:3sro2dfg]
                    That's the thing: what would you determine as centre of face for something like this? (or top,left,right,etc...)

                    What kind of a quad is that, Thom?
                    😲

                    Gai...

                    1 Reply Last reply Reply Quote 0
                    • T Offline
                      thomthom
                      last edited by 22 Dec 2009, 11:06

                      πŸ˜„ The exotic kind. πŸ˜‰

                      My point was - that when you don't deal with regular quad-faces - it's much harder to predict desired result.

                      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
                        thomthom
                        last edited by 22 Dec 2009, 11:17

                        The thing is - would picking the "centre" (however it's defined) be any different, as just picking the first vertex I can get? At all seem rather arbitrary in terms of the result.

                        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
                          thomthom
                          last edited by 22 Dec 2009, 11:18

                          @pixero said:

                          Would it be possible to have an option for it to automagicly recognise the lenght direction based on witch side is longest on a quad and rotate it to match that.
                          Like if I want to rotate some UVs on a branch to line up the texture with the trees branches length direction. Would be cool.
                          Am I making myself clear? πŸ˜•

                          Are we talking about rotating on quads strictly? I was under the impression this would be a general purpose rotation.

                          Thomas Thomassen β€” SketchUp Monkey & Coding addict
                          List of my plugins and link to the CookieWare fund

                          1 Reply Last reply Reply Quote 0
                          • P Offline
                            Pixero
                            last edited by 22 Dec 2009, 11:19

                            Would it be possible to have an option for it to automagicly recognise the lenght direction based on witch side is longest on a quad and rotate it to match that.
                            Like if I want to rotate some UVs on a branch to line up the texture with the trees branches length direction. Would be cool.
                            Am I making myself clear? πŸ˜•


                            dir.jpg

                            1 Reply Last reply Reply Quote 0
                            • T Offline
                              thomthom
                              last edited by 22 Dec 2009, 11:19

                              @pixero said:

                              Would it be possible to have an option for it to automagicly recognise the lenght direction based on witch side is longest on a quad and rotate it to match that.
                              Like if I want to rotate some UVs on a branch to line up the texture with the trees branches length direction. Would be cool.
                              Am I making myself clear? πŸ˜•

                              Can you show a little screenshot of your starting point and your desired result?

                              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 22 Dec 2009, 11:19

                                @thomthom said:

                                That's the thing: what would you determine as centre of face for something like this? (or top,left,right,etc...)

                                There's a 'Center of Gravity' script somewhere - 'centroid.rb' - by TBD that adds a cpoint at the CoG of a face.
                                I can't find it so here it is againcentroid.rb

                                TIG

                                1 Reply Last reply Reply Quote 0
                                • P Offline
                                  Pixero
                                  last edited by 22 Dec 2009, 11:20

                                  See image in my updated post above.

                                  1 Reply Last reply Reply Quote 0
                                  • T Offline
                                    thomthom
                                    last edited by 22 Dec 2009, 11:21

                                    @pixero said:

                                    See image in my updated post above.

                                    Can you show that with hidden geometry on so I can see the mesh?

                                    Thomas Thomassen β€” SketchUp Monkey & Coding addict
                                    List of my plugins and link to the CookieWare fund

                                    1 Reply Last reply Reply Quote 0
                                    • P Offline
                                      Pixero
                                      last edited by 22 Dec 2009, 12:10

                                      Here's another one with hard edges and lighter texture.
                                      It would be useful for things like trees, railings, plumbing...
                                      Here the texture is applied vertical but should of cause follow the direction of the branches.


                                      dir2.jpg

                                      1 Reply Last reply Reply Quote 0
                                      • T Offline
                                        thomthom
                                        last edited by 22 Dec 2009, 12:22

                                        The thing is, is's hard to determine the direction here. As far as I can see, there's no quad faces in that three, instead lots of triangles. The longest side of each triangle isn't necessarily the direction you want.

                                        I now understand what you want. But ... it ain't easy. Trying to create predictability in organic shapes...

                                        Thomas Thomassen β€” SketchUp Monkey & Coding addict
                                        List of my plugins and link to the CookieWare fund

                                        1 Reply Last reply Reply Quote 0
                                        • P Offline
                                          Pixero
                                          last edited by 22 Dec 2009, 12:35

                                          To me it look like it's the direction of the second longest side in the triangles.
                                          (Not the hypothenuse)

                                          1 Reply Last reply Reply Quote 0
                                          • 1
                                          • 2
                                          • 3
                                          • 4
                                          • 5
                                          • 6
                                          • 7
                                          • 18
                                          • 19
                                          • 5 / 19
                                          5 / 19
                                          • First post
                                            95/377
                                            Last post
                                          Buy SketchPlus
                                          Buy SUbD
                                          Buy WrapR
                                          Buy eBook
                                          Buy Modelur
                                          Buy Vertex Tools
                                          Buy SketchCuisine
                                          Buy FormFonts

                                          Advertisement