JuliaReinforcementLearning / GridWorlds.jl

Help! I'm lost in the flatland!
MIT License
47 stars 9 forks source link

Implemented perspective view occlusion #52

Open landrumb opened 4 years ago

landrumb commented 4 years ago

This PR implements perspective occlusion as described in #30. To turn occlusion on or off, assign the kwarg perspective::Bool of get_agent_view to true or false.

This branch does not currently work, as environments without an objects attribute currently throw an error, and I'm at a loss for an elegant workaround. I'm also skeptical that it functions as desired, but I'm looking to solve the w.objects issue before trying to write tests to confirm it works and/or changing render_with_Makie to not highlight occluded spaces in the agent view.

Also, it's beyond me why this branch has every commit I've ever made on my fork. If anyone knows how to fix that, I'd greatly appreciate it.