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.
    • NatanN
      Natan @Sawer
      last edited by

      @nesta99 You Need A Newer Version Of Hise, That's Why You See That Error

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

        @Natan Screen Shot 2021-01-25 at 19.28.59.png

        So this is not the latest?

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

          https://forum.hise.audio/topic/3531/glowing-effect-snippet-enjoy/14
          Except for gaussian blur, I'll have a look if I can get 5minโ€ฆ

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

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

            @ustk Omd! Only On mac! Ahahah wow...

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

              @nesta99 Why are you saying this?

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

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

                I've checked for the GaussianBlur, it seems it is only Windows compatible probably due to IPP restriction or so...

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

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

                  @ustk Becuse I've said that today I was going to do the entire UI on Hise Just to learn the language more and because everything is vectorized, but yeah... Back to photoshop..

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

                    @ustk Strange tho.. because I've installed the ipp

                    ulrikU 1 Reply Last reply Reply Quote 0
                    • NatanN
                      Natan
                      last edited by

                      Boxblur Works On Mac, Use That instead
                      Gaussian Blur Doesn't, And This Reported In Other Thread

                      L 1 Reply Last reply Reply Quote 1
                      • ustkU
                        ustk
                        last edited by

                        Yep only Gaussian blur is the issue, everything else work...

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

                        1 Reply Last reply Reply Quote 1
                        • L
                          LeeC @Natan
                          last edited by LeeC

                          @Natan Just out of curiousity.
                          What is the difference between boxblur and gaussianBlur?

                          The effect seems the same with the snippets you provided that's all.

                          1 Reply Last reply Reply Quote 0
                          • ulrikU
                            ulrik @Sawer
                            last edited by

                            @nesta99 Yeah, the boxblur is working but not the gaussian...

                            boxblur.gif

                            Hise Develop branch
                            MacOs 15.3.1, Xcode 16.2
                            http://musikboden.se

                            S 1 Reply Last reply Reply Quote 2
                            • 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
                                            • First post
                                              Last post

                                            14

                                            Online

                                            1.8k

                                            Users

                                            12.1k

                                            Topics

                                            105.6k

                                            Posts