sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    Make unique texture for some faces at the same time

    Scheduled Pinned Locked Moved Newbie Forum
    sketchup
    12 Posts 5 Posters 567 Views 5 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.
    • cottyC Offline
      cotty
      last edited by

      Here is an example: the left picture shows the windows before and the right after "make unique texture" for the faces of the window and the wall. (rendered with Indigo Renderer)

      example render

      Cotty

      my SketchUp gallery

      1 Reply Last reply Reply Quote 0
      • GaieusG Offline
        Gaieus
        last edited by

        @unknownuser said:

        What do you mean by "wrong" faces? ...

        Using photos for texturing often involves "skewing" them (also PhotoMatch skews the images onto the faces). Most rendering applications cannot tolerate this and they distort the image "back" - which is of course bad looking. Making the texture unique helps with this issue since it will make a new, rectangular texture whose corners are correctly positioned without skewing. Making lots of textures unique on lots of faces can however be laborious.

        Cotty: sorry but I know no plugin that would do this although I can imagine that one could be written.

        Gai...

        1 Reply Last reply Reply Quote 0
        • Dave RD Offline
          Dave R
          last edited by

          Try choosing the new texture and then, when applying it to a face, hold Ctrl. That will replace the existing material with the new one on all surfaces in the context in which you are working.

          Etaoin Shrdlu

          %

          (THERE'S NO PLACE LIKE)

          G28 X0.0 Y0.0 Z0.0

          M30

          %

          1 Reply Last reply Reply Quote 0
          • cottyC Offline
            cotty
            last edited by

            @dave r said:

            That will replace the existing material with the new one on all surfaces in the context in which you are working.

            I think this will not help with this problem because every face has its own material and I have to make them unique one after another. Or do someone know a plugin which do this for every face in the model?

            I have attached a render of the edited model, the original one can be found in the 3D warehouse here:
            http://sketchup.google.com/3dwarehouse/details?mid=ec48731154d046f6ec9203a885ed4d24


            render example

            my SketchUp gallery

            1 Reply Last reply Reply Quote 0
            • GaieusG Offline
              Gaieus
              last edited by

              I think you misunderstood, Dave. That would be repainting - which he doesn't want to do.

              Gai...

              1 Reply Last reply Reply Quote 0
              • Dave RD Offline
                Dave R
                last edited by

                I did misunderstand. Sorry. I guess as Gai says, you'll have to do it for each material image.

                Etaoin Shrdlu

                %

                (THERE'S NO PLACE LIKE)

                G28 X0.0 Y0.0 Z0.0

                M30

                %

                1 Reply Last reply Reply Quote 0
                • A Offline
                  Aerilius
                  last edited by

                  There is unfortunately no special API method for making textures unique (otherwise it would be a one-liner), but with some workarounds, it's possible.
                  I've been working on a plugin with similar things like Make Unique (but requires other software). So it is a funny coincidence and I thought I just put together a simple stand-alone version that does exactly what you need.

                  The work-around can only make distorted textures unique that have a "projective" distortion (that is not necessarily identical with SketchUp's "projected" feature, but most times). This is what some exporters have problems with, so this script should help.


                  Makes all selected projectively distorted textures unique (projective in the sense that parallel lines aren't parallel).

                  1 Reply Last reply Reply Quote 0
                  • GaieusG Offline
                    Gaieus
                    last edited by

                    Great, thanks! πŸ‘

                    Will you however post it "properly" under the Plugins forum, Aerilius, please?
                    You know that it will soon sink to oblivion here... πŸ˜’

                    Gai...

                    1 Reply Last reply Reply Quote 0
                    • cottyC Offline
                      cotty
                      last edited by

                      @aerilius said:

                      ... API method for making textures unique ...

                      That was my first thought and because I never tried to program my own ruby scripts, I decided to take this example as a start...
                      After one evening watching ruby-tutorials I searched in the documentation for a method,... to make unique textures and ... gave up. 😞
                      So my ruby entry have to wait and I will try your script. Thank you for sharing!

                      my SketchUp gallery

                      1 Reply Last reply Reply Quote 0
                      • cottyC Offline
                        cotty
                        last edited by

                        I have not tried yet, but the plugin http://forums.sketchucation.com/viewtopic.php?t=41441 (by Aerilius) seems to solve this problem?!
                        Cotty

                        my SketchUp gallery

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

                        Advertisement