added a code to regenerate 3d sparse noise on the fly.