MengeCrowdSim / Menge

The source code for the Menge crowd simulation framework
Apache License 2.0
138 stars 64 forks source link

Is there a way to import/convert an environment model to use in menge? #124

Open douglasbandeiraivo opened 5 years ago

douglasbandeiraivo commented 5 years ago

Is there a way to import/convert an environment model like this to use in menge?

curds01 commented 5 years ago

Sadly, nothing automated. Usually, when I produce more complex scenarios, I start with an obj file. There are some tools to go from obj to Menge-compatible inputs. I've been meaning to integrate with https://github.com/recastnavigation which is far more robust in this way, but I haven't gotten around to it.

In the case of the environment that you linked to, it'll require a navigation mesh because the traversible space isn't purely a flat terrain. But it's a relatively simple environment to create the mesh for -- assuming you can get it into a separate modeling tool.

I'm certainly open to improving the process if you've got some workable solutions. I've always been a bit embarassed about how awkward it is to introduce data into Menge.

douglasbandeiraivo commented 5 years ago

What are these tools to convert from obj to Menge-compatible inputs?

curds01 commented 5 years ago

I've got a number of python-based utilities; including one that converts an obj -> navigation mesh. Very low tech. The utilities are here: https://github.com/curds01/MengeUtils

douglasbandeiraivo commented 5 years ago

Thank you.