adding Video in a scene?

Hi guys… do you know if it’s possible to add a video in a game?

I want to create a 3d TV that will show a short movie as the character approaches.

How do I display a movie file in unity?

Any comments much appreciated! :slight_smile:

Regards…

  1. It requires Unity Pro
  2. If you have unity pro, you would drop the movie into unity so its converted (or provide it as ogg theora) and then load and assign it to a texture to then play through the MovieTexture.Play() function

Hi,
Say I have Unity Pro. Then what I want to do is to load a movie via the www class. The movie will be in the any of the following formats: usually .mov, .mpg, .mpeg, .mp4, .avi, .asf. Is there a way to convert the movie to Ogg Theora on the fly?

There isn’t a way to convert the files with Unity but there may be other tools that can process the movie data. However, it’s unlikely that these will work in real time - you will probably need to convert the movies beforehand.