I’ve created geometry and added the polys
[code:29k1ee9l]result = FMOD_System_SetGeometrySettings(system, 200.0f);
result = FMOD_System_CreateGeometry(system, 500, 1500, &Geometry);
pi = 0;
result = FMOD_Geometry_AddPolygon(Geometry, 1.0, 1.0, 0, npts, vertices, &pi);
The geometry of the object will change so I will need to call FMOD_Geometry_SetPolygonVertex to update the new vertex position.

"vertices" is updated with the new positions before this.
for ( i = 0; i < npols; i++ ) {
for ( j = 0; j < npts; j++ ) {
result = FMOD_Geometry_SetPolygonVertex(Geometry, i, j, vertices);

Now, fmod keeps blocking sounds behind the old vertices info.
If I check the point values with FMOD_Geometry_GetPolygonVertex I do get thier NEW positions? So the vertices do have their correct xyz values.
Note, the baseobject position does not change, only the vertices position.

Any help?


Just a note, I am using FMOD_Geometry_SetPosition, FMOD_Geometry_SetRotation and it works great. Just this SetPolygonVertex that doesn’t work.

  • You must to post comments
Showing 0 results
Your Answer

Please first to submit.