OpenDRIVE
OpenDRIVE copied to clipboard
Failed to re-produce your screen shot.
I tried the plugin in UE4 but failed to re-produce the result of your screen shot, nothing shows up when I use the OpenDriveComponent.
Could you elaborate? Which screenshot are you talking about? What result do you obtain instead?
All the screenshots in README could not be re-produced.
Could you provide more details about what behavior you have instead? The first screenshot actually is from the project settings, so if you can't get to there, that's beyond my area.
Hello, I am also using Unity 4.27, and I am unable to reproduce your results. I have followed the instructions till "Add the OpenDRIVE file to your level". And I have used this xodr file https://github.com/carla-simulator/opendrive-test-files/blob/master/OpenDrive/Town01.xodr. But I dont see any roads in my level. Am I missing something?
But I dont see any roads in my level. Am I missing something?
The plugin doesn't generate mesh from the OpenDRIVE road network, and there's no visualization other than the OpenDRIVE Reader BP.
To generate mesh data from an OpenDRIVE file, I would recommend using RoadRunner. If you're using CARLA's OpenDRIVE, the 3D maps are also included in their content packages.
Potentially you can also check this project: https://github.com/johschmitz/blender-driving-scenario-creator I haven't tested it myself, but it creates roads in Blender. From which you should be able to export in e.g. FBX format.
Sorry I misunderstood the goal of the project.
What does sculpting do? When I click on sculpt landscape, it creates a depression in the landscape which looks like the opendrive map. See the attached the screenshot.
Actual Map
Is this the expected behaviour?
Sculpting does pretty much just that, yes. If your landscape has layers, the sculpting tool can auto-paint a layer under roads (e.g., asphalt), but I wouldn't recommend using it that way, as the idea behind it was more to remove foliage layers. Sculpting is more useful if you have height variation within your OpenDRIVE (e.g., mountain road).
The plugin was made assuming you already have the 3D representation, and its goal is to allow manipulating the OpenDRIVE data (e.g., roads, lanes) directly from the engine. For example, we use it to populate the scene with cars that can automatically follow their lanes, or obey basic traffic rules.
Generating 3D from OpenDRIVE is quite challenging and not planned from our side, as we don't have the resources and rely on RoadRunner instead (which does the job quite well). But having an in-engine OpenDRIVE editor+mesh generator would obviously be amazing.
Thank You for replying. "Generating 3D from OpenDRIVE" is what I wanted to do, but I want the tool to be in UE4 and not rely on any external softwares. Unfortunately I couldn't find any such tool for UE4. So, I have decided to build it myself, wish me luck :-).
Good luck indeed! If you plan on open-sourcing it, don't hesitate to contact me if you need some help. Since I'd also be interested in such features, I can probably contribute some time.