Added on-the-fly matrix data generation

-not working properly at this time: crashes my AMD display driver, among
other things