Roadrunner: Correct elevation for an road imported as an FBX file

How can I trace an road prop (fbx) using Road Plan Tool and get accurate elevation of the road? Ideally I would like a snap to mesh feature or for the cross section of the fbx road prop to appear in the 2D editor.
A little more detail...
I have a scene modeled outside of Roadrunner as a number of seperate FBX files including meshes and textures. This includes buildings, signs, trees and roads etc. I've imported all of the assets and they looks great. I now just need to create a OpenDrive file describing the road layout.
I have been using the Road Plan Tool to trace over the road prop that I have imported. This works perfectly for the x and y plane, however, elevation is tricky to get right. The fbx road file has gradients so it is critical that the OpenDrive road description mateches the elevation in my fbx file. I've tried for hours using the 3D view and 2D view and it is impossible to get the annotation correct manually without a guide in the 2D view.
My initial attempt to solve this was to create a height map in Blender (like you would but a bump map) for my mesh them import this as Elevation Map then use it to help guide the annotation. However, this hasn't been fruitful because I can't get the projection to work for the height data and I can't display the height data in Road Runner.
Any suggestions on how to solve this would be really appriciated!

2 Comments

I would love to know the same thing but this forum seams super dead. There are tons of questions unanswered and i am sure mine will go under too.
For the elevation data projection, I used two types of files. One was obtained from the BB Bike website, where I selected a specific region, and it provided a shapefile containing the road descriptions. The other website I consulted was OpenTopography, which provided the elevation data. Once I had these ".tif" files and the descriptive "roads" files (with extensions like "roads.shp, .shx, .prj, .dbf, .cpg"), I proceeded to generate the ".rrhd" description file. Part of this process is documented on the MATLAB website. However, the part I'm having trouble with is the "surfacing" of the surrounding area, respecting the elevation features such as mountains. I've already resolved the road contours with their respective elevations using the process I described.

Sign in to comment.

Answers (0)

Products

Release

R2020b

Asked:

on 22 Dec 2020

Commented:

on 9 Dec 2025

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!