bbitmaster / ale_python_interface

A Python Interface for the Arcade Learning Environment (Shared Object)
GNU General Public License v2.0
126 stars 32 forks source link

Wrong display on pygame #9

Open jmsalash opened 6 years ago

jmsalash commented 6 years ago

When feeding the screen from ALE into pygame using ale.GetScreenRGB(the buffer), the screen displayed is distorted.

It seems like the python GetScreenRGB function does not return RGB (it is the same size as grey scale, when it should be 3 times). GetScreenGrayscale doesn't solve the issue though, so maybe a mismatch between the output format between python and c++?

jmsalash commented 6 years ago

This issue seems to be related to the way of using the buffer to draw the screen - I will pull the code and modify the examples to work shortly.