HISE Logo Forum
    • Categories
    • Register
    • Login

    OpenGL ComboBox, And "NO" By Default

    Scheduled Pinned Locked Moved General Questions
    43 Posts 8 Posters 2.2k 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.
    • d.healeyD
      d.healey @Fortune
      last edited by d.healey

      @Fortune Try using HISE_USE_OPENGL_FOR_PLUGIN=1 in your project preferences.

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

      FortuneF 2 Replies Last reply Reply Quote 1
      • FortuneF
        Fortune @d.healey
        last edited by

        @d-healey I will try, thank you man!

        1 Reply Last reply Reply Quote 0
        • FortuneF
          Fortune @d.healey
          last edited by

          @d-healey Yes it works now with that flag, thank you again man!

          As I see, the default OpenGL "NO" option is not available. The plugin is loading with YES on the first init.

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

            @Fortune said in OpenGL ComboBox, And "NO" By Default:

            The plugin is loading with YES on the first init.

            Was there a solution to this? It seems like any time I enable the opengl combo box, it always defaults to YES no matter what the plugin is set to for export.

            Dan Korneff - Producer / Mixer / Audio Nerd

            FortuneF 1 Reply Last reply Reply Quote 0
            • FortuneF
              Fortune @Dan Korneff
              last edited by Fortune

              @dustbro said in OpenGL ComboBox, And "NO" By Default:

              Was there a solution to this? It seems like any time I enable the opengl combo box, it always defaults to YES no matter what the plugin is set to for export.

              Unfortunately there is no easy solution for this.

              Also since we can't edit the GeneralSettings.xml file with scripting, in the end, I made a custom settings file (with dumpAsJSON) that stores the NO value by default and call that value on init. So only first initialization will be YES. Then other instances will be NO (unless the user makes it YES manually of course).

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

                @Christoph-Hart where can we find this setting in the source? Would like to have the OpenGL combo box visible, and default to OFF on plugin init (or at least set to the project setting when you export).

                Dan Korneff - Producer / Mixer / Audio Nerd

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

                  EDIT: this isn't working :(

                  nevermind... changing StandalonePopupComponents.cpp 128
                  from

                  #if !HISE_USE_OPENGL_FOR_PLUGIN
                  

                  to

                  #if HISE_USE_OPENGL_FOR_PLUGIN
                  

                  is working here.

                  Dan Korneff - Producer / Mixer / Audio Nerd

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

                    @dustbro Yeah, I need to add another preprocessor (something like HISE_ENABLE_OPENGL_BY_DEFAULT). This macro will deactivate the entire OpenGL thing.

                    Dan KorneffD 1 Reply Last reply Reply Quote 4
                    • Dan KorneffD
                      Dan Korneff @Christoph Hart
                      last edited by

                      @Christoph-Hart please-the-simpsons.gif

                      Dan Korneff - Producer / Mixer / Audio Nerd

                      DanHD 1 Reply Last reply Reply Quote 1
                      • DanHD
                        DanH @Dan Korneff
                        last edited by

                        @dustbro could you not include the general settings xml in your installer and set the opengl to 0?

                        DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                        https://dhplugins.com/ | https://dcbreaks.com/
                        London, UK

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

                          @DanH That's a short term solution that would work... but then I have to update a bunch of installers, write post-install scripts for the new files, answer endless tech support emails about why their default GUI zoom setting reset to 100% because the script accidentally overwrote an existing xml with their most favorite zoom setting in the world, then defend my product on SlutSpace cause if I can't keep track of a single xml file how can the customer trust the DSP under the hood. This, of course, would coincide with an unplanned ilOk Cloud outage that prompts 35.7% of my customer base to set their studios on fire.
                          Not good for business 💩

                          Dan Korneff - Producer / Mixer / Audio Nerd

                          DanHD 1 Reply Last reply Reply Quote 1
                          • DanHD
                            DanH @Dan Korneff
                            last edited by

                            @dustbro lol! It shouldn't overwrite the existing settings file though, should it? Anway, let's hope this can be added :)

                            DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                            https://dhplugins.com/ | https://dcbreaks.com/
                            London, UK

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

                              @DanH Crisis averted:

                              Link Preview Image
                              - added HISE_DEFAULT_OPENGL_VALUE preprocessor · christophhart/HISE@424b619

                              The open source framework for sample based instruments - - added HISE_DEFAULT_OPENGL_VALUE preprocessor · christophhart/HISE@424b619

                              favicon

                              GitHub (github.com)

                              Dan KorneffD 2 Replies Last reply Reply Quote 3
                              • Dan KorneffD
                                Dan Korneff @Christoph Hart
                                last edited by

                                @Christoph-Hart yay!!

                                Dan Korneff - Producer / Mixer / Audio Nerd

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

                                  @Christoph-Hart Do we have to make any additional changes to get this to work? I have HISE_USE_OPENGL_FOR_PLUGIN=1 set in Extra Definitions cause the combo box doesn't show up inthe export without it.
                                  The GeneralSettings.xml is still being created with OPEN_GL=1 even if the plug-in is set to "no" when exporting.

                                  Dan Korneff - Producer / Mixer / Audio Nerd

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

                                    @dustbro You have to add HISE_DEFAULT_OPENGL_VALUE=1

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

                                      @Christoph-Hart
                                      Setting HISE_DEFAULT_OPENGL_VALUE=1 exports with openGL enabled by default.
                                      I have set:

                                      HISE_USE_OPENGL_FOR_PLUGIN=1 
                                      HISE_DEFAULT_OPENGL_VALUE=0
                                      

                                      Now the OPEN_GL property is initializing properly, but the combo box disappears.

                                      Dan Korneff - Producer / Mixer / Audio Nerd

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

                                        @dustbro yeah, it's Big brain time over here.

                                        Should be fixed now.

                                        Dan KorneffD 1 Reply Last reply Reply Quote 4
                                        • Dan KorneffD
                                          Dan Korneff @Christoph Hart
                                          last edited by

                                          @Christoph-Hart Thanks! confirmed

                                          Dan Korneff - Producer / Mixer / Audio Nerd

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

                                          36

                                          Online

                                          1.8k

                                          Users

                                          12.0k

                                          Topics

                                          104.1k

                                          Posts