Igor_de Posted June 28, 2014 Share Posted June 28, 2014 Why there are no setVertices function same as ObjectMeshDynamic to set array of vertices to mesh? Link to comment
unclebob Posted July 8, 2014 Share Posted July 8, 2014 Hi Igor! I think that it wasn't necessary so we didn't add them. Are these functions will be useful to you? Could you give an example where these functions will be more useful than just bunch of setVertex calls? Link to comment
Igor_de Posted July 10, 2014 Author Share Posted July 10, 2014 Hi, I create a procedural mesh with more then 1000 vertices. Now I use ObjectMeshDynamic, but I do not need to modify the geometry at runtime. from your documentation: ◾ Intersections and collisions with dynamic meshes are slow (just like intersections and collisions with skinned meshes). So I want to use ObjectMesh. Make this functionality please. Link to comment
binstream Posted July 10, 2014 Share Posted July 10, 2014 You can save the dynamically constructed mesh into file and use it later on as a static one: https://developer.unigine.com/en/docs/1.0/scripting/library/objects/class.objectmeshdynamic#save_string_int Link to comment
joshua.cook Posted February 11, 2015 Share Posted February 11, 2015 But is there a way to build a mesh dynamically without the overhead of a dynamic mesh? We're doing automatic geometry generation on demand and do not know exactly what that object will be. We'd like to be able to build these things without saving them to disk to lose the overhead of a dynamic object. Link to comment
unclebob Posted February 12, 2015 Share Posted February 12, 2015 Hey Joshua, In 2.0 you're able to create Mesh class instance and set it to both ObjectMeshStatic and ObjectMeshDynamic. If you're using 1.0 then it's possible to create mesh via ObjectMeshDynamic then save it to file and load as ObjectMesh. Link to comment
Recommended Posts