lgsvl / simulator

A ROS/ROS2 Multi-robot Simulator for Autonomous Vehicles
Other
2.24k stars 772 forks source link

How to modify the appearance of obstacles? #1730

Closed ideasplus closed 2 years ago

ideasplus commented 2 years ago

Hi Team,

I want to modify the appearance of specific obstacles and run simulation with them. I couldn't find relevant tutorial on it. Could you provide me some help to achieve this goal?

Firstly, I want to modify the NPC such as adding a patch at specific position on car body. The effect is as follows.

https://user-images.githubusercontent.com/24294571/131774400-ec7c489c-3456-402e-b069-9948b3fe4ccf.mp4

Secondly, I want to modify the stop sign in the CubeTown map such as adding some noise on it.

Screenshot from 2021-09-02 10-34-59

EricBoiseLGSVL commented 2 years ago

@ideasplus Since NPCs and CubeTown are open source, you can make any changes you need.

I also recommend looking into some Unity tutorials to see how HDRP, shaders, decal projectors work. Unity's documentation is a great resource into using the engine.

Hope this helps

ideasplus commented 2 years ago

@EricBoiseLGSVL Thanks for your feedback.

I'm sorry that I didn't clarify the second requirement. I want to replace the original stop sign with my modified stop sign. Could you give me some suggestions on how to achieve it?

EricBoiseLGSVL commented 2 years ago

Glad to help and no worries.

tianyunzhe commented 2 years ago

@EricBoiseLGSVL Thanks for your feedback.

I'm sorry that I didn't clarify the second requirement. I want to replace the original stop sign with my modified stop sign. Could you give me some suggestions on how to achieve it?

Hi, I am a beginer. I meet the same task. Could you provide me some detailed steps to achieve this goal? Many thanks!

EricBoiseLGSVL commented 2 years ago

image

1) Place the meshes/materials/textures/prefab in the CubeTown folder so when you build the map, it bundles these with it 2) Place the prefab of your new road sign in the CubeTown scene, delete or disable signs you don't need. 3) Save the scene 4) Build the map bundle and upload to webui. Be sure to name it different so know it's the altered one.

Good luck, you got this. Be sure to check out any Unity Editor videos if you are confused on how to use the Editor.