版本
menu

安装和运行 Cube Demo

Cube Demo 数据包包含以下组件:

  • Audiokinetic 的 Debug、Profile 和 Release 版《Cube》游戏。

  • 用于修改声音并将其添加到游戏中的 Wwise 工程。

  • 《Cube》游戏引擎源代码和文档。

[Note]Note

内容提供商发来的素材最初都是高品质的(48 kHz/16 或 24 位)。不过,为了节省下载时间和磁盘空间,有些声音素材的大小被减小了。

To install and run Cube using the Audiokinetic Launcher:

  1. In the Audiokinetic Launcher, select the Samples page.

  2. Click Cube from the list of samples.

  3. Select a version and click Install.

    The list of requirements installed with Cube is displayed.

  4. Click Install.

  5. Confirm both the Wwise and Cube target directories and then click Install again.

    The version of Cube you installed is displayed under Installed Versions. For more information about options on the Cube page, see Samples in the Audiokinetic Launcher guide.

  6. To run your installed version of Cube, click Run Cube.

To run Cube without the Audiokinetic Launcher

For various reasons, you might prefer to run Cube without the Launcher. 对此,我们有替代的方式。不过,会因运行平台(Mac 或 Windows)而略有差异。

在 Mac OS X 上

[Note]Note

在开始之前,确保在 Wwise 安装期间选中 SDK (C++)macOS 来安装 Wwise SDK for Mac。若要将这些选项添加到现有 Wwise 安装包,请转到 Launcher 的 Wwise 页面,然后点击安装包右侧的扳手按钮并选择 Modify...

  1. 方法 1:使用 Shell 脚本。

    1. 确保解压后的 Cube Demo 文件夹与安装的 Wwise SDK Mac 分发包共用同一父文件夹。比如,若 Wwise SDK 文件夹为 ${HOME}/Wwise/wwise_${version_tag}/SDK,则 Cube Demo 根文件夹须为 ${HOME}/Wwise/wwise_${version_tag}/CubeDemo。

    2. 在以下位置找到可执行 Shell 脚本:$Applications/Audiokinetic/<Wwise_version>/Cube/Mac/<mode>/bin/RunCubeDemo.sh。其中,<mode> 对应于相应的模式文件夹(Debug、Profile 或 Release)。

    3. 若 .sh 文件配置为通过 Terminal 打开,请在 Finder 中双击这些文件。否则,请在 Shell 脚本的目录中打开 Terminal,然后键入 RunCubeDemo.sh 并按下 Enter

  2. 方法 2:在 Xcode 下运行。

    1. 确认是否已安装 Xcode。若 Applications 文件夹中没有 Xcode,请从 Mac App Store 下载并予以安装。

    2. 确保解压后的 Cube Demo 文件夹与安装的 Wwise SDK macOS 分发包共用同一父文件夹。比如,若 Wwise SDK 文件夹为 ${HOME}/Wwise/wwise_${version_tag}/SDK,则 Cube Demo 根文件夹须为 ${HOME}/Wwise/wwise_${version_tag}/CubeDemo。

    3. 在 Xcode 中,打开以下 Xcode 工程:/path/to/CubeDemo/cube_source/src/Mac/CubeMac.xcodeproj。

    4. 构建并运行工程。

在 Windows 上

  1. 方法 1:使用 BAT 脚本。

    1. 在通过 Audiokinetic Launcher 安装 Cube Demo 后,会在 <WwiseRoot>\Cube\cube 文件夹中创建 BAT 文件。在 File Explorer 中打开此文件夹。

    2. 双击与要运行的 Cube Demo 版本对应的 BAT 文件:Debug、Profile 或 Release 模式。或者,打开 Command Prompt 窗口,然后键入 BAT 文件的路径并按下 Enter

  2. 方法 2:通过 Command Prompt 运行可执行文件。

    1. 找到并运行 cube.exe 可执行文件。该文件可在 <WwiseRoot>\Cube\Win32\<mode>\bin 下找到。其中,<mode> 对应于相应的模式文件夹(Debug、Profile 或 Release)。


此页面对您是否有帮助?

需要技术支持?

仍有疑问?或者问题?需要更多信息?欢迎联系我们,我们可以提供帮助!

查看我们的“技术支持”页面

介绍一下自己的项目。我们会竭力为您提供帮助。

来注册自己的项目,我们帮您快速入门,不带任何附加条件!

开始 Wwise 之旅