Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
2
Question by navparker · Dec 15, 2009 at 11:47 PM · texturetransparencyalphamovietexturequicktime

How do I use Movie Texture with alpha channel?

First time Unity user.

Is is possible to use a movie's alpha channel to control transparency of a texture? Or do I need to use a second grayscale movie that only contains the matte?

How CPU/GPU intensive are movie textures -- can many be played simultaneously? Anyone have any movie texture examples I could look at?

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image navparker · Sep 28, 2010 at 05:08 PM 0
Share

Does Unity 3 change/improve performance on how Quicktime movies as textures are handled?

4 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by Jaap Kreijkamp · Dec 16, 2009 at 02:12 AM

I believe Unity uses Theora as video format which doesn't support alpha channel. There was a qt plugin for unity, but believe it isn't really kept up-to-date and didn't work under windows and probably won't ever work for web-plugins.

It should be possible to make it work using a second movie that has luminance as alpha, of course, you first have to be able to extract the alpha channel in a second movie and second play the streams back perfectly in sync.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
1

Answer by spencer lindsay · Dec 16, 2009 at 04:12 AM

Agreeing with Jaap.

Split the movie into an RGB version and an alpha version and then use them as seperate channels. We wrote an MOV material last month for this thing we're doing but I'm not sure we can give it away quite yet. Lemme check.

It would be cool to see if the two channel movie texture works on the web.

:s.

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Paul Clay · Dec 16, 2009 at 04:58 AM 0
Share

@spencer

Oh my! If you can give away the code for this .mov material you speak of, I would be sooo very excited. I'm currently trying to do the same.

If you can't give out the code, could you explain how the code works? $$anonymous$$aybe I'll whip up my own version.

Thanks!

-paul

avatar image thehobbit123 · Mar 30, 2016 at 07:58 AM 0
Share

Hi @Spencer lindsay would you please help me play the alpha channel video when the target found

avatar image
1

Answer by MaDDoX · Jul 06, 2010 at 03:33 AM

Check this thread out, all you wanna know it's there, in detail:

http://answers.unity3d.com/questions/2263/movie-texture-blending

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by Dreamora · Dec 17, 2009 at 12:20 PM

.mov are converted to ogg theora videos which is the only video format that works natively in unity.

What you basically need is a shader, no code actually. The shader does nothing else than using the second movie texture as the alpha mask for the first movie texture.

If you stored luminance / brightness data in the second one to represent the alpha, then its just a matter of reading the color of the second and assign the g, r or b component to the a (alpha) component of the first texture.

That way movie texture 1 will use the R / G / B channel of movie texture 2 as its alpha channel.

As for the intensity: they are done fully decompressed in cpu as far as I'm aware. As such you should avoid having too large movies, especially nothing in the range of HD, if it shall run on normal machines too.

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image amit · May 25, 2011 at 03:57 PM 0
Share

what type of shader should i use to put the 2 movies? and is there a way to use only one quicktime movie (exported with alpah from flash)?

avatar image thehobbit123 · Mar 30, 2016 at 07:59 AM 0
Share

@amit did you get it worked. i want to play an alpha channel video. help me

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

2 People are following this question.

avatar image avatar image

Related Questions

How to paint a texture transparent ? 0 Answers

use Alpha from image in Fragment shader 0 Answers

transparent RGBA PNG textures worked in 4.6, how can I get them working in Unity5? 1 Answer

Alpha problem with textures on a plane 2 Answers

Texture transparency not working as expected 3 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges