HISE Logo Forum
    • Categories
    • Register
    • Login

    Particles FX - JavaScript Library

    Scheduled Pinned Locked Moved General Questions
    18 Posts 4 Posters 865 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 @bendurso
      last edited by

      @bendurso You might be able to use it with the webview component.

      https://github.com/christophhart/hise_tutorial/tree/master/WebViewTests
      https://docs.hise.audio/scripting/scripting-api/scriptwebview/index.html

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

      bendursoB 2 Replies Last reply Reply Quote 1
      • bendursoB
        bendurso @d.healey
        last edited by

        @d-healey Thanks I'll take a look to that :)

        1 Reply Last reply Reply Quote 0
        • bendursoB
          bendurso @d.healey
          last edited by

          @d-healey Oh it worked, it was really easy to implement. Hise is amazing :)

          d.healeyD A 2 Replies Last reply Reply Quote 1
          • d.healeyD
            d.healey @bendurso
            last edited by

            @bendurso Excellent!

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

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

              @bendurso I yet to get around to trying out WebView in detail, how exactly did your implementation go if you don't mind sharing?

              Christoph HartC bendursoB 2 Replies Last reply Reply Quote 0
              • Christoph HartC
                Christoph Hart @aaronventure
                last edited by

                The webview is not really suitable for a background panel because you can‘t put stuff in top of it.

                You‘re better off with either a shader or a rlottie animation for this.

                bendursoB 1 Reply Last reply Reply Quote 2
                • bendursoB
                  bendurso @aaronventure
                  last edited by bendurso

                  @aaronventure I just download the github project example from Christoph, and did the same: https://github.com/christophhart/hise_tutorial/tree/master/WebViewTests

                  He first declared the WebView component:

                  const var wv = Content.getComponent("WebView1")
                  

                  Then he did some stuff to get a child folder inside images (this folder should contain the web files):

                  const var webroot = FileSystem.getFolder(FileSystem.AudioFiles).getParentDirectory().getChildFile("Images/your-web-folder");
                  

                  And then set the file index file inside that folder.

                  wv.setIndexFile(webroot.getChildFile("index.html"));
                  

                  It's everything explained on that example project, I'm just repeating the most essential parts :)

                  1 Reply Last reply Reply Quote 1
                  • bendursoB
                    bendurso @Christoph Hart
                    last edited by

                    @Christoph-Hart Oh yes, I just realized that. You can't place anything on top of the WebView for any particular reason or is this something you might consider changing?

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

                      The webview is basically a browser window that will take over the area of the screen that you assign it to so there's no way to render something above it.

                      bendursoB A 2 Replies Last reply Reply Quote 0
                      • bendursoB
                        bendurso @Christoph Hart
                        last edited by

                        @Christoph-Hart Oh ok, shaders are really cool too, dind't know about them. I'll take a look to that. Thanks :)

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

                          @Christoph-Hart I'm thinking of having built-in full fledged docs instead of just widget info on hover, is WebView something that I can leverage here, to, say point at my own website where I have the docs? This could also let me painlessly update the docs that the user sees in the plugin. Are there limitations in terms of content playback, or is it the same as the system native browser (that would be Edge/Safari)?

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

                            @aaronventure said in Particles FX - JavaScript Library:

                            I'm thinking of having built-in full fledged docs

                            There is a built in documentation system, no need for webview.

                            https://github.com/christophhart/hise_tutorial/tree/master/DocumentationTutorial
                            https://docs.hise.audio/working-with-hise/project-management/documentation/index.html

                            To see it in action press F1 in HISE, the built in docs use the same system.

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

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

                              @d-healey

                              Ah of course. Ideally I'd like to be maintaining one doc per plugin so I would host it... on github? Written in markdown? Then reference it on the webpage and use the docs system in the plugin to pull in the docs from the target repo?

                              Can it play MP4 files with sound?

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

                                @aaronventure I haven't used it for a while but looking at one of my older projects on github it seems I'm just hosting the markdown there - https://github.com/davidhealey/omalleysIrishWhistles/tree/master/Documentation

                                If you have a bunch of plugins it might be a good idea to setup a dedicated documentation repo with a sub folder for each project - I think this will work...

                                I don't believe it will support video files. HISE doesn't have an inbuilt video player/streamer, I think animated gifs might work though.

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

                                Christoph HartC 1 Reply Last reply Reply Quote 0
                                • Christoph HartC
                                  Christoph Hart @d.healey
                                  last edited by

                                  Yes audio examples do not work (but they also don‘t work in the webview unless you‘re OK with them being played through the systems default audio device, you can‘t route webview audio back into the plugin).

                                  Or you could just put your entire documentation on a website and make a link to it, from the plugin you can then open a weblink that spawns a browser, you could even attach a broadcaster to multiple components and call different links when you click there), whatever works for you.

                                  A 1 Reply Last reply Reply Quote 1
                                  • A
                                    aaronventure @Christoph Hart
                                    last edited by

                                    @Christoph-Hart I am fine with that. Though you might have a point there, this might be a bit of a gimmicky idea, opening a page directly in the browser is likely a safer option for more consistent results/expreience.

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

                                      @aaronventure It might also be a better UX for your users so they can keep using your plugin while reading the docs on another tab / monitor / whatever.

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

                                      28

                                      Online

                                      1.7k

                                      Users

                                      11.8k

                                      Topics

                                      102.5k

                                      Posts