> For the complete documentation index, see [llms.txt](https://help.imotions.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.imotions.com/lab/study-setup-and-design/virtual-reality/varjo/how-to-setup-a-360-video-study-with-varjo.md).

# How to set up a 360 Video study with Varjo

Set up a 360 video or image study in iMotions Lab with Varjo headset eye tracking using the built-in VR video player, without writing code.

*The following article explains the procedure for adding a 360 video or image into iMotions, and recording eye tracking from a Varjo headset. This will allow you to conduct multimodal recording using our built-in VR video player on a Varjo headset without the need to code it yourself.*

This study setup requires the following components:

**Hardware**

* Varjo headset
* Dual Monitor setup (not required, but recommended (may require the use of onboard graphics due to Nvidia card limits on number of screens))

**Software**

* iMotions 10.0 or later
* Varjo Base
* Video files(mp4, wmv) formatted in standard 360-degree formats such as mono, top/bottom, or side by side (Note: we don't support videos downloaded from YouTube as they use a special format)

## Prestudy steps

It's assumed that you have already completed the Varjo setup. The headset is on and connected, and you can see it working in Varjo Base. If your device requires Steam tracking then also be sure you have completed SteamVR room setup in Varjo Base.

{% hint style="danger" %}
**Important note**

Please make sure your computer's region settings are set to US English, or at least that your dot-comma settings coincide with English rules.
{% endhint %}

### Global settings

Select Preference and Global settings. Under the first menu, which is for eye tracking, enable the data collection, and locate Varjo VR. Enter a similar IP and Port as seen in the image. No other setting under Eye tracking is necessary.(Note: the test connection button will not work until later, after the player in iMotions is launched with the headset connected.)

{% hint style="info" %}
**127.0.0.1:4050**
{% endhint %}

![The Eye tracking tab of Global Settings with Varjo VR selected](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-3231a282c20257a972c82749e0847bfbb801a161%2Flab_global-settings_eye-tracking_varjo-vr.png?alt=media)

Next, navigate to the API menu. Replicate the same settings.

![The API tab of Global Settings with remote control, event forwarding and event reception enabled](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-c1d63129ae1d529d040266d5fae232fd9ff3fecd%2Flab_global-settings_api.png?alt=media)

{% hint style="info" %}
**Extra settings**

Note:

When using 360 videos, it is generally not recommended to use 4K (or higher) videos (depending on your PC). This is likely to cause issues with stimuli presentation. We instead recommend that the video is down-sampled to HD (1080p) for maximum stability. If you run into performance issues, you can try to downsample the recording function in global settings in the Screen Recording settings under Stimuli, such as changing the capture format to H264 and reducing the capture rate or quality. Since the recordings will be based on Screen recordings, and the frame rate is determined under stimuli, then if you want a video replay with the highest possible frame rate, go to Stimuli, and increase the FPS to 30, but this can impact your experience.
{% endhint %}

![The Stimuli tab of Global Settings with the capture rate at 5 fps](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-8dab3e490ec4bc104a2ed21cf86950c9ec287e36%2Flab_global-settings_stimuli_screen-recording-low-rate.png?alt=media)

## Step 1: Study creation

Create a study by clicking the blue Add study button via the library block. Select "Virtual Reality" as the study type, followed by "360 stimuli" as the study subtype. Select which sensors you want to include in the study - any of the mentioned sensors can be included, but for this study type, you'll need to select eye tracking and the Varjo VR, as the tracker. For more info on study creation, see this [guide.](https://help.imotions.com/lab/getting-started/data-collection-overview.md)

1. ![The study wizard with Virtual Reality (VR) selected as the study type](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-b0471081753e471fd5bcff85e59d2b5e0da1eebe%2Flab_study-wizard_study-type_vr.png?alt=media)
2. ![The Select VR type page of the study wizard with 360 stimuli selected](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-cb191348891630f064646ff0383c14b0af5720c6%2Flab_study-wizard_vr-type_360-stimuli.png?alt=media)
3. ![The Select sensors page of the study wizard for a 360 study with the eye tracker list open](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-7cb596378a41d0379cc90ab35bced314216640d4%2Flab_study-wizard_sensors_vr-360-eye-tracker-list.png?alt=media)

## Step 2: Add Stimuli

Back on the main screen click the blue "Edit Stimuli" button, on the top right field of the stimulus timeline. In the study builder, you can add either 360 image or 360 video.

![The Study builder of a 360 stimuli study with an empty flow](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-3dcec4b9f2f6b05d6d2029649d83eec09bda3c44%2Flab_study-builder_flow-designer_360-empty.png?alt=media)

Navigate to the location of the file. Once the file has been loaded, it will show up in the Study Builder and you can access its properties in the left-hand panel.

![A 360 video in the Study builder with its Properties, including 360 Format](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-c33401a2f7ad0b8b21cbc43962683d0d5b676718%2Flab_study-builder_properties_360-video.png?alt=media)

Make sure the format of the video matches what is shown in the Properties panel. In iMotions, we support the following formats

* Mono
* Top / Bottom
* Side by Side
* Cube

You can always change the 360-format setting on the stimulus after having added it. If you pick the wrong format, then your recording could look like the video below

![VR\_360\_7.PNG](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-f60b8bf769f408bbcaf94fc0f6b5a5061c9b1af2%2F2adfa414aa_vr_360_7.webp?alt=media)

If you picked the correct format, then it will look like you're playing a regular video, shown inside a VR headset. If you wanna know more about 360 formats, then take a look at this public [article](https://360labs.net/blog/vr-video-formats-explained).

![VR\_360\_8.PNG](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-1ed08b2efbddeedd70240fde617093be531e59fb%2F715199ce07_vr_360_8.webp?alt=media)

## Step 4: Connecting to the 360 player

When you have added a 360 stimulus, then you'll see the 360 player widget. This widget will only show up in a study using 360-stimulus.

![The sensor widgets of a 360 study with the 360 Stimulus widget, before the headset and player are started](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-5099c30732b8f53373a40e514c97be16e21c7515%2Flab_recording_sensor-widgets_360-disconnected.png?alt=media)

Press the Play button, and you'll see a unity environment start-up. If previous configurations are correct, then iMotions will connect to the player. If SteamVR and Runtime haven't been started on the computer yet, then the eye tracking might not connect automatically, in which case, press "Alt + C" this will invoke a reconnect of your selected eye tracker.

If the player starts up successfully and connects to the Eye-tracker inside the headset, then you'll see a similar situation as below.

![VR\_360\_4.PNG](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-72e8bc67fdd0441a77eaa4bca5616f40713572fa%2Fc1325e5a00_vr_360_4.webp?alt=media)

When a user is wearing the headset, then a "user" is detected.

## Step 5: Collecting data

Now that you've added stimuli, connected your sensor, then you just need to create a respondent and start recording. At this point, you'll see why having 2 monitors makes your life easier when recording VR data.

Make sure iMotions software is located on the monitor, that you're not recording, so the 360-stimulus, will be shown on the other monitor.

When you're ready, then press "Record". You'll then see a white information screen, this is only shown to you as the operator, not the respondent wearing the headset.

![VR\_360\_5.PNG](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-311975dae80d3eb49d8e43e726438c835d884f14%2F29098a79f5_vr_360_5.png?alt=media)

When you press "Start Calibration" then the respondent will go through the headset's innate calibration process.

iMotions doesn't know when the calibration is done, so make sure you confirm with the respondent. When the respondent has seen the 5 calibration dots, then the calibration is complete.

By default you will not see the calibration process, which the respondent sees. If this is desired, then add the steam VR display feature.

When you press "Continue" then the data recording will start. Go through the study as you normally would. Note that in the latest versions of iMotions, you can adjust the stimuli queue, during the recording. For more information read this [article](https://help.imotions.com/lab/data-collection/sensor-preview-window.md).

## Limitation for stimulus Queue

It is currently not supported to switch back and forth between 360-stimuli, and normal screen-based stimuli.

The following stimuli procedure **is** possible

Stim 1: 360 video - Stim 2: 360 image - Stim 3: 360 video - STUDY END

Stim 1: 360 video - Stim 2: 360 image - Stim 3: 360 video - Stim 4: **Survey** - Stim 5: **video** - STUDY END

Note that Stim 4 and 5 will be shown on the desktop monitor, and not projected into the headset.

The following is **not** possible.

Stim 1: 360 video - Stim 2: 360 image - Stim 3: **Survey** - Stim 4: **video** - Stim 5: 360 video - STUDY END

## Extra tips for analysis

If you're recording 360 images, and you want to create a heatmap of the experience, then note that you can add the original image as a reference image for [gaze mapping.](https://help.imotions.com/lab/analysis/eye-tracking/gaze-mapping/gaze-mapping.md)

![VR\_360\_9.PNG](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-44c13f41966a7e82974cc4e48c3b997008800997%2Fbc5be9ba22_vr_360_9.webp?alt=media)

As you might have noticed, creating a reference image from your 360 recordings, from FRAME, might not create the full view that you desire. So in the case above, the original Mono format 360 stim image should be added as the reference image. The gaze mapping procedure then mapped all of the gaze data into this new reference image, which can then be utilized across all recorded respondents. This allows for the creation of a single heatmap from this 360 image.

Note that [Key Frame mapping](https://help.imotions.com/lab/analysis/eye-tracking/gaze-mapping/gaze-mapping.md) was used to increase mapping success.

![VR\_360\_10.PNG](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-248f10d1e49c930deda81075f5730afadc184aac%2F25fdea3aa6_vr_360_10.webp?alt=media)

## Troubleshooting

**CPU load**

The most common cause of errors in iMotions when using 360 videos or images is down to computer specifications. The CPU or GPU can easily become overloaded by the demands of VR studies. We strongly recommend that you follow our [system recommendations](https://imotions.com/products/imotions-lab/system-requirements/) and / or contact your Customer Success Manager for guidance. General guidance and recommendations for desktop computers are [provided here](https://imotions.com/products/hardware/desktop-buying-guide/).

It is also possible to down-sample the scene camera, to reduce the load on the computer. This can be done in iMotions by going to "Preferences" -> "Global Settings" -> "Video" -> selecting "Scene", and then down-sampling the encoding quality.

**Video quality**

When using 360 videos, it is generally not recommended to use 4K (or higher) videos. This is likely to cause issues with stimuli presentation. We instead recommend that the video is down-sampled to HD (1080p).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.imotions.com/lab/study-setup-and-design/virtual-reality/varjo/how-to-setup-a-360-video-study-with-varjo.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
