0
0

I’ve created geometry and added the polys
[code:29k1ee9l]result = FMOD_System_SetGeometrySettings(system, 200.0f);
ERRCHECK(result);
result = FMOD_System_CreateGeometry(system, 500, 1500, &Geometry);
ERRCHECK(result);
pi = 0;
result = FMOD_Geometry_AddPolygon(Geometry, 1.0, 1.0, 0, npts, vertices, &pi);
ERRCHECK(result);[/code:29k1ee9l]
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.
[code:29k1ee9l]
for ( i = 0; i < npols; i++ ) {
for ( j = 0; j < npts; j++ ) {
result = FMOD_Geometry_SetPolygonVertex(Geometry, i, j, vertices);
ERRCHECK(result);
}
}[/code:29k1ee9l]

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?

EDIT

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.