Chen.Gaowei Posted March 12, 2013 Posted March 12, 2013 I've found a weird problem with MeshOptimize<Mesh::Vertex>. MeshOptimize<Mesh::Vertex> vbuf(s->vertex,s->num_vertex,MeshVertexCompare<Mesh::Vertex>); In my application, I have a special requirement with this. When I load the same file, I will need the result to be always the same after running this optimization. I found it works when I only have one Unigine is running. But it randomly fails my requirement if I start another Unigine application. And what's more interesting is the number of vertices is smaller if another application is running. How would this be? Can anyone give me a clue about why this is happenning? Thanks!
manguste Posted March 14, 2013 Posted March 14, 2013 That's strange, should not be so. Could we have a minimal test case to reproduce that?
Chen.Gaowei Posted April 3, 2013 Author Posted April 3, 2013 That's strange, should not be so. Could we have a minimal test case to reproduce that? Sorry for the late response. I figured out this only happens if I am not using this function in the Mesh.cpp when creating the mesh, but it could happen if I use in MeshFile (I would like to reduce the memory usage therefore I optimize the vertices before fill it into the mesh). Anyway, since I can get the same result if I use it in Mesh.cpp, so it won't not bother me any more. Thanks!
Recommended Posts