HISE Logo Forum
    • Categories
    • Register
    • Login

    I'll just leave this here...

    Scheduled Pinned Locked Moved General Questions
    106 Posts 16 Posters 9.7k 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.
    • F
      fellowfinch @aaronventure
      last edited by

      @aaronventure said in I'll just leave this here...:

      Settings.setEnableOpenGL(true)

      Content.makeFrontInterface(850, 420);
      
      Settings.setEnableOpenGL(true);
      
      //our sampler
      const var Sampler1 = Synth.getChildSynth("Sampler1");
      
      //sample maps array
      const var SampleMaps = Sampler.getSampleMapList();
      const var ComboBox1 = Content.getComponent("ComboBox1");
      
      //combo box
      ComboBox1.set("items", SampleMaps.join("\n"));
      
      
      inline function onComboBox1Control(component, value)
      {
      	Sampler1.asSampler().loadSampleMap(SampleMaps[value-1]);
      };
      
      Content.getComponent("ComboBox1").setControlCallback(onComboBox1Control);
      
      //image input
      
      const var pnlBCK = Content.getComponent("pnlBCK");
      
      pnlBCK.loadImage("{PROJECT_FOLDER}test.png", "bck");
      
      pnlBCK.setPaintRoutine(function(g)
      {
      	var a = this.getLocalBounds(0);
      	
      	g.drawImage("bck", a, 0, 0);
      
      	
      });
      
      
      //shaders
      //static shader
      const var Panel1 = Content.getComponent("Panel1");
      const var shader = Content.createShader("shader");
      
      Panel1.setPaintRoutine(function(g)
      {
      	g.applyShader(shader, [0, 0, this.getWidth(), this.getHeight()]);
      });
      //earth shader
      const var Panel2 = Content.getComponent("Panel2");
      const var shader2 = Content.createShader("shader2");
      
      Panel2.setPaintRoutine(function(g)
      {
      	g.applyShader(shader2, [0, 0, this.getWidth(), this.getHeight()]);
      });
      
      
      

      ran this and compiled ok, the generalSettings file also has a "1", alas shader is not seen in the exported file. I can interact and manipulate it normally inside of HISE though...

      A LindonL 2 Replies Last reply Reply Quote 0
      • A
        aaronventure @fellowfinch
        last edited by

        @fellowfinch alright, this is the last one I have, then I'm all out of ideas.

        There's a FloatingTile component with ContentType = CustomSettings, and one of them is a switch for enabling open GL. can you add that to your plugin, compile it, see if that works.

        F 1 Reply Last reply Reply Quote 0
        • LindonL
          Lindon @fellowfinch
          last edited by

          @fellowfinch do you have a graphics card that will render OpenGL?

          HISE Development for hire.
          www.channelrobot.com

          1 Reply Last reply Reply Quote 0
          • F
            fellowfinch @aaronventure
            last edited by

            @aaronventure said in I'll just leave this here...:

            There's a FloatingTile component with ContentType = CustomSettings, and one of them is a switch for enabling open GL. can you add that to your plugin, compile it, see if that works.

            Added this tile and checked if openGL is set to "true", compiled it and it did not work. Bummer :/

            @Lindon said in I'll just leave this here...:

            @fellowfinch do you have a graphics card that will render OpenGL?

            I'm running an M1 Mac 14", I think it should handle the shaders

            here are the specs
            https://support.apple.com/kb/SP854?viewlocale=en_AM&locale=en_AM

            Is there any chance of ziping the project file here so anyone can try running it at their end and seeing if it works and maybe it's just my computer or? We can even do it through DM, if anyone has the willpower and time to help me pinpoint the problem.

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

              @fellowfinch Didn't Mac deprecate OpenGL and switch to Metal?

              Edit: Yup, here - https://developer.apple.com/library/archive/documentation/GraphicsImaging/Conceptual/OpenGL-MacProgGuide/opengl_intro/opengl_intro.html

              e342e2dc-ea86-4f2d-8170-e9459287464f-image.png

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

              LindonL A F 3 Replies Last reply Reply Quote 1
              • LindonL
                Lindon @d.healey
                last edited by

                @d-healey said in I'll just leave this here...:

                @fellowfinch Didn't Mac deprecate OpenGL and switch to Metal?

                Edit: Yup, here - https://developer.apple.com/library/archive/documentation/GraphicsImaging/Conceptual/OpenGL-MacProgGuide/opengl_intro/opengl_intro.html

                e342e2dc-ea86-4f2d-8170-e9459287464f-image.png

                yep there you go - no OpenGL on your machine.

                HISE Development for hire.
                www.channelrobot.com

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

                  @d-healey Oh well, good to know.

                  Apple gonna Apple.

                  1 Reply Last reply Reply Quote 0
                  • F
                    fellowfinch @d.healey
                    last edited by

                    @d-healey

                    ahaaa, thank you for clarifying! I assume HISE does not support anything via Metal? Meaning I'm out of the lovely shaders for my plugs:anxious_face_with_sweat:

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

                      @fellowfinch You can try webview which will run a frontend in the native browser so you can use WebGL (check if that will work in Safari), but the limitation is that you cannot display any other components on top of the webview.

                      F 1 Reply Last reply Reply Quote 0
                      • F
                        fellowfinch @aaronventure
                        last edited by

                        @aaronventure

                        I have checked and indeed my browser supports webGL, but wouldn't this be a tad bad since the end users might not get the shader graphics due to them being on different systems?

                        I assume you can port openGL shaders to Metal shaders but HISE may not support that? Or am I thinking wrongly here...

                        A O 2 Replies Last reply Reply Quote 0
                        • A
                          aaronventure @fellowfinch
                          last edited by

                          @fellowfinch webview will run in whatever native browser is there on each OS. I think the native browsers on MacOS, Windows and Debian all support the latest stuff, no?

                          You'll have to get a Windows setup going anyway in order to compile the Windows plugins, so you'll be able to check.

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

                            @aaronventure said in I'll just leave this here...:

                            Debian all support the latest stuff, no?

                            Webview isn't implemented on Linux. As far as I know (and hope!) there is no such thing as a native browser on Debian.

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

                            1 Reply Last reply Reply Quote 1
                            • O
                              obolig @fellowfinch
                              last edited by

                              @fellowfinch Did you ever resolve this issue? I just spent over a month learning shaders just to learn Mac doesn't support OpenGL. I would hate to scrap my beautiful animation that works in the windows version.

                              F 1 Reply Last reply Reply Quote 0
                              • F
                                fellowfinch @obolig
                                last edited by

                                @obolig Sadly no :/

                                I just decided to scrap it and focus on other stuff. If anyone finds a possible solution so animation would work on Standalone, AU on Mac etc please let us know :)

                                As far as I understand the only shaders that would work would be Metal, so a converter would be an option here. MoltenGL is a bit pricey but allegedly it can convert openGL stuff to Metal quite seamlessly.

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

                                36

                                Online

                                1.7k

                                Users

                                11.7k

                                Topics

                                102.0k

                                Posts