# MWorks and Virtual reality experiment

**URL:** <https://mworks.discourse.group/t/mworks-and-virtual-reality-experiment/919>\
**Category:** Support\
**Created:** [October 16, 2023, 8:46am UTC](https://mworks.discourse.group/t/mworks-and-virtual-reality-experiment/919 "2023-10-16T08:46:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jrahn331\_SKKU](https://avatars.discourse-cdn.com/v4/letter/j/97f17d/32.png) [@jrahn331\_SKKU](https://mworks.discourse.group/u/jrahn331_SKKU)\
**Post date:** [October 16, 2023, 8:46am UTC](https://mworks.discourse.group/t/mworks-and-virtual-reality-experiment/919/1 "2023-10-16T08:46:34Z")

</div>

Hi, Chris.

I was wondering if it is possible to do virtual reality (VR) experiments with MWorks, such as walking through a maze.  
I haven’t seen any examples on VR tasks with MWorks yet.  
If this is possible, it would help me a lot.

Best regards.  
Jungryul

---

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [October 16, 2023, 9:29pm UTC](https://mworks.discourse.group/t/mworks-and-virtual-reality-experiment/919/2 "2023-10-16T21:29:03Z")

</div>

Hi Jungryul,

No, MWorks does not support VR at present. The primary issue is that existing VR headsets and their associated software don’t support macOS. (SteamVR [announced beta support](https://store.steampowered.com/news/app/250820/view/2898585530113880709) for macOS over six years ago, but it doesn’t look like much has happened with it since then.) Porting MWorks to the upcoming [Apple Vision Pro](https://www.apple.com/apple-vision-pro/) is a definite possibility, but that device is more focused on augmented reality (AR) and, at least initially, will cost considerably more than most existing VR headsets.

Cheers,  
Chris

---

<div class="post-metadata">

**Author:** ![jrahn331\_SKKU](https://avatars.discourse-cdn.com/v4/letter/j/97f17d/32.png) [@jrahn331\_SKKU](https://mworks.discourse.group/u/jrahn331_SKKU)\
**Post date:** [October 17, 2023, 6:15am UTC](https://mworks.discourse.group/t/mworks-and-virtual-reality-experiment/919/3 "2023-10-17T06:15:07Z")

</div>

Sorry for the confusion. I wasn’t taking about VR headsets and VR systems.  
My interest is in 3D visual stimuli.

I’m trying to plan a simple experiment (a 3D maze game with a first-person view on a monitor screen), where the subject has to choose left or right with a joystick to reach the final destination.  
As a newcomer to MWorks, I hope this is feasible.

Best,  
Jungryul

---

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [October 17, 2023, 1:57pm UTC](https://mworks.discourse.group/t/mworks-and-virtual-reality-experiment/919/4 "2023-10-17T13:57:17Z")

</div>

Hi Jungryul,

Thanks for the clarification.

No, MWorks doesn’t support what you describe. Another lab expressed a similar interest a few years ago. At the time, it seemed like the best solution was to use [ThreeDWorld](https://www.threedworld.org) (TDW) to the render the environment, with the MWorks experiment using [Python actions](https://mworks.github.io/documentation/latest/components/run_python_file.html) to drive the simulation via TDW’s [Python API](https://github.com/threedworld-mit/tdw/blob/93b0b34f75bfab8e652d9f5eec70d0d53a3b0117/Documentation/lessons/core_concepts/commands.md). Although that lab never followed through on that plan, I still think it would be a good approach.

Of course, it would also be possible to implement 3D environment generation directly in MWorks, possibly by making use of Apple’s [SceneKit](https://developer.apple.com/documentation/scenekit) or [RealityKit](https://developer.apple.com/documentation/realitykit) frameworks. That would likely be a large project, but I could imagine it being useful to multiple labs.

Cheers,  
Chris

---

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [October 30, 2023, 1:02pm UTC](https://mworks.discourse.group/t/mworks-and-virtual-reality-experiment/919/5 "2023-10-30T13:02:06Z")

</div>


