johschmitz / blender-driving-scenario-creator

Blender add-on for creating OpenDRIVE and OpenSCENARIO based automotive driving scenarios including 3D models
GNU General Public License v3.0
231 stars 36 forks source link

CARLA map import experience #23

Open ishaan95 opened 1 year ago

ishaan95 commented 1 year ago

Hello,

Since several issues refer to this task (#21, #14, #4), I thought writing about my experience here would be useful. I ran both tools on Windows. Here was the process:

Here are the outputs on Blender and CARLA:

blender-intersection unreal-blender-intersection

johschmitz commented 1 year ago

Hey @ishaan95 thanks a lot for the summary! I'll at some point have to sit down and write something very similar down into a user documentation but for now I think I can link to this issue when the question comes up. One thing that seems a bit problematic to me in this step by step description is the "file renaming" step. In case the link between the OpenSCENARIO file and the 3D mesh file is needed during runtime this might create an issue and the XML code might have to be updated as well. I believe in your case this was no problem since you used the "offline" .fbx import and probably only used OpenDRIVE.

ishaan95 commented 1 year ago

Yes, I only used opendrive. There might be an issue if Openscenario is to be used (maybe .xosc file with same name as the other 2 might help).

If we had an "export to CARLA" button which created only FBX and Opendrive with the same name and exported by hiding the connecting roads, that would be great!

johschmitz commented 1 year ago

I will put that on my TODO list.

johschmitz commented 1 year ago

@ishaan95 I have released an update and I am now not exporting the connecting roads as part of the 3D mesh. Hope that suits your use case.

ishaan95 commented 1 year ago

Thank you. Will test the export and get back to you.

johschmitz commented 1 year ago

@ishaan95 make sure to create a track from scratch or it might not work since it will already be corrupted before export in the old version. Keep in mind that I will sometimes break compatibility in the 0.x versions if necessary.