Viewport3d example lifecycle.