metadriverse / scenarionet

ScenarioNet: Scalable Traffic Scenario Management System for Autonomous Driving
Apache License 2.0
192 stars 23 forks source link

How to opt out generating those blue cubes in output gifs? Is it possible to get first person view / ego view results? #45

Closed Kevin6liu6 closed 9 months ago

Kevin6liu6 commented 1 year ago

When I was trying to generate 3D rendered gifs, I get blue cubes on the way of ego vehicle (I used mode="rgb_array"), is it possible to opt it out? Or which part of code I should look into if I want to modify the code base on my own? Also, I was to get ego view results, is it possible? image

QuanyiLi commented 1 year ago

Just set env_config["vehicle_config"]["show_navi_mark"]=False when creating the environment with the config dict env_config.

Kevin6liu6 commented 12 months ago

Got it! Thank you for answering.

Kevin6liu6 commented 12 months ago

Also, is it possible to get ego car view renderings? Or only third person view is available?

QuanyiLi commented 12 months ago

Of course. Just put these lines into the config:


"camera_dist": 0.8,
"camera_height": 1.5,
"camera_pitch": 15,
"camera_fov": 60,
"camera_smooth": False,

You can adjust the pitch parameter to change the angle and use the dist/height to change its position.

Kevin6liu6 commented 12 months ago

I will try to adjust the parameters! Thank you for reply, it helps

pengzhenghao commented 9 months ago

Feel free to reopen if any question exists