sketchucation logo sketchucation
    • Login
    πŸ›£οΈ Road Profile Builder | Generate roads, curbs and pavements easily Download

    SketchUp::Image transforms

    scheduled pinned locked moved Developers' Forum
    8 Posts 2 Posters 391 Views 2 Watching
    loading-more-posts
    • oldest-to-newest
    • newest-to-oldest
    • most-votes
    reply
    • reply-as-topic
    guest-login-reply
    deleted-message
    • AdamBA Offline
      AdamB
      last edited by

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

      Developer of LightUp Click for website

      one-reply-to-this-post last-reply-time 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

        one-reply-to-this-post last-reply-time 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

          one-reply-to-this-post last-reply-time 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

            one-reply-to-this-post last-reply-time 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

              one-reply-to-this-post last-reply-time 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

                one-reply-to-this-post last-reply-time 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

                  one-reply-to-this-post last-reply-time 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

                    one-reply-to-this-post last-reply-time 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