HISE Logo Forum
    • Categories
    • Register
    • Login

    Blurry Panel?!

    Scheduled Pinned Locked Moved General Questions
    39 Posts 8 Posters 3.0k 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.
    • S
      Sawer @ulrik
      last edited by

      @ulrik @Natan @ustk Ok guys. Thanks a lot. I'll try it out!

      1 Reply Last reply Reply Quote 2
      • Christoph HartC
        Christoph Hart
        last edited by

        Yes I think there was an issue with the gaussian blur IPP routine on macOS which is why I deactivated it. Box Blur doesn't look as smooth, but it's way faster anyway.

        S 1 Reply Last reply Reply Quote 3
        • S
          Sawer @Christoph Hart
          last edited by

          @Christoph-Hart
          Ok great! Thanks @Christoph-Hart 😃

          1 Reply Last reply Reply Quote 0
          • Dan KorneffD
            Dan Korneff
            last edited by

            I could use some help with Paint Routines involving Panel Blur and GUI scaling. I've created an image at 2X scale, so GUI zoom level at 200% looks good.
            My original paint routine looked like this, and scaled properly:

            Panel1.loadImage("{PROJECT_FOLDER}Panel1.png", "Panel_1");
            
            Panel1.setPaintRoutine(function(fp)
            {
            	fp.drawImage("Panel_1", [0, 0, this.getWidth(), this.getHeight()], 0, 0);
            });
            

            I wanted to blur this panel when another is opened, so I did this:

            var BlurLevel = 0;
            
            Panel1.loadImage("{PROJECT_FOLDER}Panel1.png", "Panel_1");
            
            Panel1.setPaintRoutine(function(fp)
            {
                    fp.beginLayer(true);
            	fp.drawImage("Panel_1", [0, 0, this.getWidth(), this.getHeight()], 0, 0);
                    fp.boxBlur(BlurLevel);
                    fp.endLayer();
            });
            

            And this is what I'm doing when this new panel opens/closes:

            const var PanelOpen = Content.getComponent("Panel_Open");
            
            inline function onPanelOpenControl(component, value)
            {
            	BlurLevel = value *5;          //Set Blur Level
                    Panel1.repaint();    //blur panel in background
            };
            Content.getComponent("PanelOpen").setControlCallback(onPanelOpenControl);
            

            In this configuration, Blur works just fine, but the png doesn't redraw when GUI scaling is changed and the result is not crisp.
            What would you guys do?

            Dan Korneff - Producer / Mixer / Audio Nerd

            1 Reply Last reply Reply Quote 0
            • Dan KorneffD
              Dan Korneff
              last edited by

              And.... of course it starts working directly after I post for help. 😂
              False alarm

              Dan Korneff - Producer / Mixer / Audio Nerd

              1 Reply Last reply Reply Quote 3
              • S
                Sawer @Sawer
                last edited by Sawer

                @Natan The snippet works now. The fault was mine, sorry. My version of Hise was the master (the one made 2 years ago). Now I got why I didn't had all the features you guys have! Thanks

                1 Reply Last reply Reply Quote 1
                • Dan KorneffD
                  Dan Korneff
                  last edited by

                  After implementing this paint routine, my panels are no longer redrawing when using GUI zoom. Am I missing something stupid?

                  Panel1.setPaintRoutine(function(fp)
                  {
                          fp.beginLayer(true);
                  	fp.drawImage("Panel_1", [0, 0, this.getWidth(), this.getHeight()], 0, 0);
                          fp.boxBlur(BlurLevel);
                          fp.endLayer();
                  });
                  

                  Dan Korneff - Producer / Mixer / Audio Nerd

                  d.healeyD ustkU 2 Replies Last reply Reply Quote 0
                  • d.healeyD
                    d.healey @Dan Korneff
                    last edited by

                    @dustbro No idea about the not redrawing, but why do you use fp as the variable name? You miss out on the auto-complete.

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

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

                      @dustbro I use boxBlur with no issue when zooming. At least in Hise, I haven't tested an exported project...

                      Can't help pressing F5 in the forum...

                      Dan KorneffD 1 Reply Last reply Reply Quote 0
                      • Dan KorneffD
                        Dan Korneff @ustk
                        last edited by

                        @ustk said in Blurry Panel?!:

                        I use boxBlur with no issue when zooming.

                        The GUI zoom works, but the image becomes blurry.

                        @d-healey said in Blurry Panel?!:

                        why do you use fp as the variable name?

                        I try to use variables that align with their property... but sometimes that auto-complete is really handy. Maybe I'll switch it up.

                        Dan Korneff - Producer / Mixer / Audio Nerd

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

                        38

                        Online

                        1.8k

                        Users

                        12.0k

                        Topics

                        104.2k

                        Posts