CINEVERSITY

  • Recent
  • Popular
  • Users
  • Groups
  • Login
Maxon Logo
  • Login
  • Search
  • Recent
  • Popular
  • Users
  • Groups

Trigger playback of entire WAV file on object collision

Question & Answers
2
4
237
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.
  • H
    heat-original last edited by Jul 12, 2024, 5:36 PM

    I am working on an animation where I'm trying to trigger several WAV audio files upon the collision between certain objects. I am familiar with the Xpresso approach using the Collide node to trigger a Sound node, but I've found that this method will only play back the WAV file so long as the objects are in the collided state, so in my case with objects bouncing off each other, there is only one frame where they are actually "collided", thus I'm getting no playback. If I step through the timeline frame by frame and stop on a frame where the collision occurs, I hear the audio file playback, but not if I play back the animation in the viewport in realtime, or try to render it out with audio. Is there a way to use object collisions to trigger the playback of an entire WAV file each time a collision occurs? Also, it might be helpful to be able to trigger the playback of the audio files at specific time intervals if anyone knows how to do that.

    Thanks for your help!

    1 Reply Last reply Reply Quote
    • Dr. Sassi
      Dr. Sassi last edited by Dr. Sassi Jul 12, 2024, 6:33 PM Jul 12, 2024, 6:33 PM

      Hi heat-original,

      Please use your Wav file to test it. Set the Constant to a value that makes sense to your needs.

      CV4_2024_drs_24_XPmf_01.c4d

      The Text Object is only there to share the state.

      All the best

      Dr. Sassi Sassmannshausen Ph.D.
      Senior Trainer, Maxon Master Trainer, L&D - Strategist
      Cinema 4D mentor since 2004, Member of VES, DCS.

      H 1 Reply Last reply Jul 12, 2024, 7:03 PM Reply Quote
      • H
        heat-original @Dr. Sassi last edited by Jul 12, 2024, 7:03 PM

        @Dr-Sassi Thank you! This seems to work for triggering the WAV at a set time. Can this approach be applied to triggering the WAV with an object collision? I tried adapting your Xpresso setup using the Collide node but so far I can't get it to work on every collision.

        1 Reply Last reply Reply Quote
        • Dr. Sassi
          Dr. Sassi last edited by Dr. Sassi Jul 12, 2024, 9:21 PM Jul 12, 2024, 9:21 PM

          Please have a look at the new file, heat-original.

          CV4_2024_drs_24_XPmf_11.c4d

          Let me know if that works or if the collision overlaps with the previous collision.

          Do you know this is not sound that will be rendered into a file?

          Workaround: Set the playback to the right frame rate (Timeline), limit anything that could slow it down, and do a screen capture (audio only), Quick Time can this, for example. Then match it to the footage.

          All the best

          Dr. Sassi Sassmannshausen Ph.D.
          Senior Trainer, Maxon Master Trainer, L&D - Strategist
          Cinema 4D mentor since 2004, Member of VES, DCS.

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