HISE Logo Forum
    • Categories
    • Register
    • Login

    HISE as a 3D renderer

    Scheduled Pinned Locked Moved Scripting
    12 Posts 6 Posters 181 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.
    • Oli UllmannO
      Oli Ullmann
      last edited by

      Hello everyone,

      For a project, I need a 3D cube that rotates. I asked chatGPT if it could help me, and it actually worked! :-)

      I'll post the code here in case anyone wants to play around with it.

      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? :-)

      Have fun trying it out and with matrix multiplication. :-)

      I have translated the comments into English for you.

      All the best from Germany,
      Oli

      HiseSnippet 2102.3ocsXzlaaibkxIJsVc21t.8.Lv+nfxlRQTV9q0caW+gbhPicDrbbiqgvhQjiDmZJNDbFYIk1Tz6POM85zSPuAsu2LjTT1JYyZfJaQQ99ddeMyicSDdLoTjXUpxUyiYVk9px8lGoBNIfxir5bpUoeY4yoREKgX.c77XpTx7sJU5YuBATZ8mao+7e9CGSCoQdrEfrrtVv8XugOlqV.s62+G4ggmQ8YWwGWf5VeeGOQzIhPwDvddV4FVwTu6niXWPQxVqr0qox.qRaV1c2lC2ys0.3uCZtaK5fg62XeW2CNfxNXHqoeqc81m1nUCqRunsOWIR5onJlDD5wB+48BDSiLJ3ZtjOHjgO3Z0CzrAr0IA7P+tYNGokUom2cgq5YFW0uo74bedN7EtresFAYAGEcZkV6yYRt+DLoRELomaLouobOuDdrZAFzd9Ek6DAQvgTH1TzTLzZs1+5qJeh.nHRUeL8N1YIvC4bXuaiFND3R0CqT4kujTqVMxkBv34QiHaeJwax.FgGQdcmdsQjYzbzDUfH4aIdAT0q5dEYJWEPnjPtRExHArvXxvDwX.jjONFAMYLMhLfgxEkCJH62Fq3hHZnCYnHgHCnIwPpXHOhIIBPo7S61oZkLqWxTuSxdMeTvkLoHbBx6YhjtzHVnzVkLgktH7RXf2mDiHp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• S
        scottmire @Oli Ullmann
        last edited by

        @Oli-Ullmann
        That is amazing! If you don't mind me asking....could you share the prompt you used in ChatGPT?

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

          @scottmire
          Of course! :-)

          Since I'm from Germany, the original prompt was in German. However, the translation is quite simple:

          "Please use the HISE scripting language to draw me a 3D grid of a rotating cube."

          But don't be fooled—chatGPT is in no way reliable when it comes to generating code! Today, I used the same prompt to generate a cube that doesn't change in size, and chatGPT failed completely. It didn't even manage to reproduce the same result. Creating a working script with chatGPT is pure luck.

          d.healeyD ChazroxC S 3 Replies Last reply Reply Quote 2
          • d.healeyD
            d.healey @Oli Ullmann
            last edited by

            @Oli-Ullmann It seemed good for little snippets like this

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

            Oli UllmannO 1 Reply Last reply Reply Quote 1
            • Oli UllmannO
              Oli Ullmann @d.healey
              last edited by

              @d-healey
              Yes, sometimes it works well. But sometimes it doesn't. There are always little mistakes. For example, “var” variables are created in functions instead of “local” variables every time.

              But chatGPT often helps you get on the right track.
              For example, chatGPT has often helped me calculate mathematical formulas for LAF functions.

              It's quite an impressive little piece of technology! :-)

              1 Reply Last reply Reply Quote 0
              • ChazroxC
                Chazrox @Oli Ullmann
                last edited by

                @Oli-Ullmann facts. For now its only good for redundant tasks and heavy mathing. In those aspects I abuse gptty. lol.

                1 Reply Last reply Reply Quote 1
                • S
                  scottmire @Oli Ullmann
                  last edited by

                  @Oli-Ullmann
                  My understanding is that Claude (https://claude.ai/) is supposed to be much better than ChatGPT at writing usable code.

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

                    @scottmire
                    I have never used Claude, but I have heard that it is supposed to be better in terms of coding. However, I am uncertain whether this also applies to the new GPT5 version.

                    dannytaurusD rglidesR 2 Replies Last reply Reply Quote 0
                    • dannytaurusD
                      dannytaurus @Oli Ullmann
                      last edited by

                      @Oli-Ullmann gpt-5 was terrible for me initially. I switched back to claude-sonnet after a few days. Then I heard gpt-5-fast was decent, so I enabled that and it's been fine.

                      Overall, claude-4-sonnet has been consistently good for me for coding for the last several months.

                      I think they rushed gpt-5 out too soon. Seen some horror stories about its performance. 😂

                      Meat Beats: https://meatbeats.com
                      Klippr Video: https://klippr.video

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

                        Isn't GPT5 basically the same as the previous version just that it auto selects the best model instead of you having to do it manually?

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

                        dannytaurusD 1 Reply Last reply Reply Quote 0
                        • rglidesR
                          rglides @Oli Ullmann
                          last edited by

                          @Oli-Ullmann yeah claude is still better than gpt5, at least for HISE, although I tested it with some C++ and Claude is better at that too imo. Both still depend largely on the user's patience, prompt and knowledge of course. This cube is amazing by the way! Would be interesting to see if it could do some 3d XY pad stuff with knobs. I guess it would be called an XYZ pad

                          1 Reply Last reply Reply Quote 0
                          • dannytaurusD
                            dannytaurus @d.healey
                            last edited by

                            @d-healey That wasn't my experience at all. Search the internet for "GPT5 fails" and you'll see all the negative reactions.

                            In my case it was very slow, showed way too much 'thinking' text, refused to execute terminal commands and had a much higher hallucination rate than previous GPT versions or Claude.

                            Keep in mind, this wasn't with HISE. This was mainly in a Ruby on Rails app with ~30k LOC and a bunch of other much smaller projects. I haven't used AI for HISE at all yet, mainly because I don't think there's enough HISE code out there for it to give really useful answers.

                            For casual stuff it might be fine, but for coding - and in particular in the Cursor IDE, it was horrible.

                            Meat Beats: https://meatbeats.com
                            Klippr Video: https://klippr.video

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

                            31

                            Online

                            1.9k

                            Users

                            12.3k

                            Topics

                            107.3k

                            Posts