The groundmesh optimize function makes the terrain disappear: http://www.babylonjs-playground.com/#ON8FM
It seems to only work if it is run repeatedly during the update loop: http://www.babylonjs-playground.com/#ON8FM#1
It's far too expensive to run this every frame on a large terrain though... how come it can't just run once to create the octree if the geometry isn't changing?