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

Unfold.rb script: useful for UV-mapping?

Scheduled Pinned Locked Moved Developers' Forum
61 Posts 23 Posters 14.6k Views 23 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.
  • K Offline
    kwistenbiebel
    last edited by 2 Jun 2008, 04:54

    @solo said:

    This is an interesting thread, so in a nutshell what you are saying Chris is that say for instance the apple above, you first create the mesh then 'unwrap' it. You then export the 2d unwrapped image to an editor like Photoshop and you create the texture, the completed texture is then imported back into SU and applied to flattened mesh and then when folded the texture is perfectly mapped?

    Exactly, that's the idea.

    1 Reply Last reply Reply Quote 0
    • R Offline
      Richard
      last edited by 2 Jun 2008, 05:21

      Beibel

      Mate yourn the money again! I thought about this the other day, even for simple models like context buildings or for examples like your idea for baked textures from podium. A simple form could be built and textured in SU - unwrapped - image edited to add details such as windows, doors etc and then rewapped to include the added details. Or when modelling with photomatch the unwrapped image could be edited easily to take out detail such as plants etc in the photo as needed to clean up the model.

      Seems to me like a must for direct integration of SU for google with regards to google earth purposes!

      I must say this really drives home the general need for better mapping functions in SU like spherical mapping!

      [BUILTBRAND.COM.AU](http://builtbrand.com.au/)

      1 Reply Last reply Reply Quote 0
      • K Offline
        kwistenbiebel
        last edited by 2 Jun 2008, 05:26

        @richard said:

        Seems to me like a must for direct integration of SU for google with regards to google earth purposes!

        Just mention Google earth some times more on the forum....maybe that wakes up the G-SU team πŸ˜„

        1 Reply Last reply Reply Quote 0
        • H Offline
          HFM
          last edited by 2 Jun 2008, 07:16

          I Must say this idea is briliant, but instead of folding it back together why not try to make it like components? Unfold one, aplie texture and see the effect directly on another...

          Would be awesome and very usefull!

          1 Reply Last reply Reply Quote 0
          • K Offline
            kwistenbiebel
            last edited by 2 Jun 2008, 07:34

            Oh yes HFM,
            Wonderful idea.
            That way it would work like Whaat's subsmooth where you work on the proxy and the subsurface gets updated automatically.

            1 Reply Last reply Reply Quote 0
            • G Offline
              Gaieus
              last edited by 2 Jun 2008, 07:44

              Too big silence from Jim's side IMO. I guess he is already thinking on it! πŸ˜„

              Gai...

              1 Reply Last reply Reply Quote 0
              • S Offline
                sepo
                last edited by 2 Jun 2008, 08:39

                It could be mighty useful script.

                1 Reply Last reply Reply Quote 0
                • P Offline
                  plot-paris
                  last edited by 2 Jun 2008, 12:58

                  what I truly would love to see is the possibility to add (and delete) pins to get an extended amount of control over the distortion of a texture (should of course work on curved surfaces too).

                  multi_pins.jpg
                  I think this idea was mentioned already somewhere in the forum.

                  the workflow of unfolding a shape to texture it could work almost like adjusting a texture today in SketchUp:

                  you right click the object and choose "Texture > 2D Mapping" - then you get an unfolded version of the shape (while you still see a pale version of the original geometry- like the rest of a model is shown when you edit a component) with the texture projected on it. now you use the pins (or even add some... πŸ˜‰ ) to position the image. then you hit "Enter" to confirm.

                  now that would be an incredibly easy but nevertheless flexible way of mapping textures! 😍

                  1 Reply Last reply Reply Quote 0
                  • K Offline
                    kwistenbiebel
                    last edited by 2 Jun 2008, 15:12

                    πŸ‘ Plot Paris.
                    Your method with the pins would be simple and very effective.
                    Very Sketchup-like.

                    1 Reply Last reply Reply Quote 0
                    • S Offline
                      solo
                      last edited by 2 Jun 2008, 16:10

                      I have downloaded the unfold .rb and it unfolds as expected, how does on refold back to original shape after that?

                      Is there anyway it can auto unfold and refold?

                      http://www.solos-art.com

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

                      1 Reply Last reply Reply Quote 0
                      • S Offline
                        solo
                        last edited by 2 Jun 2008, 17:12

                        This is how i would imagine it to work.


                        http://img136.imageshack.us/img136/971/uvmappingmm8.jpg


                        ivyball.skp

                        http://www.solos-art.com

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

                        1 Reply Last reply Reply Quote 0
                        • W Offline
                          Whaat
                          last edited by 2 Jun 2008, 18:12

                          I think this can be done. I was meaning to ask Jim about this myself but you beat me to it, biebel!

                          Jim,

                          Manipulating uvs with the SketchUp API is very finicky. I gained a fair bit of experience with it when I implemented multiple UV sets in SkIndigo. I would be happy to help you out with this.

                          SketchUp Plugins for Professionals

                          1 Reply Last reply Reply Quote 0
                          • S Offline
                            solo
                            last edited by 2 Jun 2008, 18:17

                            😍

                            I smell a solution on the horizon!!

                            http://www.solos-art.com

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

                            1 Reply Last reply Reply Quote 0
                            • K Offline
                              kwistenbiebel
                              last edited by 2 Jun 2008, 19:08

                              Cool!
                              By the way, I think Plot-Paris' suggestion about 'pin control' on 3D surfaces (just like we now have on 2D) is really worth investigating as well.

                              It's by far the simplest concept, and no need to go to Photoshop.
                              I can imagine e.g having a sphere (or any other freeform), assigning a texture to it and moving pins around the spherical surface to 'correct' the distortions of the texture until it looks good. Than hit 'bake texture' (or just 'apply') and the new UV's are in place.
                              Just like it works now on 2D surfaces.

                              http://i140.photobucket.com/albums/r3/kwistenbiebel1/multi_pins.jpg

                              Awesome!

                              1 Reply Last reply Reply Quote 0
                              • S Offline
                                solo
                                last edited by 2 Jun 2008, 19:53


                                http://img175.imageshack.us/img175/7724/concemv1.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
                                • S Offline
                                  solo
                                  last edited by 2 Jun 2008, 20:00

                                  Make a cone shape and then project the texture attached below to the cone from above view, notice it will map the shape of the cone perfectly without distortion.


                                  camo1.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
                                  • F Offline
                                    Frederik
                                    last edited by 2 Jun 2008, 20:01

                                    Oohhh... I am goosey all over... πŸ˜„
                                    This sure looks like an awesome feature..!! πŸ‘
                                    Would LOVE to have this in SU...!!!

                                    Cheers
                                    Kim Frederik

                                    1 Reply Last reply Reply Quote 0
                                    • J Offline
                                      Jim
                                      last edited by 2 Jun 2008, 20:17

                                      I have been following, but I don't know the first thing about UV mapping.

                                      @unknownuser said:

                                      http://i140.photobucket.com/albums/r3/kwistenbiebel1/SU/newuv_tb.jpg

                                      I'm not sure I understand how this image was created. I don't think it is a simple unfolding. Has there been some deformation of faces in order to close gaps?

                                      Hi

                                      1 Reply Last reply Reply Quote 0
                                      • K Offline
                                        kwistenbiebel
                                        last edited by 2 Jun 2008, 20:47

                                        That image derives from (soft) selecting parts of a 3D human body model.
                                        The different selected groups (hands, head, etc...) are unfolded on their own so for each item a different texture can be made/edited in Photoshop. So the splitting up thing is user based. The smallest parts you see are finger joints, as they need refined Pshop maps applied etc...

                                        This example off course is the most complex one, where different parts of the model get unfolded seperately.
                                        Solos sphere demonstration (see his images)or Howardshongs apple are somewhat closer to daily use in SU I guess, but the principle remains the same.

                                        The '3D Pin method' earlier described would even make it much more WYSIWYG, as you can directly see the effect of moving a pin on the 3D surface.

                                        Stuff to think about πŸ˜‰....

                                        1 Reply Last reply Reply Quote 0
                                        • R Offline
                                          Richard
                                          last edited by 3 Jun 2008, 02:59

                                          I think the two mapping techniques being discussed here are different or should be! the rewrapping versus pinned deformation!

                                          This function of wrapping and rewrapping is quite common to other modelling and texturing apps. Maybe someone with one of these could show example!

                                          [BUILTBRAND.COM.AU](http://builtbrand.com.au/)

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

                                          Advertisement