Jump to content

[SOLVED] ObjectMeshDynamic::save() fails


photo

Recommended Posts

Posted

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
Posted

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

×
×
  • Create New...