edbeeching / godot_rl_agents_examples

Example Environments for the Godot RL Agents library
MIT License
37 stars 13 forks source link

Add volleyball environment #21

Closed Ivan-267 closed 6 months ago

Ivan-267 commented 7 months ago

A Human VS AI arcade style volleyball mini-game example trained with a single policy using sb3.

https://github.com/edbeeching/godot_rl_agents_examples/assets/61947090/713b28e1-cad3-431e-9c00-5661d9504c31

[!WARNING] This env uses https://github.com/edbeeching/godot_rl_agents_plugin/pull/34 which is currently in testing. It's possible to decouple by adding overrides if needed, but the features from the PR allow for an easy way to set a specific AIController as human.

Ivan-267 commented 7 months ago

Updated the video to match the newest onnx included in the files. I also added some training instructions in the readme of the env. It can be also used for future reference when/if we add some configuration files or training scripts.

Note: I get some shader errors on load, it could be due to missing some cache files in .godot folder (since we're not including the folder). The cause might be that I'm using two modified shaders in the env (for rotating the clouds and swaying the grass). I'll check this further. Seems to have been a local issue with file access, resolved by moving the folder to a different location before opening in Godot.