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

An OpenDRIVE file importer for Blender #27

Open
ishaan95 opened this issue May 14, 2023 · 1 comment
Open

An OpenDRIVE file importer for Blender #27

ishaan95 opened this issue May 14, 2023 · 1 comment

Comments

@ishaan95
Copy link

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.

@johschmitz
Copy link
Owner

johschmitz commented May 17, 2023

@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.

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

2 participants