HISE Logo Forum
    • Categories
    • Register
    • Login

    HISE as a 3D renderer

    Scheduled Pinned Locked Moved Scripting
    22 Posts 9 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.
    • AllenA
      Allen
      last edited by Allen

      i just made this based on your snippet :)

      3dobj.gif

      HiseSnippet 4426.3oc6bEzbaijcFzi4tK4tSxtUkyovLG1PRARPPJIaWLyXYaYsipXoQYjGuikJFWMAaJBaP.T.fhDTk1Ztj645da+Yji607uXNja4xdIoxsj2q6F.M.AonjFmJoxxghF30u2q+5W+5W+5FMlS7cMoAAt9Jkp95HOpRoeQ4SibBG+hwDKGkC2WoTkxcGpFRCBUddjGIHfNToToO42fEWpxCUXe9SO84DahiIMkjhxabsLouxZhUXJ0S16uyx19.xP5qslHw816cnoqyKbscmBP4SJ2VwiX9AxEziIHaOnrxWQBFqTpQ4c2s6SnOdvtO1rc6ca+nt6r6SdxNiFPeBc.4wCLocZSHidBA.4O4kCsBc8OMj.nWozCet6vnSG6NygWAuwJvZfMEuwP4Tnl4jOv0dH1DQpJuXrk8vShsQAJfVNI0h8IbK1eU4irFZkPO0x8KYEnlJgrArzCxBuOIC7LjgWaI3U.jJIAoGxgzup7ol9Vdgokf34mW9PmPp+HBzOICENuJOPe6xuvE3vIr0DxGnG3C2jHQsca2VSE9odupvGc8lq7iJ94ke2yN5jW8R10M2jOqUk2sO+eDUVEb8CBUOg3PsMT+B03NgKnguvchmqCbSsOmW7myL+9zKT8cQOm2MGDncqdxjhVlzBIRg9DmfLxwoDsDkkk5TFkG2iCg8+lm8ae2qN727UuFIy4y15hwguKvjXSAhFsP3xaeWR7U8NBHFN1mR22Zx2PcFR8o9sL8o.HOg5G3QMCstjdDIz2ZdM3eF25jC06pUU8N9ga0PS4u0ZX33Z00So7UTDq0pqodmUe6VFZpF7AEBEGPCOAh.D9MtSCsbn0FM0AZStN0tnd0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5sQ7yta09OqL+P8cujN5dI8RHWauMQ5eZYledFg+i+609WWsU64SCCccXB+yKmbB0xW6+oMxr+KJmdTxxBg+5+w+smp7sGtOIjfuvbBeIv+xCGfhttk1mdILRk+5yUo79zfOD55oTpZxQYCHyq4OM9kqCOSYBiF+7koLOEx+C6EI+5MNCe6iRH7CS2aL6kORlBDdyc19PJ+W.A8.D8.Fg3SyFfw+xxOChsmRXvTHFm+qcObBrLAT.kkA6ZGaHA28kf6dK1aBQpLkbnGZa4Puxg6MQ98AU4ONwZ3Pa5ItAVXnjbdg2BP91UARke2+6AjmsJP9Ce++SAxe5MGMIEGe+n0zamC.G9iE.hVE.x2S9wB.msJ.juW5NBfexMFVTp9uLWOPRE9G98+9+kmlAN+mOUtVd3FE+bE0ze32smrtJuYgRWgx9m997vVY42D4eY4ibGN0lDl8EiFe8wEEfVT42FY7MN1ArzQxg++Q6skdSg3up7IVgliKFiOn.LByq7w.ih2w7Os7KY4ylBvGV9fu6iyKTtB+MW8B9C2A7RNd5jSgEcZRgZ2AlmCyzClrAEkcea7dzBbJ0YH6l+K3inPC79RhBMhKTYBwz28cl7I0w2h8eFiBfIG1a7ekxGg2qZrbZLvnQq2YZlUUKIXm6pfcuqBt8cUvctqBt6cUvGcWE7w2rf3+OO3YSCc4KzDX3nSdIKwqRkdoCA7.YdqJ+2FWmYhC
      

      I added some extra functions (rotateXYZ, translateXYZ, apply projection matrix) but i still couldn't figure out how to use the Path.lineTo() to draw planes. Seems like the vertex order will always be messed up when filling the path...

      Oli UllmannO ChazroxC 2 Replies Last reply Reply Quote 6
      • N
        NISHI_MUSIC @dannytaurus
        last edited by

        @dannytaurus i can agree i use chatgpt to make blender addons to ease my workflow and its terrible previous one is better

        1 Reply Last reply Reply Quote 0
        • Oli UllmannO
          Oli Ullmann @Allen
          last edited by

          @Allen
          This is really cool! :-)

          1 Reply Last reply Reply Quote 1
          • ChazroxC
            Chazrox @Allen
            last edited by

            @Allen frickin sick. 🔥

            1 Reply Last reply Reply Quote 1
            • ulrikU
              ulrik @Oli Ullmann
              last edited by ulrik

              @Oli-Ullmann said in HISE as a 3D renderer:

              I'm still bothered by the fact that the cube changes size and “pumps” when it rotates. I still need to take care of that. Or does anyone here have any ideas? :-)

              I used the

              path.getBounds(w) 
              

              instead of

              this.getLocalBounds(0)
              

              and I think it looks better, or maybe I'm just imagine that :)

              rotatingcube.gif

              HiseSnippet 2330.3ocsXstTiibEVlY7lXmrY2MUd.5hejRFjM9BfYGxlk6y3JCLtvLDbn7taao1VcPVsJ0RX6IyjJuC4MLOA4MH4b5VRVFLY2hJqALR84R+ct1W5FJrYRoHznP4qlGvLJ7qK1atej6wtTtuQmSLJ7xhsNw3n4AToj4XTnvKdMRoPoWZn97u+1indTea1hgLLtVvsYukOgGsXztG7m3ddmQcXWwmji6sOnisv+XgmHFPwKJV2HfZeGcL6BJx1ZEMdCU5ZTXihsZuKcTy1sYrQ6V+qa2dztssoMYrsas81CcnCat2d16sS68LJ7Ym5viDg8hnQLIXBGIbl2yUL0WOAWyk7gdL7kFF8fYVO7YBOGzDwQMN1k64zM08HM.szcgy5EZm0uq34bGd13KbZeoh.YgD4cfEVaY38hkfWi7vqdN3sBHUHGjdoFReUwd1g7fnETP77qJ1wOhENhBwo7PQyqwZ+1un3wBfC+nZSn2wNKDdISBycqW2h.eUY+xk2ZKR0pUIWJ.vy8GSZcBwNdHiv8IuoSuSQho7bXbjqH7UDaWZzq6dEYJOxkPId7nHOFwk4EPFEJl.CI4SBvghmP8ICYndQ8fJx7cAQbgO0yhLRDRjtzv.VHnDeljHfIkeR2NUJmhdIK58R1a3icujIEdwnrmIB6R8YdRynvXVhQXGx.uOI.ITFR.kQj6ogjiAaQwL4aHo5j53nFxb8LpqaQZTG+CzV1f3jat9TtSjKPu0dqfnKCPVzSQk54IldL78PnBPBbs9gddjECj.8dz6YjPU..b.RLKBc+ZSYgJcnQzZT+wdra.iods56SHDP7KSkLdB4lUxe+mj+9OjeY.i4jn+F6red9kiYRa2obeG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YU8HAa9bEr0yUvsetBtyyUvcetB194J3d+3BhW85gwQhI5xFCiy6dppoZgBm5SgLPU1pw+EjaEBmM
              

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

              Oli UllmannO AllenA 2 Replies Last reply Reply Quote 4
              • Oli UllmannO
                Oli Ullmann @ulrik
                last edited by

                @ulrik
                Wow, that's great! Is it okay if I use it in my plug-in?

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

                  @Oli-Ullmann said in HISE as a 3D renderer:

                  Is it okay if I use it in my plug-in?

                  Absolutely!

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

                  ChazroxC Oli UllmannO 2 Replies Last reply Reply Quote 1
                  • ChazroxC
                    Chazrox @ulrik
                    last edited by

                    @ulrik Are we all gonna have a new square in our plugin? hahaha This is tooo clean I had to grab that.

                    1 Reply Last reply Reply Quote 0
                    • AllenA
                      Allen @ulrik
                      last edited by

                      @ulrik said in HISE as a 3D renderer:

                      path.getBounds(w)

                      omg... i think i know how to draw planes now

                      didnt know this function before.

                      1 Reply Last reply Reply Quote 0
                      • Oli UllmannO
                        Oli Ullmann @ulrik
                        last edited by

                        @ulrik
                        Great, thank you! :-)

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

                        43

                        Online

                        2.1k

                        Users

                        12.9k

                        Topics

                        112.2k

                        Posts