• 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
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 31 May 2008, 19:18

    Hi all,

    I was wondering if it would be possible to use an adapted version of the unfold.rb to do some advanced texturing.

    The unfold ruby basically unfolds an object to a 2D surface.
    Now if we could project our texture (which we edit in Pshop ) to that unfolded 2D geometry, then fold it back to the original form with preservation of textures, we have ourselves an advanced UV-mapping tool ('uv-wrapping'), a feature only the dinosaur apps currently have.

    I would use it to texture free forms or any other form where the traditional projected texture method fails.

    For really complex shapes, a ruby like that probably is way too memory 'expensive', but I can see it work for low to medium poly objects.

    What do you guys think about this? Is this 'code-able'?

    Regards,
    Kwistenbiebel

    1 Reply Last reply Reply Quote 0
    • S Offline
      ScottPara
      last edited by 1 Jun 2008, 00:00

      Excellent idea. I also would love to see this done. I have to say, I have used the unfold script. Obviously you can unfold and object but can you also refold it too?

      Scott

      Love the fact that some HATE my avatar.....

      1 Reply Last reply Reply Quote 0
      • R Offline
        remus
        last edited by 1 Jun 2008, 06:12

        Good point scott, i imagine it would have to be part of the script if you wanted to do it accurately.

        http://remusrendering.wordpress.com/

        1 Reply Last reply Reply Quote 0
        • K Offline
          kwistenbiebel
          last edited by 1 Jun 2008, 09:43

          something like this:
          Texture creation in Pshop, apply textures on flat 2D and fold back to the original.

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

          1 Reply Last reply Reply Quote 0
          • U Offline
            urgen
            last edited by 1 Jun 2008, 11:43

            ...good idea πŸ‘ ...I am assured that it is possible πŸŽ‰ πŸ˜„

            --pupil forever...------

            1 Reply Last reply Reply Quote 0
            • H Offline
              howardhong
              last edited by 1 Jun 2008, 13:39

              heres sample

              http://i241.photobucket.com/albums/ff294/howardhong/Apple.jpg

              http://archive3d.net/?a=download&id=10214

              Error 404 (Not Found)!!1

              favicon

              (sketchup.google.com)

              http://i241.photobucket.com/albums/ff294/howardhong/apple_su.png

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

                Howardhong,
                Those look like imports from another app.
                I doubt the texturing of the apple is done in SU. Or is it?

                1 Reply Last reply Reply Quote 0
                • J Offline
                  juju
                  last edited by 1 Jun 2008, 17:34

                  The ZIP is supplied with the model in two formats: 3DS and what I think is for ArchiCAD.

                  Save the Earth, it's the only planet with chocolate.

                  1 Reply Last reply Reply Quote 0
                  • L Offline
                    lewiswadsworth
                    last edited by 1 Jun 2008, 18:25

                    Blender has the capability you are requesting, KB. Neatest part is where you can actually use painting tools on the unfolded map and then see them applied in the rendered viewport.

                    I haven't used it in a while, but now that I've been given a little project with a certain degree carte blanche I was planning on testing all kinds of integrations with SU, Blender, and more obscure programs.

                    col sporcar si trova

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

                      Blender is such a pain. 😳
                      I would love to be able to do things in SU as much as possible.

                      1 Reply Last reply Reply Quote 0
                      • L Offline
                        lewiswadsworth
                        last edited by 1 Jun 2008, 20:16

                        @kwistenbiebel said:

                        Blender is such a pain.

                        Yes, it is.

                        And without a doubt, if you folks ever get your wish for a multi-processing, high-polygon-capable, NURBS-capable, IK-capable, super-dooper-Krytonite-resistant SU, it will also be a pain.

                        col sporcar si trova

                        1 Reply Last reply Reply Quote 0
                        • R Offline
                          remus
                          last edited by 1 Jun 2008, 20:40

                          better not mention that kryptonite resistance thing too loudly lewis, might get people speculating again...

                          http://remusrendering.wordpress.com/

                          1 Reply Last reply Reply Quote 0
                          • K Offline
                            kwistenbiebel
                            last edited by 1 Jun 2008, 21:06

                            @Lewiswadsworth,
                            It's just a wish Lewis...just a wish. πŸ˜‰

                            I tried Blender, and yes it made me feel as if I miss some million brain cells to get control over it. (or a million spare hours to learn it).

                            Sketchup has a tradition of making otherwise difficult 3D tasks a whole lot easier.
                            So why wouldn't it be capable of making a complex thing like texturing easy?

                            1 Reply Last reply Reply Quote 0
                            • H Offline
                              howardhong
                              last edited by 2 Jun 2008, 03:44

                              uv mapping coordination of .3ds model is reserved when imported to SU.

                              so i think it can be done by ruby script like other program used to do.

                              we all see the impossible things be done with script like ffd or subsmooth.

                              im expectintig somebody can make that kind of script.

                              1 Reply Last reply Reply Quote 0
                              • soloS Offline
                                solo
                                last edited by 2 Jun 2008, 04:05

                                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?

                                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, 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
                                  • RichardR 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
                                          • 1
                                          • 2
                                          • 3
                                          • 4
                                          • 1 / 4
                                          1 / 4
                                          • First post
                                            1/61
                                            Last post
                                          Buy SketchPlus
                                          Buy SUbD
                                          Buy WrapR
                                          Buy eBook
                                          Buy Modelur
                                          Buy Vertex Tools
                                          Buy SketchCuisine
                                          Buy FormFonts

                                          Advertisement