OpenDRIVE icon indicating copy to clipboard operation
OpenDRIVE copied to clipboard

Failed to re-produce your screen shot.

Open ezpod opened this issue 3 years ago • 10 comments

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.

ezpod avatar Nov 24 '21 15:11 ezpod

Could you elaborate? Which screenshot are you talking about? What result do you obtain instead?

brifsttar avatar Nov 24 '21 16:11 brifsttar

All the screenshots in README could not be re-produced.

ezpod avatar Jan 16 '22 16:01 ezpod

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.

brifsttar avatar Jan 16 '22 16:01 brifsttar

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?

satyamjay-iitd avatar Jan 17 '22 06:01 satyamjay-iitd

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.

brifsttar avatar Jan 17 '22 08:01 brifsttar

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.

eknabevcc avatar Jan 17 '22 08:01 eknabevcc

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. Screenshot 2022-01-17 190739 Actual Map Screenshot 2022-01-17 191011

Is this the expected behaviour?

satyamjay-iitd avatar Jan 17 '22 13:01 satyamjay-iitd

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.

brifsttar avatar Jan 17 '22 14:01 brifsttar

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 :-).

satyamjay-iitd avatar Jan 18 '22 14:01 satyamjay-iitd

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.

brifsttar avatar Jan 18 '22 14:01 brifsttar