It worked I changed the {0.125f,0.125f} to {512.f,512.f} and it seems to be working. Thanks again for ur help @JesperJuhl !