Search Unity

Movies as textures?

Discussion in 'General Discussion' started by dingosmoov, Jul 27, 2005.

  1. dingosmoov

    dingosmoov

    Joined:
    Jul 12, 2005
    Posts:
    559
    In the online reference manual under "File Texture" it says: "They are image or movie files that you put on your objects."

    Does this mean whe can have a movie file(mpeg, .mov, avi) as a texture on an object?

    What is the best way to have a full screen movie play? Would I create a mesh plane that fills the screen and texture the movie to that mesh plane?

    Or is there a 'video layer' similar to the GUILayer?

    Is there a way to control the playback of a movie texture through scripting?
     
  2. dingosmoov

    dingosmoov

    Joined:
    Jul 12, 2005
    Posts:
    559
    Found Class: AnimationClip

    Is this what I am looking for to playback a videoclip?

    If so are there any posted examples?

    dingo
     
  3. NicholasFrancis

    NicholasFrancis

    Joined:
    Apr 8, 2005
    Posts:
    1,587
    You _can_ import quicktime movies. They are not decompressed on the fly, so you will burn up space at an alarming rate.

    To get them to play you need to call Texture.SetFrame from scripting
     
  4. Joachim_Ante

    Joachim_Ante

    Unity Technologies

    Joined:
    Mar 16, 2005
    Posts:
    5,203
    Snippet from the latest script reference docs.
    This shows how to play back a movie file texture.
     

    Attached Files:

  5. Richard_B

    Richard_B

    Joined:
    Jul 22, 2005
    Posts:
    436
    What file format must the FileTexture be? I have a 256*256, 15fps quicktime .mov file and the Inspector won't accept the file if I try to drag it on to the "File Texture" script variable.


    thanks,
    Richard.
     
  6. Richard_B

    Richard_B

    Joined:
    Jul 22, 2005
    Posts:
    436
    Sorry - my bad - the images hadn't been cropped to precisely 256*256 (curse Graphic Converter!).

    Richard.