tier4 / AWSIM

Open source simulator for self-driving vehicles
https://tier4.github.io/AWSIM/
Other
508 stars 99 forks source link

Lidar not hitting Unity Terrain #145

Closed Ushtarador closed 1 year ago

Ushtarador commented 1 year ago

Checklist

Description

Hey all, I've created some custom offroad terrain using the Unity Terrain editor, but unfortunately the lidar does not register hits on the terrain. My terrain has a Terrain Collider, but I guess that doesn't seem to work - can anyone suggest a smart workaround for this problem?

Ushtarador commented 1 year ago

Just a small update, I currently worked around the issue by exporting my terrain as a mesh to a .obj file, and then reimporting it, overlaying it with the terrain and assigning it an invisible material. It works for now but I really don't like it ^^

msz-rai commented 1 year ago

Good news! We are currently working to support terrain by LiDARs (by RGLUnityPlugin). I am sharing some early results. The feature will be merged into the main branch soon.

jediofgever commented 1 year ago

Just a small update, I currently worked around the issue by exporting my terrain as a mesh to a .obj file, and then reimporting it, overlaying it with the terrain and assigning it an invisible material. It works for now but I really don't like it ^^

That is hardly a remedy, I did the same temporarily, but what about other objects, e.g trees or plants ? Great news that they are working toward it.

Jakub-Krakowiak commented 1 year ago

Good news, terrain is now supported as our pr has been merged. RGL supports now terrain heightmap and trees, but not detail objects, such as grass.