Check out this page in our documentation.
http://www.worldviz.com/vizhelp/InfiniteTerrain.htm
This explains how to use the infinite terrain plugin. Just to let you know, if you try to run that snippet of code that's provided on that page it won't find the jpg, just use one of your own. You'll also have to add the viz.go() into there.