ss3d: implemented viewport