x


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?

more ▼

asked Dec 15 '09 at 11:47 PM

navparker gravatar image

navparker
52 6 6 9

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

Sep 28 '10 at 05:08 PM navparker
(comments are locked)
10|3000 characters needed characters left

7 answers: sort newest

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)?

more ▼

answered May 25 '11 at 03:58 PM

amit gravatar image

amit
16 5 5 5

(comments are locked)
10|3000 characters needed characters left

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)?

more ▼

answered May 25 '11 at 03:57 PM

amit gravatar image

amit
16 5 5 5

(comments are locked)
10|3000 characters needed characters left

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

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

more ▼

answered Jul 06 '10 at 03:33 AM

MaDDoX gravatar image

MaDDoX
165 8

(comments are locked)
10|3000 characters needed characters left

.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.

more ▼

answered Dec 17 '09 at 12:20 PM

Dreamora gravatar image

Dreamora
3.2k 1 4 25

(comments are locked)
10|3000 characters needed characters left

@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? Maybe I'll whip up my own version.

Thanks!

-paul

more ▼

answered Dec 16 '09 at 04:58 AM

Paul Clay gravatar image

Paul Clay
12

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

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

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x2193
x326
x243
x107
x9

asked: Dec 15 '09 at 11:47 PM

Seen: 9027 times

Last Updated: May 25 '11 at 03:58 PM