app/src/main/java/fi/finwe/orion360/sdk/pro/examples/gallery/ThumbnailPager.java
protected void initialize() {

        // Create a new gallery from hard-coded video file path.
        mGallery = new Gallery(MEDIA_PATH);

        // Create a new camera. This will become the end-user's eyes into the 3D world.
        mCamera = new OrionCamera();

        // Bind camera as a controllable to sensor fusion. This will let sensors rotate the camera.
        mOrionContext.getSensorFusion().bindControllable(mCamera);

        // Create a new touch controller widget (convenience class), and let it control our camera.
        mTouchController = new TouchControllerWidget(mCamera);

        // Initialize video player components.
        initVideoPlayer();

        // Initialize gallery components.
        initGallery();

        // Find Orion360 view from the XML layout. This is an Android view where we render content.
        mView = (OrionView)findViewById(R.id.orion_view);

        // Bind the scene to the view. This is the 3D world that we will be rendering to this view.
        mView.bindDefaultScene(mGalleryScene);

        // Bind the camera to the view. We will look into the 3D world through this camera.
        mView.bindDefaultCamera(mCamera);

        // The view can be divided into one or more viewports. For example, in VR mode we have one
        // viewport per eye. Here we fill the complete view with one (landscape) viewport.
        mView.bindViewports(OrionViewport.VIEWPORT_CONFIG_FULL,
                OrionViewport.CoordinateType.FIXED_LANDSCAPE);
    }
/**
     * Initialize after receiving required permissions.
     */
Initialize after receiving required permissions.
Initialize after receiving required permissions .
protected void initialize() {
        mGallery = new Gallery(MEDIA_PATH);
        mCamera = new OrionCamera();
        mOrionContext.getSensorFusion().bindControllable(mCamera);
        mTouchController = new TouchControllerWidget(mCamera);
        initVideoPlayer();
        initGallery();
        mView = (OrionView)findViewById(R.id.orion_view);
        mView.bindDefaultScene(mGalleryScene);
        mView.bindDefaultCamera(mCamera);
        mView.bindViewports(OrionViewport.VIEWPORT_CONFIG_FULL,
                OrionViewport.CoordinateType.FIXED_LANDSCAPE);
    }
protected void initialize ( ) { mGallery = new Gallery ( MEDIA_PATH ) ; mCamera = new OrionCamera ( ) ; mOrionContext . getSensorFusion ( ) . bindControllable ( mCamera ) ; mTouchController = new TouchControllerWidget ( mCamera ) ; initVideoPlayer ( ) ; initGallery ( ) ; mView = ( OrionView ) findViewById ( R . id . orion_view ) ; mView . bindDefaultScene ( mGalleryScene ) ; mView . bindDefaultCamera ( mCamera ) ; mView . bindViewports ( OrionViewport . VIEWPORT_CONFIG_FULL , OrionViewport . CoordinateType . FIXED_LANDSCAPE ) ; }
Initialize after receiving required permissions.
Initialize after receiving required permissions .
// Create a new gallery from hard-coded video file path. // Create a new camera. This will become the end-user's eyes into the 3D world. // Bind camera as a controllable to sensor fusion. This will let sensors rotate the camera. // Create a new touch controller widget (convenience class), and let it control our camera. // Initialize video player components. // Initialize gallery components. // Find Orion360 view from the XML layout. This is an Android view where we render content. // Bind the scene to the view. This is the 3D world that we will be rendering to this view. // Bind the camera to the view. We will look into the 3D world through this camera. // The view can be divided into one or more viewports. For example, in VR mode we have one // viewport per eye. Here we fill the complete view with one (landscape) viewport.