edbeeching / godot_rl_agents_plugin

The Godot plugin asset for the Godot RL Agents library
MIT License
121 stars 16 forks source link

Adds downscaling to RGBCameraSensor3D.gd #37

Closed Ivan-267 closed 5 months ago

Ivan-267 commented 8 months ago

Adds the ability to resize the image before sending it to the Python server.

image

Briefly tried on the VirtualCamera example.

Setting a high image render resolution will have a performance impact, and using some interpolation options can have an impact (although I did not measure the impact), so it is currently using just nearest-neighbor.