• Products
    • Isadora
    • Get It
    • ADD-ONS
    • IzzyCast
    • Get It
  • Forum
  • Help
  • Werkstatt
  • Newsletter
  • Impressum
  • Dsgvo
  • Press
  • Isadora
  • Get It
  • ADD-ONS
  • IzzyCast
  • Get It
  • Press
  • Dsgvo
  • Impressum

Navigation

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Tags

    [ANSWERED] Pitch yaw roll to rotation...

    How To... ?
    3d object midi control javascript
    3
    4
    1145
    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.
    • plem
      plem last edited by Woland

      I hardly dare to ask this... But here we go.

      I have three midi controllers controlling the movement of a 3d-model. To keep the pan straight I have to use the great "pitch/yaw/roll to rotation" actor. then the data is saved. When I recall the data the 3d object behaves fine, but I really would like the midi controllers also to take their right position. So I'll have to recalculate the p/y/t info back to rotation info. Who knows, somebody has made something for this...

      Thanks, Peter

      OSX 10.15.7, MacBook pro, 2,6 GHz Intel Core i7, Radeon Pro 560X 4 GB
      Intel UHD Graphics 630 1536 MB

      Fred mark 2 Replies Last reply Reply Quote 0
      • Fred
        Fred @plem last edited by

        @plem some midi controllers (I have an ancient novation controller) that use continuous encoders have the ability to receive a level from midi, so you can send a midi cc signal and the controller will start at that level.

        If your midi controller does have continuous encoders, but does not allow you to send a current starting value you can also create a system that will use the controller to make relative adjustments. So the exact value of the controller does not directly get translated to rotation, but instead take the initial value when you open the patch and add calculate the difference from that value when you move the controller.

        http://www.fredrodrigues.net/
        https://github.com/fred-dev
        OSX 13.6.4 (22G513) MBP 2019 16" 2.3 GHz 8-Core i9, Radeon Pro 5500M 8 GB, 32g RAM
        Windows 10 7700K, GTX 1080ti, 32g RAM, 2tb raided SSD

        1 Reply Last reply Reply Quote 0
        • mark
          mark @plem last edited by

          @plem said:

          So I'll have to recalculate the p/y/t info back to rotation info. Who knows, somebody has made something for this...

          I assume what you want to do is to covert the rotation output from the Pitch/Yaw/Roll to Rotation actor back into Pitch / Yaw and Roll. If that's the case, please see the attached Javascript actor that does the job. Note that there is a Javascript library that is required by this patch (three.min.js). This file must be at the same level as the .izz file, otherwise the Javascript actor won't work.

          Best Wishes,
          Mark

          pitch-roll-yaw-conversions.izz

          Media Artist & Creator of Isadora
          Macintosh SE-30, 32 Mb RAM, MacOS 7.6, Dual Floppy Drives

          1 Reply Last reply Reply Quote 0
          • plem
            plem last edited by

            @mark

            Great. Flawless. Exactly what I meant.

            Thanks! Peter

            OSX 10.15.7, MacBook pro, 2,6 GHz Intel Core i7, Radeon Pro 560X 4 GB
            Intel UHD Graphics 630 1536 MB

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