HISE Logo Forum
    • Categories
    • Register
    • Login

    g.dropShadowFromPath got funky on macOS between May 30 and July 02

    Scheduled Pinned Locked Moved Bug Reports
    9 Posts 5 Posters 82 Views
    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.
    • A
      aaronventure
      last edited by

      There was a whole month of broken macOS commits, and the first one that compiled is cac7a45f4cd70a2f0ad96771ea8df1c10bfd2de7 from July 02.

      However this broke dropShadowFromPath for my PaintRoutined custom keyboard and I can't figure out why. It also looks like this on the latest commit.

      Like the path is a tiny dot or something.

      508c67be-4d03-4cb1-b6a6-0d57efe7539b-image.png

      The last one that has it working correctly is the last working macOS commit before that, on May 30.
      a20873ea7a8c00b251ddae7df8d6e3007f8c5f71

      This is what it should look like
      c93005bf-5afa-45e3-8560-fca4775eec50-image.png

      @Christoph-Hart Any idea what could've broken it?

      ustkU d.healeyD 2 Replies Last reply Reply Quote 0
      • ustkU
        ustk @aaronventure
        last edited by ustk

        @aaronventure Yeah noticed the same, I needed to replace the area that was taking the object bounds with the path bounds in the whole project:

        Screenshot 2025-08-13 at 22.49.50.png

        When was the Rectangle API introduced? Might come from this...

        Hise made me an F5 dude, browser just suffers...

        1 Reply Last reply Reply Quote 1
        • d.healeyD
          d.healey @aaronventure
          last edited by

          @aaronventure That's a damn fine keyboard.

          Libre Wave - Freedom respecting instruments and effects
          My Patreon - HISE tutorials
          YouTube Channel - Public HISE tutorials

          A 1 Reply Last reply Reply Quote 1
          • A
            aaronventure @d.healey
            last edited by

            @ustk said in g.dropShadowFromPath got funky on macOS between May 30 and July 02:

            @aaronventure Yeah noticed the same, I needed to replace the area that was taking the object bounds with the path bounds in the whole project:

            Screenshot 2025-08-13 at 22.49.50.png

            When was the Rectangle API introduced? Might come from this...

            I can't make any sense of this, I didn't use getLocalBounds, I use calculated dimensions based on keyboard parameters... How are you getting the correct positions for the shadow?

            @d-healey Thanks! It's even got conditional shadows!

            7be30570-d939-41d2-a725-bd21425de146-image.png

            It's also fully configurable!
            15a38210-24f5-4ddc-90fd-e3e0ca479862-image.png

            This was my "alright, let's get a full hang of this Paint Routine stuff" moment when I was learning HISE. I think it took me a better part of a week.

            92649984-1936-4700-ac1a-00aed0d155d9-image.png

            With a bit softer shadows
            d8318521-4839-4c9c-8eff-72d4846e5723-image.png

            ChazroxC ustkU 2 Replies Last reply Reply Quote 4
            • ChazroxC
              Chazrox @aaronventure
              last edited by

              @aaronventure NICE!

              1 Reply Last reply Reply Quote 0
              • ustkU
                ustk @aaronventure
                last edited by

                @aaronventure said in g.dropShadowFromPath got funky on macOS between May 30 and July 02:

                I can't make any sense of this, I didn't use getLocalBounds, I use calculated dimensions based on keyboard parameters... How are you getting the correct positions for the shadow?

                Since the path is made at the right dimension, its bounds are just the area I need.
                Effectively it doesn't make any sense because in the end the area is the same as the previous one. I think the issue comes from a conversion behind the scene, but why... 馃し

                Hise made me an F5 dude, browser just suffers...

                Christoph HartC 1 Reply Last reply Reply Quote 0
                • Christoph HartC
                  Christoph Hart @ustk
                  last edited by

                  Yeah it might be caused by the change to melatonin shadow rendering I did around that time.

                  I might have introduced a silly mistake though:

                  If you change this line:

                  Link Preview Image
                  HISE/hi_scripting/scripting/api/ScriptDrawActions.cpp at cdb23d4c24e93ef487127f125742a6443d4e76a2 路 christophhart/HISE

                  The open source framework for sample based instruments - HISE/hi_scripting/scripting/api/ScriptDrawActions.cpp at cdb23d4c24e93ef487127f125742a6443d4e76a2 路 christophhart/HISE

                  favicon

                  GitHub (github.com)

                  to

                  p.scaleToFit(a.getX(), a.getY(), a.getWidth(), a.getHeight(), false);
                  

                  Does that fix the problem?

                  ustkU A 2 Replies Last reply Reply Quote 1
                  • ustkU
                    ustk @Christoph Hart
                    last edited by

                    @Christoph-Hart said in g.dropShadowFromPath got funky on macOS between May 30 and July 02:

                    p.scaleToFit(a.getX(), a.getY(), a.getWidth(), a.getHeight(), false);

                    Confirmed, that's the one 馃憤

                    Hise made me an F5 dude, browser just suffers...

                    1 Reply Last reply Reply Quote 0
                    • A
                      aaronventure @Christoph Hart
                      last edited by

                      @Christoph-Hart That it, thanks.

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post

                      20

                      Online

                      1.9k

                      Users

                      12.3k

                      Topics

                      107.0k

                      Posts