1

我正在尝试在 FrameMarker 中渲染声音和 3D 模型。比如有A1.h A2.h A3.h <----- 3D模型 A4.wav A5.wav <------声音

FrameMarker ID 0,1,2 用于 A1-A3.h(3D 模型)

如何在 FrameMarker ID 3,4 的代码中添加声音

下面是渲染 3D 模型的代码:

- (void) setup3dObjects

{

    [self add3DObjectWith:A1NumVerts ofVertices:A1Verts normals:A1Normals texcoords:A1TexCoords

                     with:NUM_R_OBJECT_INDEX ofIndices:RobjectIndices usingTextureIndex:0];

    [self add3DObjectWith:A2NumVerts ofVertices:A2Verts normals:A2Normals texcoords:A2TexCoords

                     with:NUM_R_OBJECT_INDEX ofIndices:RobjectIndices usingTextureIndex:1];

    [self add3DObjectWith:A3NumVerts ofVertices:A3Verts normals:A3Normals texcoords:A3TexCoords

                     with:NUM_R_OBJECT_INDEX ofIndices:RobjectIndices usingTextureIndex:2];

}
4

0 回答 0