sketchucation logo sketchucation
    • Anmelden
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    ⚠️ Important | Libfredo 15.6b introduces important bugfixes for Fredo's Extensions Update

    Where lies the bug?

    Geplant Angeheftet Gesperrt Verschoben Developers' Forum
    24 Beiträge 8 Kommentatoren 3.1k Aufrufe 8 Watching
    Lade mehr Beiträge
    • Älteste zuerst
    • Neuste zuerst
    • Meiste Stimmen
    Antworten
    • In einem neuen Thema antworten
    Anmelden zum Antworten
    Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
    • thomthomT Offline
      thomthom
      zuletzt editiert von

      @unknownuser said:

      Tom,

      Sorry to pop up in this. I may have missed something.
      Do you wish to rotate and scale individual cubes (which is what I guess), or the whole selection?

      Whole selection. In regards to the RotaScale plugin: http://forums.sketchucation.com/viewtopic.php?f=180&t=19199
      The plugin works, in SU at least - but the problem is that VfSU doesn't read the transformation of the groups/components properly. So the transformation data needs to be converted into the same as it would if you'd use native SU tools.

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

      1 Antwort Letzte Antwort Antworten Zitieren 0
      • scottliningerS Offline
        scottlininger
        zuletzt editiert von

        Thom,

        Can you filter the weirdness down to a few lines of Ruby and post? Sounds like SketchUp is using one unused cell of the transform matrix to store some scale information. I have no idea why, but there's probably a legacy reason for it.

        • Scott Lininger
          SketchUp Software Engineer
          Have you visited the Ruby API Docs?
        1 Antwort Letzte Antwort Antworten Zitieren 0
        • P Offline
          Pout
          zuletzt editiert von

          we had a similar thingie with rotation an object in AutoCAD and then exporting it to VRML.
          I see if i can get a descent answer from a developer

          1 Antwort Letzte Antwort Antworten Zitieren 0
          • thomthomT Offline
            thomthom
            zuletzt editiert von

            http://forums.sketchucation.com/download/file.php?id=28725

            In this screenshot the two cubes are of the same definition. The large one is roated 45 degrees and scaled x2.0 manually.
            .transformation.to_a returns this for the manually rotated and scaled box:
            [1.4142135623731, -1.4142135623731, 0.0, 0.0, 1.4142135623731, 1.4142135623731, 0.0, 0.0, 0.0, 0.0, 2, 0.0, -16.3076205658699, 55.6776993060274, 0.0, 1.0]

            If I then RotaScale the small box to fit the large one .transformation returns this:
            [0.707106781186548, -0.707106781186548, 0.0, 0.0, 0.707106781186548, 0.707106781186548, -0.0, 0.0, 0.0, 0.0, 1.0, 0.0, -8.15381028293495, 27.8388496530137, 0.0, 0.5]

            Every value of the RotaScaled component is half of the manually scaled and rotated component.

            In Sketchup everything looks fine. But when I render RotaScaled groups/component with V-Ray they don't match.

            http://forums.sketchucation.com/download/file.php?id=28705&t=1

            What it looks like is that the scaling transformation I make is stored scaled down in the matrix and that this is indicated in the last (15th) array value. I've reported this to ASGVis.

            Question is, is this suppose to be like this?

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

            1 Antwort Letzte Antwort Antworten Zitieren 0
            • 1
            • 2
            • 2 / 2
            • Erster Beitrag
              Letzter Beitrag
            Buy SketchPlus
            Buy SUbD
            Buy WrapR
            Buy eBook
            Buy Modelur
            Buy Vertex Tools
            Buy SketchCuisine
            Buy FormFonts

            Advertisement