# VR Expansion Plugin

**URL:** <https://forums.unrealengine.com/t/vr-expansion-plugin/68709>\
**Category:** XR Development\
**Tags:** unreal-engine\
**Created:** [July 11, 2016, 6:16pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709 "2016-07-11T18:16:57Z")\
**Posts on this page:** 20\
**Page:** 15

<div class="post-metadata">

**Author:** ![mordentral](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mordentral](https://forums.unrealengine.com/u/mordentral)\
**Post date:** [November 21, 2016, 1:22pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/288 "2016-11-21T13:22:12Z")

</div>

> [@Gnaw;626449](#):
>
> How would you go about having the mesh hands from unreal 4.13+ template with the animations into template? Also being able to set how far someone can teleport when in the teleport mode?

In the player there is a OnPossesed node path that downloads the controllers from steam, just unlink those nodes and the default template hands are there (I hide them for the controllers).

Teleport distance can be set in the TeleportController blueprint that is spawned in to control Epics teleportation system.

_Edit_ You would want to adjust the collision spheres attached to each hand, their location defines the sphere trace for gripping, they are currently set up to feel most natural with controller models.

---

<div class="post-metadata">

**Author:** ![Fantasifall](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Fantasifall](https://forums.unrealengine.com/u/Fantasifall)\
**Post date:** [November 21, 2016, 9:18pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/289 "2016-11-21T21:18:30Z")

</div>

Hey , have you thought about implementing a way to load a custom SteamVR skybox? It seems like is the way to do it in C++:

Quoted from: [Customization of SteamVR - XR Development - Epic Developer Community Forums](https://forums.unrealengine.com/showthread.php?107253-Customization-of-SteamVR)

"I was just looking into recently. You can do it in C++:

Code:

/\*\* Override the skybox used in the compositor (e.g. for during level loads when the app can’t feed scene images fast enough)

- Order is Front, Back, Left, Right, Top, Bottom. If only a single texture is passed, it is assumed in lat-long format.  
If two are passed, it is assumed a lat-long stereo pair. /  
virtual EVRCompositorError SetSkyboxOverride( VR\_ARRAY\_COUNT( unTextureCount ) const Texture\_t \*pTextures, uint32\_t unTextureCount ) = 0;

/\* Resets compositor skybox back to defaults. /  
virtual void ClearSkyboxOverride() = 0;

[https://github.com/ValveSoftware/ope...aders/openvr.h](https://github.com/ValveSoftware/ope...aders/openvr.h)"

Edit: Thanks for implementing GrippableSkeletalMeshComponent.cpp!

---

<div class="post-metadata">

**Author:** ![mordentral](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mordentral](https://forums.unrealengine.com/u/mordentral)\
**Post date:** [November 22, 2016, 12:59am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/290 "2016-11-22T00:59:04Z")

</div>

> [@Fantasifall;626894](#):
>
> Hey , have you thought about implementing a way to load a custom SteamVR skybox? It seems like is the way to do it in C++:
> 
> Quoted from: [Customization of SteamVR - XR Development - Epic Developer Community Forums](https://forums.unrealengine.com/showthread.php?107253-Customization-of-SteamVR)
> 
> "I was just looking into recently. You can do it in C++:
> 
> Code:
> 
> /\*\* Override the skybox used in the compositor (e.g. for during level loads when the app can’t feed scene images fast enough)
> 
> - Order is Front, Back, Left, Right, Top, Bottom. If only a single texture is passed, it is assumed in lat-long format.  
> If two are passed, it is assumed a lat-long stereo pair. /  
> virtual EVRCompositorError SetSkyboxOverride( VR\_ARRAY\_COUNT( unTextureCount ) const Texture\_t \*pTextures, uint32\_t unTextureCount ) = 0;
> 
> /\* Resets compositor skybox back to defaults. /  
> virtual void ClearSkyboxOverride() = 0;
> 
> [https://github.com/ValveSoftware/ope...aders/openvr.h](https://github.com/ValveSoftware/ope...aders/openvr.h)"
> 
> Edit: Thanks for implementing GrippableSkeletalMeshComponent.cpp!

I haven’t tested it yet but I am pretty sure that epic took care of that in 4.14.

> [@](#):
>
> NEW: VR LOADING MOVIES
> 
> The engine now supports loading movies on Oculus, GearVR, SteamVR, and PSVR. These run on the rendering thread, and can mask framerate hiccups as you load up your content. To use the splash screen, you can set a texture using the “Set Splash Screen” node, or choose to automatically have it appear when you load a map with the “Enable Auto Loading Splash Screen” node.

I’ll be doing some additions and fixes tomorrow and starting to look into starting the multiplayer. Will be at reduced free time for a bit due to the holidays.

---

<div class="post-metadata">

**Author:** ![The\_Revera\_Corporation](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@The\_Revera\_Corporation](https://forums.unrealengine.com/u/The_Revera_Corporation)\
**Post date:** [November 23, 2016, 3:21am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/291 "2016-11-23T03:21:43Z")

</div>

Hi again and others,

I am curious as to any recommendation on how to best toggle to a Seated Experience for a Vive UE4 project. I’d like to add an HMD offset which could be toggled so the game can be accessible to those who will play seated. The game I am working on has a long play time and is semi-open world, so I expect people to perhaps switch between sitting and standing. Any other ideas on how to make VR with the Vive more accessible would be nice as well.

Thank you,

---

<div class="post-metadata">

**Author:** ![Hafgren](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Hafgren](https://forums.unrealengine.com/u/Hafgren)\
**Post date:** [November 23, 2016, 7:00pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/292 "2016-11-23T19:00:50Z")

</div>

Not sure if I’m overlooking something, but I installed the plugin and set up the VRCharacter, the way I have it set up is when you press up on the touchpad the character should start walking toward the forward vector of the controller, but when I give it input to walk, it moves like a cm then stops, any idea why?

---

<div class="post-metadata">

**Author:** ![Gnaw](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gnaw](https://forums.unrealengine.com/u/Gnaw)\
**Post date:** [November 23, 2016, 9:49pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/293 "2016-11-23T21:49:50Z")

</div>

> [@;626631](#):
>
> In the player there is a OnPossesed node path that downloads the controllers from steam, just unlink those nodes and the default template hands are there (I hide them for the controllers).
> 
> Teleport distance can be set in the TeleportController blueprint that is spawned in to control Epics teleportation system.
> 
> _Edit_ You would want to adjust the collision spheres attached to each hand, their location defines the sphere trace for gripping, they are currently set up to feel most natural with controller models.

Yeah I figured thats how you would do it for the default meshes of the hands but it does not play the animation while gripping. I think it’s due to using "MotionController (L) & (R) Trigger Nodes. Those override the default animation of epic’s template. I notice in the defaulted template if you use the MotionController (L) & (R) anywhere else it doesn’t play the animation.

---

<div class="post-metadata">

**Author:** ![Gnaw](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gnaw](https://forums.unrealengine.com/u/Gnaw)\
**Post date:** [November 23, 2016, 10:03pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/294 "2016-11-23T22:03:40Z")

</div>

> [@Gnaw;627968](#):
>
> Yeah I figured thats how you would do it for the default meshes of the hands but it does not play the animation while gripping. I think it’s due to using "MotionController (L) & (R) Trigger Nodes. Those override the default animation of epic’s template. I notice in the defaulted template if you use the MotionController (L) & (R) anywhere else it doesn’t play the animation.

Nevermind I don’t think I even see the animation code in there now. LOL. Oops

---

<div class="post-metadata">

**Author:** ![mordentral](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mordentral](https://forums.unrealengine.com/u/mordentral)\
**Post date:** [November 24, 2016, 12:20am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/295 "2016-11-24T00:20:49Z")

</div>

I’m taking one of the items off of my "Revisit " list holiday weekend and remaking the VRCharacter (or at least an alternative one). The current one is based around the VRRootComponent which I made specifically to slot into standard pawns. Since the VRCharacter isn’t a standard pawn then it is faaaaar more complicated than it needs to be for its functions, I intend to make a simple version that if stable enough will fully replace it. Due to how VRRootComponent works I had to re-write most of the character movement component to support it, the new version would take a mostly stock character movement component instead.

We’ll see how it pans out, but early testing feels pretty good, and if it works as I intend then upgrading the plugin to keep up with new engine versions would be 100x easier.

> [@Hafgren;627895](#):
>
> Not sure if I’m overlooking something, but I installed the plugin and set up the VRCharacter, the way I have it set up is when you press up on the touchpad the character should start walking toward the forward vector of the controller, but when I give it input to walk, it moves like a cm then stops, any idea why?

You either need to loop it on tick, or use an input event that is called every frame it is active. It sounds like you are firing it once.

---

<div class="post-metadata">

**Author:** ![Hafgren](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Hafgren](https://forums.unrealengine.com/u/Hafgren)\
**Post date:** [November 24, 2016, 12:57am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/296 "2016-11-24T00:57:26Z")

</div>

Okay, I hooked it up to the tick and it works now, don’t know why I didn’t try that earlier.

---

<div class="post-metadata">

**Author:** ![mordentral](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mordentral](https://forums.unrealengine.com/u/mordentral)\
**Post date:** [November 24, 2016, 1:00am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/297 "2016-11-24T01:00:02Z")

</div>

> [@Hafgren;628032](#):
>
> Okay, I hooked it up to the tick and it works now, don’t know why I didn’t try that earlier.

I would suggest doing it like a normal character and using an input event instead so it can be rebound.

---

<div class="post-metadata">

**Author:** ![Resolve](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Resolve](https://forums.unrealengine.com/u/Resolve)\
**Post date:** [November 24, 2016, 8:36am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/298 "2016-11-24T08:36:47Z")

</div>

When you work on multiplayer stuff, are you going to work on basic necessities like proximity voice, and a server browser?

---

<div class="post-metadata">

**Author:** ![mordentral](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mordentral](https://forums.unrealengine.com/u/mordentral)\
**Post date:** [November 25, 2016, 12:48am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/299 "2016-11-25T00:48:19Z")

</div>

> [@Resolve;628142](#):
>
> When you work on multiplayer stuff, are you going to work on basic necessities like proximity voice, and a server browser?

Server browser yes, proximity voice on the other hand not only isn’t a necessity but I have been asked about before for my networking plugin and I haven’t actually found a way for it to work through a plugin. The audio components for players are not publicly accessible and I haven’t been able to match them up to specific owners either as the identifiers are also not publicly available, I DO know how I would do it with an engine build however.

I may take another look at it again just in case.

---

<div class="post-metadata">

**Author:** ![Resolve](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Resolve](https://forums.unrealengine.com/u/Resolve)\
**Post date:** [November 25, 2016, 2:39am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/300 "2016-11-25T02:39:57Z")

</div>

> [@;628404](#):
>
> Server browser yes, proximity voice on the other hand not only isn’t a necessity but I have been asked about before for my networking plugin and I haven’t actually found a way for it to work through a plugin. The audio components for players are not publicly accessible and I haven’t been able to match them up to specific owners either as the identifiers are also not publicly available, I DO know how I would do it with an engine build however.
> 
> I may take another look at it again just in case.

Cool. I assume the server browser will include the ability to host games with certain parameters (like amount of players, mainly)?

and that’s a bummer with the proximity voice. I’m sure there’s a way around it?

Also, if I were to start working with your template/plugins, how easy is it to update/add new plugins? Relatively speaking of course. Is it as easy as plug and play?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33bb0bed](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33bb0bed](https://forums.unrealengine.com/u/anonymous_user_33bb0bed)\
**Post date:** [November 25, 2016, 6:00pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/301 "2016-11-25T18:00:00Z")

</div>

, thanks a ton for building . It’s a great set of tools for getting started with VR. There is one little issue I am running into that others may have too:

If I make a blueprint that references a class from VR-Expansion-Plugin and then save the project, the next time I open the project and try to open that blueprint, the editor crashes.

> [@](#):
>
> [2016.11.25-17.49.47:165][838]LogWindows:Error: Fatal error: [File:D:\Build++UE4+Release-4.14+Compile\Sync\Engine\Source\Runtime\CoreUObject\Private\Templates\Casts.cpp] [Line: 11]  
> [2016.11.25-17.49.47:165][838]LogWindows:Error: Cast of LinkerPlaceholderExportObject /Game/Blueprints/VR\_Character.VR\_Character\_C:LeftHand\_GEN\_VARIABLE.LeftHand\_GEN\_VARIABLE\_BP\_HandController\_C\_CAT to Actor failed

happened because I have a vr character that has a child actor blueprint for the hand. Here’s a related problem on answers, but I’m not sure if they are using your plugin. But I’m getting the same type of error: [Blueprint Crash (UE 4.14) - Blueprint - Epic Developer Community Forums](https://answers.unrealengine.com/questions/527303/blueprint-crash-ue-414.html)

Turning the plugin off lets me open the blueprints without crash…but obviously that’s not a good solution 🙂

---

<div class="post-metadata">

**Author:** ![mordentral](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mordentral](https://forums.unrealengine.com/u/mordentral)\
**Post date:** [November 25, 2016, 6:44pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/302 "2016-11-25T18:44:07Z")

</div>

> [@pushmatrix;628694](#):
>
> , thanks a ton for building . It’s a great set of tools for getting started with VR. There is one little issue I am running into that others may have too:
> 
> If I make a blueprint that references a class from VR-Expansion-Plugin and then save the project, the next time I open the project and try to open that blueprint, the editor crashes.
> 
> happened because I have a vr character that has a child actor blueprint for the hand. Here’s a related problem on answers, but I’m not sure if they are using your plugin. But I’m getting the same type of error: [Blueprint Crash (UE 4.14) - Blueprint - Epic Developer Community Forums](https://answers.unrealengine.com/questions/527303/blueprint-crash-ue-414.html)
> 
> Turning the plugin off lets me open the blueprints without crash…but obviously that’s not a good solution 🙂

> **[The Unreal Engine Issues and Bug Tracker](https://issues.unrealengine.com/issue/UE-38690)**
>
> Welcome to the Unreal Engine Issue and Bug Tracker. You can check the status of an issue and search for existing bugs. See latest bug fixes too.

Looks like it has already been fixed and is slated for 4.14.1?

---

<div class="post-metadata">

**Author:** ![grizly32](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@grizly32](https://forums.unrealengine.com/u/grizly32)\
**Post date:** [November 25, 2016, 7:15pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/303 "2016-11-25T19:15:32Z")

</div>

First off, thanks for making plugin!

I have a bit of a problem though and I am hoping someone can help me out.

I am trying to make a multiplayer game and testing with two players. The player can possess a new spawned character and I am calling “Set Tracking Origin” and “Reset Orientation and Position” so that the VR camera is in the correct spot when possessed.

It works great for the Server player, but when I try to do it on the client it is the Server character that gets affected by those origin and orientation functions and not the client.

I have tried running the functions through a “Is locally controlled” branch but it still doesn’t work.

Any ideas? Really pulling my hair out on one…

Thanks!

---

<div class="post-metadata">

**Author:** ![mordentral](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mordentral](https://forums.unrealengine.com/u/mordentral)\
**Post date:** [November 25, 2016, 8:02pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/304 "2016-11-25T20:02:55Z")

</div>

> [@grizly32;628736](#):
>
> First off, thanks for making plugin!
> 
> I have a bit of a problem though and I am hoping someone can help me out.
> 
> I am trying to make a multiplayer game and testing with two players. The player can possess a new spawned character and I am calling “Set Tracking Origin” and “Reset Orientation and Position” so that the VR camera is in the correct spot when possessed.
> 
> It works great for the Server player, but when I try to do it on the client it is the Server character that gets affected by those origin and orientation functions and not the client.
> 
> I have tried running the functions through a “Is locally controlled” branch but it still doesn’t work.
> 
> Any ideas? Really pulling my hair out on one…
> 
> Thanks!

On possessed is only called on the server, you need to send an RPC to the client on possession and have them do it.

---

<div class="post-metadata">

**Author:** ![grizly32](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@grizly32](https://forums.unrealengine.com/u/grizly32)\
**Post date:** [November 25, 2016, 8:16pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/305 "2016-11-25T20:16:23Z")

</div>

Thank you so much!! I tried everything but Run on Owning Client lol…

Works great! Thanks again for the help and all your work on the plugin!!

---

<div class="post-metadata">

**Author:** ![grizly32](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@grizly32](https://forums.unrealengine.com/u/grizly32)\
**Post date:** [November 25, 2016, 8:26pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/306 "2016-11-25T20:26:24Z")

</div>

I have one other quick question if you have time…

Have you ever had the client headset have glitched shadows in just one eye? The right eye view of the client HMD has shadows that are all glitched out…any ideas of what might be causing that?

Thanks!

---

<div class="post-metadata">

**Author:** ![UE4Hobbyist](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@UE4Hobbyist](https://forums.unrealengine.com/u/UE4Hobbyist)\
**Post date:** [November 25, 2016, 8:49pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/307 "2016-11-25T20:49:43Z")

</div>

> [@grizly32;628762](#):
>
> I have one other quick question if you have time…
> 
> Have you ever had the client headset have glitched shadows in just one eye? The right eye view of the client HMD has shadows that are all glitched out…any ideas of what might be causing that?
> 
> Thanks!

Capsule shadows

[Previous page](https://forums.unrealengine.com/t/vr-expansion-plugin/68709.md?page=14)

[Next page](https://forums.unrealengine.com/t/vr-expansion-plugin/68709.md?page=16)
