blender-driving-scenario-creator icon indicating copy to clipboard operation
blender-driving-scenario-creator copied to clipboard

An OpenDRIVE file importer for Blender

Open ishaan95 opened this issue 1 year ago • 1 comments

Hello,

Using a parser for OpenDRIVE and its capability to generate .obj files, I was able to create an OpenDRIVE importer for Blender. I separated the .obj files for multiple elements so that each can have a different material applied to them. Currently, it's just the base road mesh and road markings. Luckily, all the imported meshes seem to have the same origin so no transformations are needed. Once the .obj files are brought in, I can apply materials and create a hierarchy for the meshes.

We can completely run the process without opening the Blender GUI to go from OpenDRIVE to FBX using the command blender --background --python <scriptname.py> -- <path to .obj 1> <path to .obj 2> <path to fbx output>. This can be combined with the steps mentioned in #23 to bring generated maps into CARLA if needed.

ishaan95 avatar May 14 '23 10:05 ishaan95

@ishaan95 nice work! This is still not going to enable editing of OpenDRIVE, which is a much harder problem, but it is a really good addition to have this tool for Blender! I think I could add a section with links to additional tools to the readme like esmini did and mention it there, among some other closely related things.

johschmitz avatar May 17 '23 05:05 johschmitz