Using Image Sequence for Video in Unreal

     After the Oculus lip sync plug in did not work. Our other option was using After Effects but applying the 2D animation on top of the finale edit will just take too long. We ended up trying to animate materials in the sequencer in unreal. I was able to apply the mouth expression onto a plane but was left to figure out how to add the other mouth expression. I ended up figuring out how to apply png image sequence into unreal so it can play smoothly. 


    The first couple weeks of school I used Adobe animate lip sync for the mouth animation. I exported the animation as a png image sequence and placed them in a folder. 


    In unreal I created a folder in the content folder and named it movies. With the folder of the PNG image sequence I dragged and dropped the folder into the unreal project folder under the movie folder that I created. 


    In the Movie folder, I added an Img Media Source by right mouse click, media, and Img Media source. Double clicking the media source I added just one of the png image sequences where it says sequence path. Also making sure that it's 30 fps. 





    Right click again to media and media player. I checked the box video output MediaTexture asset and pressed ok.


    Then I created a plane. Once I set my plane up I dragged and dropped the New media Player_VIdeo onto the plane. It will automatically generate a material. 




    Next I create a level sequence. In the sequencer where it says +Track I added a media track. The white plus sign in the media track I clicked on media source and added my new imgMediaSource.




    Right Clicking the media track. I clicked on properties and set my media texture Which should be called NewMediaPlayer_Video. Now the animation can play.





    With this we are able to use lip sync in animate and play it as a video in unreal making it easier to make the mouth animation without having to manually do it which will take a long time. Since the video is on a plane we can add a socket to the character and attach the plane to the socket. Wherever the character moves the mouth moves with it. 


Comments

Popular posts from this blog

Part 1 Using Oculus lip-sync in Unreal Engine 5.3

Updating the mouth

Cleaning up the mouth animation in Adobe Animate