Virtual Camera (vcam) while Simulating or in Game?

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?

1 Like

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?

1 Like

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 ?

Can you post your UE and VCam app logs?

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
This is how it happens:
I created a simple Button which runs this code when pressed:


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
Could the problem be the Pixel Streaming?

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?

Empty_ambient.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:

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

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:

[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:

[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:

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:

[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
[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

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

1 Like

Thanks! :slight_smile:
Looking forward to a future update!

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