# Virtual Camera (vcam) while Simulating or in Game?

**URL:** <https://forums.unrealengine.com/t/virtual-camera-vcam-while-simulating-or-in-game/1159994>\
**Category:** Virtual Production\
**Tags:** unreal-engine, virtual, question\
**Created:** [May 9, 2023, 10:30am UTC](https://forums.unrealengine.com/t/virtual-camera-vcam-while-simulating-or-in-game/1159994 "2023-05-09T10:30:38Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![data\_morphana](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@data\_morphana](https://forums.unrealengine.com/u/data_morphana)\
**Post date:** [May 9, 2023, 10:30am UTC](https://forums.unrealengine.com/t/virtual-camera-vcam-while-simulating-or-in-game/1159994/1 "2023-05-09T10:30:39Z")

</div>

Is there a way to use a hand held virtual camera in unreal while in game or simulating?

with the vcam actor and app it doesn’t seem to be possible; or ist there any hack that im not aware of? will become possible in future releases like 5.2?

If there any different way to use a gyroscope based device in-game or while simulating as a virtual camera?

---

<div class="post-metadata">

**Author:** ![Cinerius1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Cinerius1](https://forums.unrealengine.com/u/Cinerius1)\
**Post date:** [May 10, 2024, 7:09am UTC](https://forums.unrealengine.com/t/virtual-camera-vcam-while-simulating-or-in-game/1159994/2 "2024-05-10T07:09:39Z")

</div>

In 5.3 I was able to control a VCam Actor while in Play, with functional UI and everything. It’s also important to uncheck Enable before unloading the VCam

Unfortunately I’m having a “Fatal Error!” if I try to Enable the VCam Actor in a packaged build.  
Has anyone had success with that?

---

<div class="post-metadata">

**Author:** ![rccrici](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rccrici](https://forums.unrealengine.com/u/rccrici)\
**Post date:** [May 24, 2024, 11:10am UTC](https://forums.unrealengine.com/t/virtual-camera-vcam-while-simulating-or-in-game/1159994/3 "2024-05-24T11:10:43Z")

</div>

Hi @data_morphana , I am trying to do the same with my game. it would be great having the vcam as controller in game. I haven’t found a solution yet. I believe that the behaviour should be the same as using the VR. Has anybody solved this ?

---

<div class="post-metadata">

**Author:** ![comlys](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/comlys/32/998665_2.png) [@comlys](https://forums.unrealengine.com/u/comlys)\
**Post date:** [May 30, 2024, 12:01am UTC](https://forums.unrealengine.com/t/virtual-camera-vcam-while-simulating-or-in-game/1159994/4 "2024-05-30T00:01:27Z")

</div>

Can you post your UE and VCam app logs?

---

<div class="post-metadata">

**Author:** ![Cinerius1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Cinerius1](https://forums.unrealengine.com/u/Cinerius1)\
**Post date:** [May 31, 2024, 10:33am UTC](https://forums.unrealengine.com/t/virtual-camera-vcam-while-simulating-or-in-game/1159994/5 "2024-05-31T10:33:57Z")

</div>

Hi, unfortunately the crash happens before I can even try to connect to the VCam, so I don’t have logs as far as I know. This is the only error message.  
 ![CrashOnClick](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/e/1/de1a0d93939bc9f801e6932957f146b103d3fe88.png)  
This is how it happens:  
I created a simple Button which runs this code when pressed:

 ![VCamButton](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/c/1/7c1946addf4f90e4234ca251a1a660d6cba96513.png)  
This works perfectly fine in Editor, while in Packaged it crashes the game.

Only once, while packaging, I had this crash, but I tried again immediately after and it was successful.  
 ![CrashPixelStreaming](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/0/4/004c3bd7139eb23c4484628fadfa96dfe25c194a.png)  
Could the problem be the Pixel Streaming?

---

<div class="post-metadata">

**Author:** ![comlys](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/comlys/32/998665_2.png) [@comlys](https://forums.unrealengine.com/u/comlys)\
**Post date:** [May 31, 2024, 6:19pm UTC](https://forums.unrealengine.com/t/virtual-camera-vcam-while-simulating-or-in-game/1159994/6 "2024-05-31T18:19:44Z")

</div>

Can you go into the project and /Saved/Crashes/ and get the log in there?

But the repro would be to Enable the VCam, go into Simulate, run that BP, and then crash?

---

<div class="post-metadata">

**Author:** ![Cinerius1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Cinerius1](https://forums.unrealengine.com/u/Cinerius1)\
**Post date:** [June 3, 2024, 8:07am UTC](https://forums.unrealengine.com/t/virtual-camera-vcam-while-simulating-or-in-game/1159994/7 "2024-06-03T08:07:34Z")

</div>

[Empty\_ambient.log](https://forums.unrealengine.com/uploads/short-url/EOdTHfph7qW0wM2LI4dylvUFDD.log) (170.3 KB)

I see, it seems like this log has quite a few clues!  
It’s still weird that in the Editor I can’t get it to crash, even if I enable it before simulating.

Here are what I feel are the more salient parts:

```auto
LogWindows: Failed to load 'aqProf.dll' (GetLastError=126)
LogWindows: File 'aqProf.dll' does not exist
LogProfilingDebugging: Loading WinPixEventRuntime.dll for PIX profiling (from ../../../Engine/Binaries/ThirdParty/Windows/WinPixEventRuntime/x64).
LogWindows: Failed to load 'VtuneApi.dll' (GetLastError=126)
LogWindows: File 'VtuneApi.dll' does not exist
LogWindows: Failed to load 'VtuneApi32e.dll' (GetLastError=126)
LogWindows: File 'VtuneApi32e.dll' does not exist

```

Or

```auto
LogCoreRedirects: AddRedirect(../../../Empty_ambient/Saved/Config/Windows/VirtualCamera.ini) has substring redirect /VirtualCamera/OperatorPanel, these are very slow and should be resolved as soon as possible!
LogCoreRedirects: AddRedirect(../../../Empty_ambient/Saved/Config/Windows/VirtualCamera.ini) has substring redirect /VirtualCamera/TestMaps, these are very slow and should be resolved as soon as possible!
LogCoreRedirects: AddRedirect(../../../Empty_ambient/Saved/Config/Windows/VirtualCamera.ini) has substring redirect /VirtualCamera/V2, these are very slow and should be resolved as soon as possible!
LogCoreRedirects: AddRedirect(../../../Empty_ambient/Saved/Config/Windows/VirtualCamera.ini) has substring redirect /VirtualCamera/VCamCore, these are very slow and should be resolved as soon as possible!

```

I also see a bunch of these errors:

```auto
[2024.05.31-10.22.21:643][0]LogShaderLibrary: Display: Tried to open shader library 'VirtualCamera', but could not find it neither as a monolithic library nor as a chunked one.
[2024.05.31-10.22.21:643][0]LogPackageName: Display: FPackageName: Mount point added: '../../../Engine/Plugins/Experimental/VirtualCamera/Content/' mounted to '/VirtualCamera/'
[2024.05.31-10.22.21:643][0]LogShaderLibrary: Display: Tried to open shader library 'VirtualProductionUtilities', but could not find it neither as a monolithic library nor as a chunked one.
[2024.05.31-10.22.21:643][0]LogPackageName: Display: FPackageName: Mount point added: '../../../Engine/Plugins/Experimental/VirtualProductionUtilities/Content/' mounted to '/VirtualProductionUtilities/'
[2024.05.31-10.22.21:643][0]LogShaderLibrary: Display: Tried to open shader library 'VPRoles', but could not find it neither as a monolithic library nor as a chunked one.
[2024.05.31-10.22.21:644][0]LogPackageName: Display: FPackageName: Mount point added: '../../../Engine/Plugins/Experimental/VirtualProduction/VPRoles/Content/' mounted to '/VPRoles/'
[2024.05.31-10.22.21:644][0]LogShaderLibrary: Display: Tried to open shader library 'VPSettings', but could not find it neither as a monolithic library nor as a chunked one.
[2024.05.31-10.22.21:644][0]LogPackageName: Display: FPackageName: Mount point added: '../../../Engine/Plugins/Experimental/VirtualProduction/VPSettings/Content/' mounted to '/VPSettings/'

```

Then it says it’s missing script import for package of VCam stuff here:

```auto
[2024.05.31-10.22.23:162][0]LogStreaming: Warning: Missing Dependency, missing script import 0x18ED4F13D517AEB8 for package /VirtualCamera/WidgetLibrary/VCamTakesBrowser/widgets/VCamTake
[2024.05.31-10.22.23:162][0]LogStreaming: Error: CreateExport: /VirtualCamera/WidgetLibrary/VCamTakesBrowser/widgets/VCamTake (0xA0269EB8C8EB8223) /VirtualCamera/WidgetLibrary/VCamTakesBrowser/widgets/VCamTake (0xA0269EB8C8EB8223) - Could not find class object for Image_Thumbnail
[2024.05.31-10.22.23:162][0]LogStreaming: Warning: CreateExport: /VirtualCamera/WidgetLibrary/VCamTakesBrowser/widgets/VCamTake (0xA0269EB8C8EB8223) /VirtualCamera/WidgetLibrary/VCamTakesBrowser/widgets/VCamTake (0xA0269EB8C8EB8223) - Skipped failed export Image_Thumbnail

```

Also:

```auto
LogScript: Warning: Accessed None trying to read property VCamTakeEditorFunctions
	VCamTakesBrowser_C /Engine/Transient.GameEngine_2147482607:GameInstance_2147482553.VCamHUD_C_2147482401.WidgetTree_2147482400.VCamTakesBrowser
	Function /VirtualCamera/WidgetLibrary/VCamTakesBrowser/VCamTakesBrowser.VCamTakesBrowser_C:ExecuteUbergraph_VCamTakesBrowser:00F4
[2024.05.31-10.22.35:233][25]LogScript: Warning: Script call stack:
	Function /VirtualCamera/WidgetLibrary/VCamTakesBrowser/VCamTakesBrowser.VCamTakesBrowser_C:PreConstruct
	Function /VirtualCamera/WidgetLibrary/VCamTakesBrowser/VCamTakesBrowser.VCamTakesBrowser_C:ExecuteUbergraph_VCamTakesBrowser

```

and then:

```auto
[2024.05.31-10.22.35:243][25]LogUObjectGlobals: Warning: Failed to find object 'Object /VirtualCamera/VCamHUD.VCamHUD'
[2024.05.31-10.22.35:243][25]LogVCamStateSwitcher: Warning: Failed to find widget at index 0 in state Default
[2024.05.31-10.22.35:243][25]LogUObjectGlobals: Warning: Failed to find object 'Object /VirtualCamera/VCamHUD.VCamHUD'
[2024.05.31-10.22.35:243][25]LogVCamStateSwitcher: Warning: Failed to find widget at index 1 in state Default
[2024.05.31-10.22.35:244][25]LogUObjectGlobals: Warning: Failed to find object 'Object /VirtualCamera/VCamHUD.VCamHUD'
[2024.05.31-10.22.35:244][25]LogVCamStateSwitcher: Warning: Failed to find widget at index 2 in state Default
[2024.05.31-10.22.35:244][25]LogUObjectGlobals: Warning: Failed to find object 'Object /VirtualCamera/VCamHUD.VCamHUD'
[2024.05.31-10.22.35:244][25]LogVCamStateSwitcher: Warning: Failed to find widget at index 3 in state Default
[2024.05.31-10.22.35:245][25]LogUObjectGlobals: Warning: Failed to find object 'Object /VirtualCamera/VCamHUD.VCamHUD'
[2024.05.31-10.22.35:245][25]LogVCamStateSwitcher: Warning: Failed to find widget at index 4 in state Default
[2024.05.31-10.22.35:245][25]LogUObjectGlobals: Warning: Failed to find object 'Object /VirtualCamera/VCamHUD.VCamHUD'
[2024.05.31-10.22.35:245][25]LogVCamStateSwitcher: Warning: Failed to find widget at index 5 in state Default
[2024.05.31-10.22.35:245][25]LogUObjectGlobals: Warning: Failed to find object 'Object /VirtualCamera/VCamHUD.VCamHUD'
[2024.05.31-10.22.35:245][25]LogVCamStateSwitcher: Warning: Failed to find widget at index 6 in state Default

```

```auto
[2024.05.31-10.22.35:246][25]LogVCamConnection: Warning: Widget VCamTimeScale_RecordingSpeed: Failed to create for VCam Connection with Connection Name: TimeScaleValue
[2024.05.31-10.22.35:246][25]LogVCamConnection: Warning: Connection Failed: Failed to find Modifier with name TakeRecorder in VCam Component
[2024.05.31-10.22.35:246][25]LogVCamConnection: Warning: Widget VCamButton_BR: Failed to create for VCam Connection with Connection Name: VCamButton

```

---

<div class="post-metadata">

**Author:** ![comlys](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/comlys/32/998665_2.png) [@comlys](https://forums.unrealengine.com/u/comlys)\
**Post date:** [June 3, 2024, 9:47pm UTC](https://forums.unrealengine.com/t/virtual-camera-vcam-while-simulating-or-in-game/1159994/8 "2024-06-03T21:47:48Z")

</div>

Ok this looks to be a bug. It’s attempting to load a lot of editor-only stuff. I’ll JIRA this.

---

<div class="post-metadata">

**Author:** ![Cinerius1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Cinerius1](https://forums.unrealengine.com/u/Cinerius1)\
**Post date:** [June 4, 2024, 8:38am UTC](https://forums.unrealengine.com/t/virtual-camera-vcam-while-simulating-or-in-game/1159994/9 "2024-06-04T08:38:09Z")

</div>

Thanks! 🙂  
Looking forward to a future update!

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [July 4, 2024, 8:38am UTC](https://forums.unrealengine.com/t/virtual-camera-vcam-while-simulating-or-in-game/1159994/10 "2024-07-04T08:38:39Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
