버전

menu_open

Motion Tips and Best Practices

Before creating the motion for your game, you may want to review the following sections, which provide you with a series of examples, tips, and best practices that can help you better manage the motion in Wwise.

Performance

If you have the time, you should create and integrate motion into your game using Motion FX objects instead of generating it directly from your existing sounds because it can save on processing power because the motion data uses fewer samples and doesn't need to be filtered and resampled at run-time.

Motion Devices

  • Game controllers have limited playback capability. Game controllers can play back only a limited range of motion Effects, making it difficult for a game player to distinguish between different types of motion Effects especially when several effects are played back simultaneously. It is a good idea, therefore, to try to limit the playback to one motion source at a time.

  • Connect game controllers to high power USB ports. If your motion objects are not playing back on a game controller, make sure that the game controller is connected to a high power USB port. If the USB port does not have sufficient power to run the motion device, the system unmounts the device to protect the operating system or the device itself. The USB ports in the front of a computer are generally not powerful enough to run a motion device, so you should connect them to the USB ports at the back of the computer.

Game Controllers

There may be situations where you want the duration of the motion generated by the small and large motors of controllers to be different. Since the same duration controls in the Wwise Motion Generator plug-in are applied to all curves, this type of motion effect can't be created using one source. To work around this limitation, you can do the following:

  • Create two Motion FX objects, each with a Wwise Motion Generator as a source.

  • For one Motion FX object, generate the curve for the large motor, define the duration for this curve, and then make the small motor curve flat at 0.

  • For the other Motion FX object, generate the curve for the small motor, define the duration for this curve, and then make the large motor curve flat at 0.

  • Trigger both Motion FX objects using the same Event.

When playing back the Event in Wwise, you can also use the Inclusion option in the Event Editor as a solo/mute button.

Troubleshooting Motion

If the motion created in Wwise is not playing on a particular motion device, you can troubleshoot the problem using the Profiler. To capture motion data in the Advanced Profiler, do the following:

  • Press F6 to switch to the Profiler layout.

  • From the menu bar, click Project > Profiler Settings.

  • Select the Motion Data option and click OK.

    The Motion Devices tab is added to the Advanced Profiler.

Now you can connect to your game and profile the motion to identify the potential problem. The “Motion Devices” tab contains two separate lists: one for Devices and one for Game Objects. The Devices list indicates which motion devices have been properly registered and initialized in the sound engine, for each player.

To troubleshoot the problem, first check to see if the motion devices have been properly initialized, by verifying that each motion device is displayed in the Device list.

If the motion device appears in the list, then check to see if the motion device has been associated with a particular player, by doing the following:

If the motion devices have been properly initialized and they are associated to the appropriate player, then you can check the Game Objects list to verify if the game objects are set up properly to send motion data to a specific player. If there is no check mark for a particular combination of game object/player, you can switch to the Listeners tab of the Advanced Profiler to check the following:

  • In the Players column, find the player number that is not receiving the motion data. Then check to see which listener the player is using to receive the motion data. If the player is not using the correct listener, verify your calls to AK::MotionEngine::SetPlayerListener.

  • If the player is using the right listener, then make sure that the listener to which the player is attached has a check mark in the Motion column. If not, verify that you are calling AK::SoundEngine::SetListenerPipeline properly.

  • If a check mark is displayed, check the Game Object list to verify that the listener used by the player is enabled for the game object on which the Motion FX is playing. If the listener is not enabled for the game object, verify your calls to AK::SoundEngine::SetListeners.


이 페이지가 도움이 되었나요?

지원이 필요하신가요?

질문이 있으신가요? 문제를 겪고 계신가요? 더 많은 정보가 필요하신가요? 저희에게 문의해주시면 도와드리겠습니다!

지원 페이지를 방문해 주세요

작업하는 프로젝트에 대해 알려주세요. 언제든지 도와드릴 준비가 되어 있습니다.

프로젝트를 등록하세요. 아무런 조건이나 의무 사항 없이 빠른 시작을 도와드리겠습니다.

Wwise를 시작해 보세요