HISE Logo Forum
    • Categories
    • Register
    • Login

    Video as background eats CPU (obviously)

    Scheduled Pinned Locked Moved General Questions
    30 Posts 7 Posters 1.3k 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.
    • hisefiloH
      hisefilo @A Former User
      last edited by

      @UrsBollhalder Yes! that's a good idea. Will see if I can find something!
      Thanks bro

      1 Reply Last reply Reply Quote 0
      • Christoph HartC
        Christoph Hart @A Former User
        last edited by

        Actually the problem with most "landscapy" shaders on shadertoy is that they use some kind of textures, which isn't supported in HISE yet (you can only load fragment shaders in HISE which don't have the ability to load textures).

        hisefiloH 1 Reply Last reply Reply Quote 1
        • hisefiloH
          hisefilo @Christoph Hart
          last edited by

          @Christoph-Hart Ohhh. I see.
          Then... what if I do some kind of layered transparent pngs? and move them onNoteOn or whatever? (timers will kill cpu)

          This are 8 layers (moons, terrain, etc)

          Screen Shot 2022-11-03 at 9.46.18 AM.png

          Christoph HartC LindonL 2 Replies Last reply Reply Quote 0
          • Christoph HartC
            Christoph Hart @hisefilo
            last edited by

            Yes that might sound like the best solution - and shuffling around 8 images at 25fps shouldn't kill the CPU.

            1 Reply Last reply Reply Quote 1
            • LindonL
              Lindon @hisefilo
              last edited by

              @hisefilo - you could try independently scaling the layers - the "disney" technique...

              HISE Development for hire.
              www.channelrobot.com

              hisefiloH 1 Reply Last reply Reply Quote 1
              • hisefiloH
                hisefilo @Lindon
                last edited by hisefilo

                @Lindon LOL true. HISE becomes a 2D animation framework

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

                  @hisefilo Don't say it too loud or @ulrik will recreate The Jungle Book with ScriptPanels..

                  hisefiloH ulrikU 2 Replies Last reply Reply Quote 4
                  • hisefiloH
                    hisefilo @Christoph Hart
                    last edited by

                    @Christoph-Hart LOL

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

                      @Christoph-Hart Haha, just wait...

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

                      hisefiloH 1 Reply Last reply Reply Quote 1
                      • hisefiloH
                        hisefilo @ulrik
                        last edited by hisefilo

                        Silly question. Anyone knows how to do a function that ramps from zero to 1 value in "x" time (without a timer callback)?, then to return to zero in "x" time ? like an attack and release but not for audio but UI ?? (yes I am trying to move objects like in a timeline)

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

                          @hisefilo What is going to be changing the value if not a timer?

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

                          hisefiloH 1 Reply Last reply Reply Quote 0
                          • hisefiloH
                            hisefilo @d.healey
                            last edited by

                            @d-healey I was thinking in getSystemTime and parsing milliseconds. But maybe will use CPU as the timer callback

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

                              @hisefilo getSystemTime is a function that will give you the current time, it's not a callback. Why not give up on your crazy dreams of putting videos in audio plugins :p

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

                              hisefiloH 1 Reply Last reply Reply Quote 0
                              • hisefiloH
                                hisefilo @d.healey
                                last edited by

                                @d-healey never! LOL. I'm also thinking into a VR add-on to allow users to play VSTs in Metaverse 😄

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

                                  @hisefilo I wouldn't back that horse.

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

                                  hisefiloH 1 Reply Last reply Reply Quote 0
                                  • hisefiloH
                                    hisefilo @d.healey
                                    last edited by

                                    @d-healey Yea I know. Is already dead.

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

                                      @hisefilo I think you're using the wrong timer. There's the "synth" timer with the onTimer callback, but you can also use a Engine.createTimerObject(), or since you're most likely working on a Panel, use its timer callback.

                                      hisefiloH 1 Reply Last reply Reply Quote 1
                                      • hisefiloH
                                        hisefilo @Christoph Hart
                                        last edited by

                                        @Christoph-Hart oh I forgot about the onTimer. Thanks!!

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

                                        28

                                        Online

                                        1.7k

                                        Users

                                        11.9k

                                        Topics

                                        103.5k

                                        Posts