Deborah Pintani1*; · Giulia Benvegnù2; · Federico Maria Lorusso2 · Cristiano Chiamulera2 · Andrea Giachetti3 · Ariel Caputo3
1Department of Computer Science, University of Verona, Italy 2Department of Diagnostic and Public Health, University of Verona, Italy 3Department of Engineering for Innovation Medicine, University of Verona, Italy
*corresponding author
This repository contains the code and assets used in the study presented in the paper: Attentive Saliency and Photorealism in Immersive Virtual Environments
The study explores how rendering styles—specifically photorealism vs. non-photorealism—affect visual saliency and the sense of presence in immersive virtual reality (VR) experiences. The research was conducted in the context of junk food craving, using head-mounted displays (HMDs) and tracking systems.
We also evaluate the potential of using head tracking as a proxy for eye tracking to simplify saliency measurement in VR experiments.
Project of the University of Verona between the Departement of Computer Science, Department of Engineering for Innovation Medicine (IntelliGO Labs, GRAIL division) and Department of Diagnostic and Public Health (NeuroPsychopharmacology - NeuroPsi Laboratory)
Here is a summary of available environments and their functionalities:
| Environment | Type | Rendering quality & styles | Interactables | Fully working |
|---|---|---|---|---|
| Park | Natural | Real (HQ), cartoon (LQ) | Burger, fries | ✅ |
| Coffee Shop (external area) | Man-made | Real (HQ), cartoon (LQ) | Burger, fries | ✅ |
Additionally, we included other environments that were not used in the study but are provided here for completeness:
| Environment | Type | Rendering quality & styles | Interactables | Fully working |
|---|---|---|---|---|
| Porch / Home garden | Natural | Real | Cigarettes, pack of cigarettes | ❌ Fix teleport & eye tracking |
| Library | Man-made | Real | Book, pen | ❌ Fix teleport & eye tracking |
| Church | Man-made | Real | Breviary | ❌ Fix teleport & eye tracking |
| Clothing store | Man-made | Real | Shopping basket with clothes | ❌ Fix teleport & eye tracking |
- Windows 10/11
- Virtual Reality Headset HTC Vive Pro Eye
- Vive Pro (not Eye) should be fine as well, but please note the eye tracking functionality will not be available
- Unity 2022.3.0f1 (download here the version)
- Other versions are fine, as long as they are 2022.3.x
- Packages already installed in the project (here just for reference):
- OpenVR XR Plugin for Unity
- TobiiXR SDK
- Blender
- Latest version is better
- Steam and SteamVR
- SRanipal (for eye tracking)
- Not easy to install as a Standalone software
- We recommend to install it via Vive Console on Steam
- If you are encountering issues, please follow this complete guide
Make sure to have all the pre-requisites listed above.
- Open the project with Unity Engine
- Open a scene in
Assets - Scenes
Each environment comes in two different Unity scene file:
- Cafe HR and Cafe LR
- Park HR and Park LR
Due to repository size limitations, the pre-baked lighting assets couldn't be included.
Please re-bake the lights locally to experience the scenes as intended.
- Connect headset to PC, open SteamVR and make sure headset is visible in SteamVR
- In SteamVR
Settings - Developer, check if SteamVR is the current OpenXR Runtime
- In SteamVR
- Press Play inside Unity - enjoy!
When building the project into an .exe, make sure to select the correct URP (Universal Render Pipeline) quality preset. This will ensure the scene is rendered with the intended visual fidelity.
-
Go to:
Edit → Project Settings → Quality -
Under the Quality Levels, check only the boxes corresponding to your target preset:
- For Low Quality (LR), enable only the
Lowoption and disable all others (e.g.,Ultra) - For High Quality (HR), enable only the
Ultraoption
- For Low Quality (LR), enable only the
- Open:
File → Build Settings... - Click Add Open Scenes
→ Make sure your current scene is selected. - Set the platform:
- Select Windows, Mac, Linux
- Target Platform: Windows
- Architecture: Intel 64-bit
- Uncheck any other build options
- Compression Method: Default
- Click Build and choose your destination folder.
- Connect your VR headset to the PC.
- Open SteamVR, and ensure your headset is visible and tracked.
- In SteamVR:
- Go to
Settings → Developer - Make sure SteamVR is set as the current OpenXR Runtime
- Go to
- Finally, run the
.exeyou just built and enjoy the scene!
For the study, we defined two special, interactable food items: a burger and a tray of fries. These were the only objects tracked for user attention (via gaze and head direction) and could be grabbed as whole items. Both were modeled in 3D based on validated images from the FoodCast Research Image Database (FRIDa).
(a)(b) Calibrated and standardized food-related stimuli from FRIDa
(c)(d) Renderings of the corresponding 3D models inserted in our environments
Point the right contoller towards the direction you want to teleport to, and hold down the Trackpad (blue in figure). A green circle and arc appear if the location allows teleporting. Release the Trackpad button to teleport there. If the location does not allow teleporting, the circle and arc will be red.
Squeeze the Grip button (green in figure) to cancel an initiated teleport action.
To grab an interactable, approach it and hold down the Trigger button (red in figure). Release the Trigger to drop the item. A white circle appears on top of the controller when the Trigger button is pushed.
Each VR scene is available in two versions:
- High Realism (HR): photorealistic rendering
- Low Realism (LR): stylized, cartoon-like rendering
Both versions are built with Unity's Universal Render Pipeline (URP). Rather than tweaking individual parameters, we defined two consistent visual styles to compare their effect on user attention.
1st image: High Realism Cafè scene
2nd image: Low Realism Cafè scene
The HR version uses:
- 2K textures
- High-resolution soft shadows for natural lighting
- Post-processing with ReShade:
- Simulated HDR (tone mapping for natural light range)
- Bloom effects for glowing highlights
These choices aim to create a believable and immersive environment.
The LR version simplifies the rendering:
- Textures at 1/8 resolution
- Only hard shadows
- Stylized post-processing with ReShade:
- Black outlines
- Surface blur
- +20% saturation
- Color quantization (16 brightness levels)
This results in a flatter, more cartoonish look.
Both versions include baked lightmaps, ambient occlusion, and light probes near interactive elements to ensure consistent lighting.
1st image: Cafè High Realism
2nd image: Cafè Low Realism
1st image: Park High Realism
2nd image: Park Low Realism
1st image: HR Cafè
2nd image: HR Park
1st image: LR Cafè
2nd image: LR Park
As a reference, here are baking settings used for both HR and LR scenes:
User actions are logged in log files every 0.2 seconds, that includes:
- Name of the scene
- User absolute starting position
- If the user teleported, where and their previous position
- User position relative to the starting one
- User absolute position
- Head orientation in degrees
- Head quaternion
- Right controller position
- Right controller rotation
- Right controller quaternion
- If the head is pointing toward an interactable
- If the user is gazing an interactable
- If the user is grabbing an interactable





















