Hi,
I'm not sure if I've found a bug or if I've misunderstood the documentation. It seems that a GeometryRes's resource count gets increased by h3dAddModelNode() but not decreased by h3dRemoveNode(). If I manually decrement it, using h3dRemoveResource(), everything is fine. Thats odd.
Here is what I do (simplified):
1. res = h3dutCreateGeometryRes("GeometryName", ...);
2. model = h3dAddModelNode(..., res);
3. for each material: h3dAddMeshNode(model, ...);
... render several frames ...
4. h3dRemoveNode(model);
5. h3dReleaseUnusedResources();
6. Start again from 1. (since the number of vertices may change, I cannot update the resource using Map/Unmap).
The following assertion fails on the "second iteration" of my code.
h3dFindResource(H3DResTypes::Geometry, "GeometryName") == 0
If this isn't an implementation bug it's definitely a documentation one, since the resulting application bugs are non-obvious and hard to track down. So: which one is it?
Regards