export road geometry to blender [message #1859568] |
Thu, 15 June 2023 19:09  |
Eclipse User |
|
|
|
I am trying to find a way to export Sumo road geometry for use in Blender.
I Found a thread on this website indicating that a program from sidewalklabs on github,
https://github.com/sidewalklabs/sumo-web3d
should be able to help me go from SUMO to blender by converting json files of road geometry.
I cannot figure out how to install sumo-web3d. The documentation there is confusing to me as I am new to python and js. I have the sumo-web3d.py file but I presume I have not done the correct initializing setup to get it to run.
Any help in setting up sumo-web3d would be greatly appreciated, or
suggestions as to how to export Sumo network road geometry for import to Blender (obj file) would be great as well.
Thanks!
|
|
|
Re: export road geometry to blender [message #1859677 is a reply to message #1859568] |
Thu, 22 June 2023 04:20  |
Eclipse User |
|
|
|
Sounds like you're diving into some pretty cool stuff! Don't sweat it, setting up Python and JS projects can be a bit of a learning curve.
For sumo-web3d, you'd first need Python (preferably 3.x) and pip installed on your system. Then, you'd want to clone the GitHub repo and install the requirements using pip. If you're on a Unix-like system (like Linux or macOS), the commands would look something like this:
git clone https://github.com/sidewalklabs/sumo-web3d.git
cd sumo-web3d
pip install -r requirements.txt
After that, you should be able to run the script. If you're on Windows, the commands are similar, but you'll need to use a Git Bash or similar terminal emulator.
As for Blender, you might want to check out the netconvert tool from SUMO. It can export to .obj, which you can import directly into Blender.
|
|
|
Powered by
FUDForum. Page generated in 0.03511 seconds