Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

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.