Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

How to apply Movie Textures

Discussion in 'Immediate Mode GUI (IMGUI)' started by DylanWest, Dec 19, 2009.

  1. DylanWest

    DylanWest

    Joined:
    Sep 30, 2009
    Posts:
    32
    I'm trying to a quicktime movie texture to a plane in unity, and can't get it to work. The movie (.mov) appears as a blank icon in the project panel, and doesn't appear in the materials dropdown or the textures dropdown once a basic material is applied to the plane. When i try to drag the movie onto the plane in the hierarchy or scene views, it shows the circle with a slash through it. Can anyone help? I've looked at the movie texture page on the unity site and all that says is that movie textures are applied the same as other textures. I tried applying it as other textures, but no luck. I have no problems applying a jpg or regular image to the plane because regular images appear in the texture dropdown. I even tried following the video tutorial at http://www.vimeo.com/channels/ncsuunity#5000216, but what the author shows to do I am unable to do. I think it's because the icon for the movie is not blank in their project panel like it is in mine. I know my video is a quicktime movie as it plays in quicktime with no problems. I've even tried an .avi video and while that shows a video icon in the project panel, that format doesn't work for me either. I've attached the movie file I'm trying to apply. Note: (it's a silly rendering from Blender that I'm just using as a test of this feature.)
     

    Attached Files:

  2. DylanWest

    DylanWest

    Joined:
    Sep 30, 2009
    Posts:
    32
    I forgot. Unity Indy does not offer video playback capabilities. Don't know why, but I didn't get a reminder from the console until now.
     
  3. bradjensen68

    bradjensen68

    Joined:
    Feb 2, 2009
    Posts:
    274
    Dylan,

    Maybe not the most effective solution, but I made a trigger to open a web site where the video is hosted. This shoudl work for demo purposes. For production, you should probably spring for the Pro license.

    --Brad
    http://www.streetsmartdetroit.com

    P.S.
    What's housing solved?
     
  4. h20

    h20

    Joined:
    Dec 8, 2009
    Posts:
    50
    Theres no way to import a video in unity Indie?

    I was playing on puting this on a tv
     
  5. Dreamora

    Dreamora

    Joined:
    Apr 5, 2008
    Posts:
    26,601
    No there is no way to import or play movies into the free unity (there is no unity indie)
     
  6. h20

    h20

    Joined:
    Dec 8, 2009
    Posts:
    50
    bummer. Stinky stinky.

    Mabey i can activate the unity pro 30day trial
     
  7. knowtheneo

    knowtheneo

    Joined:
    Nov 20, 2009
    Posts:
    6
    I got a unity Pro trial, and I couldn't get the video posted here to play inside unity. No error from importer, but the movie's inspector is empty
     
  8. CupOfJoe

    CupOfJoe

    Joined:
    Aug 5, 2010
    Posts:
    3
    I spent a lot of time trying to get a movie to work as a texture. Finally, here's the solution we came up with:

    Code (csharp):
    1. MovieTexture movTex = (MovieTexture)renderer.material.mainTexture;
    2.         movTex.loop = true;
    3.         movTex.Play();
    The script reference doesn't say this is necessary. If there's a way to not have to typecast, it would nice to know.
     
  9. Dreamora

    Dreamora

    Joined:
    Apr 5, 2008
    Posts:
    26,601
    the docs of unity 2.x are unityscript focused which is dynamically typed.

    In C# you must cast it or it won't be a movie texture
     
  10. Cherry_Qu_9_21

    Cherry_Qu_9_21

    Joined:
    May 19, 2011
    Posts:
    1
    Hello~ I had exactly the same problem today and here is the solution:

    "I too had the same problem yesterday and after looking for a few other solutions I've found that using Miro Converter is a good solution. It's a really simple program designed only to convert to theora. Go here http://www.mirovideoconverter.com/ download and drag your file to the program and press convert. Then drag your converter video to unity."

    You may want to see the original solution and its problem, here is the link: http://answers.unity3d.com/questions/33634/cannot-import-movie-anymore.html

    I have tried the software, it's very neat! Good Luck!
     
  11. chiako

    chiako

    Joined:
    Oct 17, 2012
    Posts:
    5
    will all this solutions will work when i use unity 4 30-day trial?