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

    SketchUp::Image transforms

    Scheduled Pinned Locked Moved Developers' Forum
    8 Posts 2 Posters 356 Views 2 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.
    • AdamBA Offline
      AdamB
      last edited by

      Anyone had any success extracting the local transform for a SketchUp::Image?

      Developer of LightUp Click for website

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

        http://forums.sketchucation.com/viewtopic.php?f=180&t=21869

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

        1 Reply Last reply Reply Quote 0
        • AdamBA Offline
          AdamB
          last edited by

          Whoa. Great catch Alex - its the Vector3d#axes method I was missing.

          Be great to have the code behind the method (pretty please?) - the problem is that while you can generate orthogonal vectors from a normal easily enough, there is some ambiguity regarding orientation; this method obviously captures how Google chose to resolve it - but be good to know what rule they chose.

          LightUp too can now handle Images - they're great for adding surface details to models. Water stains, scratches, rubbish etc.

          [And thankyou Thomthom for the link.]

          Adam

          Developer of LightUp Click for website

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

            I wonder why Image elements don't have a regular transformation property but instead expose a separate set of methods.

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

            1 Reply Last reply Reply Quote 0
            • AdamBA Offline
              AdamB
              last edited by

              BTW Using decals in SketchUp is pretty cool:

              http://i614.photobucket.com/albums/tt229/ElektraGlide/SUImage-test_lightup.jpg

              Developer of LightUp Click for website

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

                How do you deal with images glued to faces like that?
                Is the actual Image transformation slightly offset the faces, or is that something SU only does internally to avoid Z-Fighting?
                How are you avoiding Z-Fighting?

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

                1 Reply Last reply Reply Quote 0
                • AdamBA Offline
                  AdamB
                  last edited by

                  LightUp processes the SketchUp::Image objects and marks their material with some internal flags which changes how they're handled to ensure you don't get z-fighting. Basically uses the machinery in LightUp that is there anyway to handle transparency etc.

                  Developer of LightUp Click for website

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

                    I do like that approach though. Using Images for advanced material compositing.

                    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