However I’ve seen that there is a variable in SetSplashScreen function called bShowLoadingMovie and I was wondering how this works. How can I set this movie?
[How do I get Movies to play on startup for my packaged game?][3]
[UMoviePlayerSettings][4]
EDIT:
After doing some digging, I found some files in the source that provided some good insight. I’ve linked the files, and functions that I followed the trail of
Hello @BenVlodgi, thanks for your reply, but I don’t need to play a startup movie. I need to play a movie as a loading screen between map changes in VR devices.
You’ll have to use level streaming to be able to play a video while loading. If you use standard OpenLevel, then it will freeze the video.
Have the movie loaded in the PersistentLevel, and whenever you are changing from sublevelA to sublevelB, play the video, and tell the level to stream in, but don’t block on loading, or else it will freeze.
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.
hey JavierRamello,
Did you get a loading movie to work somehow? I tried with the stuff you mentioned and BenVlodgi wrote down. However I’m not able to get a movie to work.
After the level loaded I want to show a movie for some performant stuff that the player/user can trigger.
StereoLayerFunctionLibrary.cpp::SetSplashScreen(…) takes in a texture and even movies should be textures (media textures in this case). However a MediaTexture is only updated through a media player that is playing in the background. I tried starting a MediaPlayer that renders onto the texture (its playing when watching the texture on a cube) and used ShowSplashScreen but it stays black.
Were you able to achieve any working result?
Hello Rumbleball, sadly we never managed to set movies as loading screens. For now we just kept a static image. If anytime you find a way to do it, please, let me know.
I gave up at some point. We now have 5 images, 20% 40% … and switch those we reach that progress. To make that work, you need to let the engine run an frame to update the image. When picking that up again, I will look into SteamVR API directly.