Whython, 5959 57 bytes
f=lambda F,a,b,x=0,y=0:F[y][x%lenF[a-1][x%len(F[0])]+f(FF[a:],a,b,x+b,y+a)?0
Attempt This Online!Attempt This Online!
Inputs a 2D array of booleans, and 2 integers.
Normal Python, 69 bytes
f=lambda F,a,b,x=0:F[a-1:]>[]and F[a-1][x%len(F[0])]+f(F[a:],a,b,x+b)