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

    Randomise textures

    Scheduled Pinned Locked Moved Developers' Forum
    6 Posts 3 Posters 611 Views 3 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.
    • CadFatherC Offline
      CadFather
      last edited by

      here's a script i finally found that randomises the position of selected textures - great idea to avoid patterning.

      my question is - is there any way to randomise the rotation as well?
      this could be useful for textures like soil, vegetation, stone, water etc

      i found the script from Didier's depot but i do not the author

      EDIT 2: watch out! when the front face has no texture assigned (even if the corresponding back face has one), the script crashes SU(7) - if i paint the front face and run the scripts it works (though the back face gets painted in the process)


      rantexpos.rb

      1 Reply Last reply Reply Quote 0
      • M Offline
        Matt666
        last edited by

        Hi CadFather !
        It's hard to rotate a texture. Specially those are not parrallel to axes.
        I try to make a script that rotate any texture, but it's difficult... 😞

        Frenglish at its best !
        My scripts

        1 Reply Last reply Reply Quote 0
        • CadFatherC Offline
          CadFather
          last edited by

          Matt, you are a gentleman, but (promise) don't waste your energy if too complicated, this thing can be addictive! πŸ˜‰

          1 Reply Last reply Reply Quote 0
          • M Offline
            Matt666
            last edited by

            πŸ˜„
            Yes, I noticed it...

            See here and here, rotate a texture is an old challenge for me πŸ˜‰

            But NewOne seems to be THE man for this ! I often ask him for texture advices in ruby. The big matter is I am crap in trigonometry... 😳 😳

            See you soon !

            Frenglish at its best !
            My scripts

            1 Reply Last reply Reply Quote 0
            • CadFatherC Offline
              CadFather
              last edited by

              ..trigonometry? what's that? πŸ˜†

              sometmes i think there should be a ruby basecamp - on mount olympus somewhere!

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

                Well, ... I just dived into SU ruby because I wanted to create a ruby that mirrored the texture from the front side of faces to the back side of faces.

                I've been digging in the docs to try to work out how to position textures. I only managed to position a texture in 2d reliably. Even then I'm not sure I'm 100% sure what's happening. I haven't managed at all to get any info from the front face UV co-ordinates that makes any sense.

                I had hoped that I'd find some good info on this forum. But seeing that the general consensus on SU Ruby texture mapping is confusion I'm now worried to what task I've let myself into.

                I'd like to try to prompt some of the SU dev team to shed some light to this matter of UV coordinates.

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

                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