Closed somdebma closed 6 years ago
This issue went away if I comment out this line in raceengine.cpp
glReadBuffer(GL_FRONT);
Probably some device specific openGL error was causing zeros to be read into the image buffer.
glReadPixels
works fine without fine without first using glReadBuffer
.
If I just run the file snakeoil_gym.py, I am getting an all zero image every time. If I print out
recv_data
values withinget_servers_input_tcp()
they are basically allx00
. The simulation plays fine on the UI - i.e.,drive_example
executes fine and I can see the graphics within the Torcs window fine. Any idea why this is happening? Can you point me to the location of the torcs source files where you made the modifications to get tcp data? I might be able to decode this better then.