• Login
sketchucation logo sketchucation
  • Login
ℹ️ GoFundMe | Our friend Gus Robatto needs some help in a challenging time Learn More

[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.
  • T Offline
    thomthom
    last edited by 14 Nov 2009, 15:22

    Did some experimenting today.
    Came up with a method that would texture selected quad-faces using a curve as a quide.

    At the moment it requires strips of quad-faces, and the guide has to be a welded curve. But before I release it I want to make it so it doesn't require the edges to be welded.

    Then, after the first release I'll see if I can extend it beyond being just strips of quad-faces. Maybe even make it texture triangulated quads.

    Anyway - here's the WIP shots. Whatcha think Gaieus? Something for you? πŸ˜„


    UVMapping01.png


    UVMapping02.png

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

    1 Reply Last reply Reply Quote 0
    • N Offline
      notareal
      last edited by 14 Nov 2009, 15:36

      Looks good!

      Welcome to try [Thea Render](http://www.thearender.com/), Thea support | [kerkythea.net](http://www.kerkythea.net/) -team member

      1 Reply Last reply Reply Quote 0
      • J Offline
        jeff hammond
        last edited by 14 Nov 2009, 16:02

        whoa, that's definitely something i'll be able to use.. (and this is heading into the direction of the type of UV functionality i'd actually need in SU)

        in this example, it looks like it would work great along the top area as it's flat.. what about the curved areas near the bottom? (i drew this with a lot less segments for representational purposes.. an actually drawing would still be all quads though each one would be much smaller)


        uvquestion.jpg

        dotdotdot

        1 Reply Last reply Reply Quote 0
        • T Offline
          thomthom
          last edited by 14 Nov 2009, 16:24

          As it is in it current state you'd have to select each row by it self. Your top row is no different from the lower ones except it got larger faces.
          But I hope to be able to make it cascade through connected rows, but it'd still have to be quad-faces. Quad-faces are just so much more predictable.

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

          1 Reply Last reply Reply Quote 0
          • J Offline
            jeff hammond
            last edited by 14 Nov 2009, 16:36

            @thomthom said:

            As it is in it current state you'd have to select each row by it self. Your top row is no different from the lower ones except it got larger faces.
            But I hope to be able to make it cascade through connected rows, but it'd still have to be quad-faces. Quad-faces are just so much more predictable.

            right, i realize that each row is the same.. i'm just wondering if everything will line up through those bends?

            right now in SU, i can get basically two results:
            UVing2.jpg

            on the left if i just import and paint it on.. the right if i turn on hidden geometry and sample/paint each quad.. i'm really hoping for something more like the middle but not necessarily on a sphere. (that's done with whaat's UVtools)

            are you thinking you may have come up with a way to do this?

            [EDIT] -- ouch.. and i just remembered if i want to render that sphere in indigo and have it turn out correctly, i have to triangulate the faces first. i'm wondering what would happen with these quads that aren't part of a sphere.

            dotdotdot

            1 Reply Last reply Reply Quote 0
            • T Offline
              thomthom
              last edited by 14 Nov 2009, 17:11

              @unknownuser said:

              are you thinking you may have come up with a way to do this?

              Like this?
              UVMapping03.png

              @unknownuser said:

              [EDIT] -- ouch.. and i just remembered if i want to render that sphere in indigo and have it turn out correctly, i have to triangulate the faces first. i'm wondering what would happen with these quads that aren't part of a sphere.

              Could you triangulate after mapping?
              I think I should be able to deal with triangulated quads - but it won't be the first to be implemented.

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

              1 Reply Last reply Reply Quote 0
              • E Offline
                EscapeArtist
                last edited by 14 Nov 2009, 17:18

                Oh man, this made texturing some of the stuff I do so much easier.

                Thank you! πŸ‘ 😍

                1 Reply Last reply Reply Quote 0
                • J Offline
                  jeff hammond
                  last edited by 14 Nov 2009, 17:38

                  @thomthom said:

                  Like this?

                  ha, yes.. exactly like that

                  @unknownuser said:

                  Could you triangulate after mapping?
                  I think I should be able to deal with triangulated quads - but it won't be the first to be implemented.

                  actually, yes.. i just tried it but i have to triangulate manually after mapping.. previously, i tried using the triangulateFaces ruby by TIG but it screws up the mapping if i do it afterwards.. i just assumed doing it manually would create the same problem but no, it works.

                  dotdotdot

                  1 Reply Last reply Reply Quote 0
                  • Y Offline
                    ygcl
                    last edited by 15 Nov 2009, 09:44

                    @frederik said:

                    Thanks,
                    @unknownuser said:

                    πŸ‘

                    1 Reply Last reply Reply Quote 0
                    • GaieusG Offline
                      Gaieus
                      last edited by 15 Nov 2009, 13:38

                      Thom, great stuff so far! In my basilica, there was an arch in which there was literally hundreds of bricks. Even with the UV toolkit, it needed a lot of manual "quading" of the faces. 😲
                      (and there were like 7 different sizes so you can imagine that day I was making them). πŸ˜†

                      Gai...

                      1 Reply Last reply Reply Quote 0
                      • majidM Offline
                        majid
                        last edited by 18 Nov 2009, 20:09

                        maybe adding a "goust preview" of how plugin is going to UVmap (i.e. showing a sphere when choosing shepherical...etc) could improve the ui!!


                        Untitled-1.jpg

                        My inspiring A, B, Sketches book: https://sketchucation.com/shop/books/intermediate/2612-alphabet-inspired-sketches--inspiring-drills-for-architects--3d-artists-and-designers-

                        1 Reply Last reply Reply Quote 0
                        • T Offline
                          thomthom
                          last edited by 18 Nov 2009, 20:52

                          @majid said:

                          maybe adding a "goust preview" of how plugin is going to UVmap (i.e. showing a sphere when choosing shepherical...etc) could improve the ui!!

                          mm? I got no spherical mapping option.

                          As for the mapping types I do have, I don't have any API to draw texture previews.

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

                          1 Reply Last reply Reply Quote 0
                          • PixeroP Offline
                            Pixero
                            last edited by 29 Nov 2009, 06:35

                            Just wanted to say thanks. I've had this plugin for a while but recently it saved me when doing some remapping of leaves on a highres tree. πŸ‘
                            Looking forward to the next version.

                            1 Reply Last reply Reply Quote 0
                            • J Offline
                              Jim
                              last edited by 29 Nov 2009, 18:18

                              Is this correct, or am I using it wrong? I applied the material, selected the face, and selected "Rotate QF Clockwise 90" from the menu.


                              093.png

                              Hi

                              1 Reply Last reply Reply Quote 0
                              • T Offline
                                thomthom
                                last edited by 29 Nov 2009, 19:18

                                I think it's doing it correct. As it rotates the orientation of the texture it stretch the texture to fit the quad-face.

                                For normal texture rotation you use the rotate methods from the native Position Texture tool.

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

                                1 Reply Last reply Reply Quote 0
                                • J Offline
                                  Jim
                                  last edited by 29 Nov 2009, 19:44

                                  Ok Thanks, I was just thinking about a quick shortcut to rotate a texture 90 degrees (no stretching.)

                                  Hi

                                  1 Reply Last reply Reply Quote 0
                                  • T Offline
                                    thomthom
                                    last edited by 29 Nov 2009, 19:54

                                    To add a hotkey to?

                                    Since SU already has a rotate method I haven't made one myself.
                                    uvrotate.PNG

                                    But you can't assign a hotkey to it. That is one reason why I have considered recreating my own function. But it haven't been high up on the list.

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

                                    1 Reply Last reply Reply Quote 0
                                    • J Offline
                                      Jim
                                      last edited by 29 Nov 2009, 20:10

                                      Looking at your UV Tools, you are shifting the positions of points in 2 arrays. Is it as simple using a rotation on the arrays (around face.normal at face.bounds.center, maybe) instead of shifting? I'll try that.

                                      Hi

                                      1 Reply Last reply Reply Quote 0
                                      • T Offline
                                        thomthom
                                        last edited by 29 Nov 2009, 20:15

                                        I don't quite remember what I did. But what I do is somewhat special for quad-faces with textures stretched to fit.
                                        Think you need some different handling for a general rotate method...

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

                                        1 Reply Last reply Reply Quote 0
                                        • J Offline
                                          Jim
                                          last edited by 29 Nov 2009, 20:37

                                          It works for square textures (where the image is square) but distorts rectangular ones.

                                          Hi

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

                                          Advertisement