helmut.bressler Posted July 22, 2014 Posted July 22, 2014 Hello, probably this is a very basic question, but for some reason I cannot save my ObjectMeshDynamic as a static mesh file. Therefore I tried to use the dynamic_xx.cpp examples as guideline, however when I modify the example by simply inserting the line mesh.save("huhu4.smesh"); i.e. in file dynamic_04.cpp, line 53 in the create_scene() method, I get the same error message in the log file: 18:02:58 Mesh::save(): unknown format of "huhu4.smesh" file 18:02:58 ObjectMeshDynamic::save(): can't save "huhu4.smesh" file (if I replace the mesh name by engine.getDataPath() + "huhu4.smesh" the result is the same, except that the full file path appears in the log file) What is required in order to get ObjectMeshDynamic::save() working? Many thanks, Helmut
elvieness Posted July 23, 2014 Posted July 23, 2014 Hello Helmut,To save your ObjectMeshDynamic as a static mesh file, you should specify the *.mesh file as an argument of the save() function: mesh.save("huhu4.mesh"); *.smesh files are used for animated characters.See also the article on Mesh File Formats: https://developer.unigine.com/en/docs/1.0/code/file_formats
helmut.bressler Posted July 23, 2014 Author Posted July 23, 2014 Oh that was really a stupid mistake from my side, I could have known that, for some reason I thought the 's' in 'smesh' is for static. Anyways, it works now! Thanks a lot! Helmut
Recommended Posts