forked from: papervision test

