Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

General questions, converted osm and Blender #2

Open
Lu7913 opened this issue Jul 20, 2020 · 4 comments
Open

General questions, converted osm and Blender #2

Lu7913 opened this issue Jul 20, 2020 · 4 comments

Comments

@Lu7913
Copy link

Lu7913 commented Jul 20, 2020

Hello,
I'm trying to convert xodr to osm, and then from osm in Blender, to fbx and then import xodr and fbx in Carla simulator, since osm to xodr converting with Sumo doesn't work in Carla (for now), because of Poly3 geometry.

I'm having some problems importing converted osm to Blender, looks like it is not working or better saying I'm having problems understanding how this converting works.
Is it possible tho achieve what I'm trying to do with this converter? Since I'm beginner could you explain briefly how this with converter works?

Thank you

@simon0628
Copy link
Collaborator

Hi Lu. Generaly speaking, the parser samples the OpenDRIVE road networks that are expressed analytically, storing key nodes required by the OSM format at appropriate intervals, and connecting the nodes in straight lines finally. However, we did not check compatibility of different version of OpenDRIVE files (as they differ a lot accross versions).
If you have problems using the converter, it will be helpful to send me the OpenDRIVE file to [email protected]. Also, for what you're trying to do with this converter, Carla has provided a tool to generate geometry and models for OpenDRIVE files since 0.9.8, VectorZero's RoadRunner can do this job too.
Hope to get further contact!

@Lu7913
Copy link
Author

Lu7913 commented Jul 21, 2020

Hi Simon,
Yes I know about the RoadRunner but it is not opensource, with RoadRunner all my problems would be solved:) I have .xodr files but to create fbx. files I need some software (Blender). Blender has addon to import .osm files an then I can generate 3D environment with Blender and export .fbx file and I also have original .xodr file compatible with Carla. (as I mentioned before I could generate fbx. with Blender from original .osm files but SUMO doesn't convert right .xodr files to be imported in Carla, but Carla team is doing something on this). - just to clarify some thing more

I tried with OpenDRIVE demo file http://www.opendrive.org/download.html, for start, which was already converted to .osm in downloaded files from github. But when importing to Blender, it imports, but is not showing anything.

I'm new to python and all this stuff, so I don't know how to convert my own .xodr file since Readme is quit short. I tried changing some file names in some python scripts, but it doesn't work.

Sorry for basics questions, having some troubles with learning python.
BR.

@simon0628
Copy link
Collaborator

Hi Lu,
We've tried OpenDRIVE demo file before and the result OSM works well with CithEngine (a building modeling software). AFAK the OSM also has many different specifications. For example, our result OSM file needs to be adjusted slightly (add a SUMO-customized tag) so that it can be used in SUMO.
For your situation, if the Blender displays nothing after importing, maybe its something wrong with the OSM specification. You can try some different OSM file to choose the right one and compare its difference with our result OSM file.
Also, we will improve compatibility of our Converter but it takes time :)

@ronyshaji
Copy link

@Lu7913 Do you find a solution to create a .fbx file using this method?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants