---
title: "Review occlusion fixing"
canonical: "https://help.vicon.com/space/ShogunPost121/1253736463/Review%20occlusion%20fixing"
format: markdown
---
When you import an .*mcp* file or perform any processing that includes occlusion fixing, your first step is to review it to ensure that it is labeled correctly and that the automatic occlusion fixing worked well.

Note that although occlusion fixing is similar whether you are working with data captured using markers or with Shogun Markerless, the procedure is slightly different as explained in the following sections:

> Macro (toc)

> Macro (scroll-pagebreak)

## Occlusion fixing for marker-based mocap files

For marker-based capture made with Shogun Live, to review occlusion fixing in Shogun Post, the following (default) settings must be selected in Live and Post:

- In **Shogun Live**: Before capture, in the **General** section of the **Processing** panel, ensure **Occlusion Fixing** (an advanced option > Macro (inline-media-image)

) is selected.
  This normally produces higher quality results, especially during occlusion-heavy moves such as interactions and when a subject is on the edge of the volume. Occlusion fixing is stored as a layer when the .*mcp* data is recorded.
- In **Shogun Post**: Before importing the .*mcp *file that was captured with **Occlusion Fixing** selected as described previously, in the **Preferences** (**General** > **Preferences**), select the **File Import** tab and make these selections:
  - In the **File Format** field, select **MCP File**.
  - Ensure **Apply Fixed Markers** is selected.

You can then compare the data before and after occlusion fixing in a **3D Scene** view (or any other 3D view) in Post. 

> Macro (scroll-pagebreak)

## Occlusion fixing for markerless mocap files

For captures made with Shogun Markerless, to perform occlusion fixing in Shogun Post, in the **Processing** panel, select the **Markerless Mocap** tab and then click **Clean**.

> ![Markerless Mocap tab of Processing panel in Vicon Shogun Post, with Clean selected.](media://dfc73e87-2719-49e1-b8cd-d6c0d77f1f61)

You can then use any of the occlusion fixing tools on your markerless data other than those on the **Marker Mocap** tab on the **Processing** panel.

> Macro (scroll-pagebreak)

## Compare data before and after occlusion fixing

Note that, by default, in the 3D Scene view **Show All Clips** is selected:

> ![3D Scene in Vicon Shogun Post, with Show All Clips selected.](media://6df93913-0887-4553-8288-60faf6f51460)

This is necessary to enable you to view data from the backup clip, which contains the data before occlusion fixing, as well as the current (occlusion-fixed) clip.

> ⚠️ **Important**  
> ⚠️ If required, you can revert back to the raw data after loading the .*mcp* file into Shogun Post by using the **Restore** section of the **Marker Editing** panel.  
> ⚠️ Note that the occlusion fixing algorithm affects **all** the markers on a subject. For this reason you should run occlusion fixing only once: either during capture in Shogun Live, or at the end of data processing in Shogun Post.

Before you start your review, ensure you can recognize the various types of data that may be displayed in the **3D Scene** view, as listed in the following table. 

> Macro (scroll-pagebreak)

> Macro (scroll-tablelayout)

| Symbol in 3D view | Description | Data type |
| --- | --- | --- |
| ![image](media://414fd20c-c330-4819-8aea-9a054b096e71) | Circle | Original labeled markers from the backup clip. Displayed by default if the difference between the position of the original marker and the occlusion-fixed marker is greater than 1 cm. |
| ![image](media://6f40c9e0-5416-4ed3-88ef-84de3c3f8be8) | Sphere | Markers without gaps |
| ![image](media://0081cd33-cc78-4cf5-926c-3dd0996f7c5d) | Sphere with a dot in the center | Markers that have been occlusion-fixed during a gap |
| ![image](media://3b0d2ec7-04e8-476f-bb90-6126d8aab8a1) | Sphere with a cross in the center | Markers that have had a gap manually filled |
| ![image](media://65ff4e5e-8f1e-4ce8-b714-4b64a6bc369e) | Red sphere | Markers that are missing at the current frame |
| ![image](media://357bd1d8-8ea5-4266-a4c8-d5e85a4a40cc) | Wireframe box | Constraint, showing expected location of marker |

If circles are displayed for some markers during some time ranges, it indicates that the marker position was changed by more than 1 cm by occlusion fixing.

> ![Circle displayed for marker moved by occlusion fixing in 3D Scene of Vicon Shogun Post.](media://7356fe93-ae10-4728-b099-3e35f3117f5d)

In this case, check the position of the occlusion-fixed marker. If it doesn’t look right, the cause is likely to be either a labeling mistake or an occlusion-fixing error. To fix these problems, see [Correcting labeling mistakes](#CorrectingLabelingMistakes). 

> Macro (scroll-pagebreak)

> Macro (anchor)



### Correcting labeling mistakes

If you notice any swaps, mis-labels or other issues with marker data and the file has already been occlusion fixed, the recommended workflow is to restore the data back to its original state before it was occlusion-fixed.

You can do this on a per subject basis using the **Restore** section of the **Marker Editing** panel. Normally, restore the data across the whole take, because occlusion fixing across a range leads to jumps in the data.

The recommended workflow for dealing with problematic occlusion-fixed data is:

1. From the **Current Subject** chooser, select the required subject, or if you want to work on everything, select **All**.
2. In the **Restore** section of the **Marker Editing** panel, with selected subject active, click **Restore All Data**.
3. Fix any labeling issues that are present in your data. For more information, see [Use the Labeling panel](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253737062) and [Fix common labeling issues](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253736597).
4. Re-run occlusion fixing from the **Processing** panel.
5. Re-run **Solve Solving** to update the solving skeletons.