HISE Logo Forum
    • Categories
    • Register
    • Login

    WebView layering

    Scheduled Pinned Locked Moved General Questions
    6 Posts 3 Posters 84 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.
    • elemen8tE
      elemen8t
      last edited by elemen8t

      Hey there,
      I wanted a webview animation that is round and not square but that won't be possible, since you can't either use alpha blending or put something on top as a mask or even something behind for the UI.

      I just want to show the round middle part on my plugin.

      That`s what the doc says about that: The Webview is a native UI handle that is placed on top of the plugin interface. This means that you can't use any alpha blending or masking and put UI elements behind / infront of it.

      Is there some way around it or do we just take the fact that It's that limited in terms of GUI integration if not your whole GUI is made in the webview?

      (The alternative option would be glsl which allows these things but has many other issues to debug it for each hardwarey software and DAW)

      8e67d918-469f-4601-a4b9-cd3e227be713-image.png

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

        @elemen8t yes, if you go webview you get a rectangle, not more not less. I‘m even not sure if JUCE components are shown correctly over the webview (eg a popup menu).

        elemen8tE 1 Reply Last reply Reply Quote 0
        • elemen8tE
          elemen8t @Christoph Hart
          last edited by

          @Christoph-Hart well rip, thx for the reply tho ^^

          1 Reply Last reply Reply Quote 0
          • StraticahS
            Straticah
            last edited by Straticah

            For me this works on mac to achieve a transparent webview.

            html, body {
              background: transparent;
            }
            

            On windows it defaults to white i have not figured out why yet.

            building user interfaces in HISE :)
            web: www.vst-design.com

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

              @Straticah yes but even if you manage to make it transparent across all platforms, you won't be able to click on anything outside the circle.

              But I would just design the interface so that there is nothing interactive in the corner parts and then paint the background in the webview and hope that you don't notice the transition between JUCE / HISE UI and the webview.

              StraticahS 1 Reply Last reply Reply Quote 0
              • StraticahS
                Straticah @Christoph Hart
                last edited by

                @Christoph-Hart yes rendering a bg image inside it makes sense.

                Do you know if this win/mac transparency mismatch is JUCE or HISE related? I will try different approaches today but i am afraid i will run into issues.

                Mac is behaving today when it comes to rendering transparency in webview (see screenshot)

                5a0aad31-bd9b-4a79-b423-d98cc69c7e40-image.png

                same script on win:
                3b4c95fd-1f71-4669-8e9b-795b7c24d1a8-image.png

                building user interfaces in HISE :)
                web: www.vst-design.com

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

                26

                Online

                1.9k

                Users

                12.3k

                Topics

                106.8k

                Posts