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

    [Plugin] Mirror UV Mapping (1.0.3)

    Scheduled Pinned Locked Moved Plugins
    35 Posts 17 Posters 31.3k Views 17 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.
    • thomthomT Offline
      thomthom
      last edited by thomthom

      Obsolete
      The functionality of this plugin has been merged with UV Toolkit


      The background for this plugin is that I got a large collection of X-Frog trees. When imported into SketchUp the backface texture is messed up.

      BillW was nice enough to provide a code snippet that copied the texture and UV mapping from one side to the other. http://www.sketchucation.com/forums/scf/viewtopic.php?f=180&t=13083&st=0&sk=t&sd=a&start=15#p110957

      I just wrapped it up into two function to allow frontface to backface and backface to front face and made it crawl into nested groups/components.

      It's also much faster that I expected. With a test tree of 82K faces and 132K edges it took about 2 minutes with SU6 and about 30 seconds with SU7.

      Update:
      Version 1.0.1

      • Moved functions into module
      • Rearranged the menus
      • Accounted for faces with tree vertices

      Version 1.0.2

      • Fixed some typo in the code

      Version 1.0.3

      • Now transfer plain colour material

      For some reason the script throws an exception on some occasions with faces with tree vertices. I don't understand why. Nor do I see any effect of it in the model. But I've worked around it by adding an exception handler. If anyone can shed some light to why it throws an exception some times I'd be grateful.

      EU32-1.jpg
      Full Size

      EU32-2.jpg
      Full Size


      Obsolete
      The functionality of this plugin has been merged with UV Toolkit

      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
        tomasz
        last edited by

        Thanks Thomas πŸ˜„ How SU handle several X-frog trees in a model? Does it slow down the whole thing a lot (probably no edges displayed).

        Tomasz

        Author of [Thea Render for SketchUp](http://www.thearender.com/sketchup)

        1 Reply Last reply Reply Quote 0
        • thomthomT Offline
          thomthom
          last edited by

          You want to disable edges and transparency. And maybe even turn off textures. Basically the very last thing you add to the scene before you render.

          Use 3D trees for the foreground and use the billboards for the background..

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

          1 Reply Last reply Reply Quote 0
          • B Offline
            bianhai
            last edited by

            Thanks Thomas ! πŸ‘

            1 Reply Last reply Reply Quote 0
            • S Offline
              silver_shadow
              last edited by

              free agent would be sooooooooo happy. β˜€

              1 Reply Last reply Reply Quote 0
              • free agentF Offline
                free agent
                last edited by

                ...and he is πŸ’š

                http:i167.photobucket.comalbumsu143FreeAgent84bug.gif

                1 Reply Last reply Reply Quote 0
                • D Offline
                  davide.skp
                  last edited by

                  tom, I test billW code and your too but still some problem...

                  301 Moved Permanently

                  favicon

                  (www.sketchucation.com)

                  I whant to create a library of very light 3d trees made with tree [d] and gile [s]

                  can you help me ....

                  1 Reply Last reply Reply Quote 0
                  • free agentF Offline
                    free agent
                    last edited by

                    Quote: I've discovered that it doesn't handle faces with less than three points. When importing X-Frog trees the leaf tends to be split in half forming two triangles. So until I've corrected this, make sure you enable Merge Coplanar Faces in the Import Options

                    do you mean four points? u cant get a face with 2 points

                    http:i167.photobucket.comalbumsu143FreeAgent84bug.gif

                    1 Reply Last reply Reply Quote 0
                    • thomthomT Offline
                      thomthom
                      last edited by

                      Ah, you discovered my cunning test to see if anyone actually read this stuff! ...erh.. yea.. that's what I meant. less than four points.

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

                      1 Reply Last reply Reply Quote 0
                      • free agentF Offline
                        free agent
                        last edited by

                        😎 no worries thom just keeping you on ur toes

                        http:i167.photobucket.comalbumsu143FreeAgent84bug.gif

                        1 Reply Last reply Reply Quote 0
                        • thomthomT Offline
                          thomthom
                          last edited by

                          Updated so it transfers plain colour materials as well.

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

                          1 Reply Last reply Reply Quote 0
                          • MALAISEM Offline
                            MALAISE
                            last edited by

                            Thanks Thomthom

                            MALAISE πŸ˜„

                            La Connaissance n'a de valeur que partagΓ©e

                            1 Reply Last reply Reply Quote 0
                            • Chris FullmerC Offline
                              Chris Fullmer
                              last edited by

                              Great Thom, very cool!

                              Chris

                              Lately you've been tan, suspicious for the winter.
                              All my Plugins I've written

                              1 Reply Last reply Reply Quote 0
                              • I Offline
                                ideas_arte
                                last edited by

                                @davide.skp said:

                                I whant to create a library of very light 3d trees made with tree [d] and gile [s]

                                can you help me ....

                                YES..! I WANT TO PARTICIPATE, INCLUDES TO ME I have many Xfrog

                                Thank you very much thomthom for plugin,

                                1 Reply Last reply Reply Quote 0
                                • soloS Offline
                                  solo
                                  last edited by

                                  Someone mention ex frog?

                                  http://www.ruffordsmallgrants.org/files/rana muerta.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
                                  • thomthomT Offline
                                    thomthom
                                    last edited by

                                    Errrhh... 🀒

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

                                    1 Reply Last reply Reply Quote 0
                                    • D Offline
                                      davide.skp
                                      last edited by

                                      IvÑn, for now i'm playng with tree[d] and Hothouse 3d... this one, hothouse, seems very very good!!! ... I try xfrog but ... too expensive ((and complexxx) for me 😞 ...
                                      so, TRY HotHouse ...
                                      A) create your plant with hothouse
                                      B) for a light model create some billboard ... from a photo or directly from HotHouse
                                      C) import directly in sk
                                      d) With the WONNDERRFULLL ThoMThom'plugin Mirror the uv map...
                                      very very funny!!!

                                      1 Reply Last reply Reply Quote 0
                                      • I Offline
                                        ideas_arte
                                        last edited by

                                        @davide.skp said:

                                        IvÑn, for now i'm playng with tree[d] and Hothouse 3d... this one, hothouse, seems very very good!!! ... I try xfrog but ... too expensive ((and complexxx) for me 😞 ...
                                        so, TRY HotHouse ...
                                        A) create your plant with hothouse
                                        B) for a light model create some billboard ... from a photo or directly from HotHouse
                                        C) import directly in sk
                                        d) With the WONNDERRFULLL ThoMThom'plugin Mirror the uv map...
                                        very very funny!!!

                                        Thank you very much..! to share this info, πŸ˜„ I will try to make some little pines πŸ’š

                                        Take care πŸ‘

                                        1 Reply Last reply Reply Quote 0
                                        • free agentF Offline
                                          free agent
                                          last edited by

                                          thomthom have u looked into the texture mirroring to the backfaces of triangles? is it possible?

                                          http:i167.photobucket.comalbumsu143FreeAgent84bug.gif

                                          1 Reply Last reply Reply Quote 0
                                          • thomthomT Offline
                                            thomthom
                                            last edited by

                                            It doesn't mirror triangles?

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

                                            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