<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Video Compositing on the iPhone: OpenGL with alpha mask on top of a full motion video</title>
	<atom:link href="http://HeikoBehrens.net/2010/07/07/video-compositing-on-the-iphone-opengl-with-alpha-mask-on-top-of-a-full-motion-video/feed/" rel="self" type="application/rss+xml" />
	<link>http://HeikoBehrens.net/2010/07/07/video-compositing-on-the-iphone-opengl-with-alpha-mask-on-top-of-a-full-motion-video/</link>
	<description>11:60 p.m. - my plain thoughts</description>
	<lastBuildDate>Fri, 03 Feb 2012 23:35:33 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
	<item>
		<title>By: Heiko Behrens</title>
		<link>http://HeikoBehrens.net/2010/07/07/video-compositing-on-the-iphone-opengl-with-alpha-mask-on-top-of-a-full-motion-video/#comment-21943</link>
		<dc:creator>Heiko Behrens</dc:creator>
		<pubDate>Fri, 16 Dec 2011 14:24:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.heikobehrens.net/?p=1154#comment-21943</guid>
		<description>Perdo, this has to be done in a different way. To modify frames of a video and to render it onto disk, have a look at the AV Foundation Framework and on assets speficially.</description>
		<content:encoded><![CDATA[<p>Perdo, this has to be done in a different way. To modify frames of a video and to render it onto disk, have a look at the AV Foundation Framework and on assets speficially.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pedro</title>
		<link>http://HeikoBehrens.net/2010/07/07/video-compositing-on-the-iphone-opengl-with-alpha-mask-on-top-of-a-full-motion-video/#comment-21048</link>
		<dc:creator>Pedro</dc:creator>
		<pubDate>Thu, 15 Dec 2011 13:03:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.heikobehrens.net/?p=1154#comment-21048</guid>
		<description>Hello,  I have read all your post and I am interested in doing something similar. 

I would like to have an alpha mask over a video recording, and when you finish recording, then the final video has this mask over. Do you know what I mean?

But I have being looking for it and I have not found nothing.

Please could you help me?

I leave you my email.

thaks a lot!</description>
		<content:encoded><![CDATA[<p>Hello,  I have read all your post and I am interested in doing something similar. </p>
<p>I would like to have an alpha mask over a video recording, and when you finish recording, then the final video has this mask over. Do you know what I mean?</p>
<p>But I have being looking for it and I have not found nothing.</p>
<p>Please could you help me?</p>
<p>I leave you my email.</p>
<p>thaks a lot!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Publications in current issues of PAGE magazine and mobile business &#171; Heiko Behrens (Blog)</title>
		<link>http://HeikoBehrens.net/2010/07/07/video-compositing-on-the-iphone-opengl-with-alpha-mask-on-top-of-a-full-motion-video/#comment-16853</link>
		<dc:creator>Publications in current issues of PAGE magazine and mobile business &#171; Heiko Behrens (Blog)</dc:creator>
		<pubDate>Fri, 29 Apr 2011 15:40:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.heikobehrens.net/?p=1154#comment-16853</guid>
		<description>[...] want to keep to the budget. Also, if you carefully look on page 31 you might notice the featured NIVEA Waterfall Race I wrote about before from a technical perspective. mobile business 03.11 - you can read my German article &quot;mobile [...]</description>
		<content:encoded><![CDATA[<p>[...] want to keep to the budget. Also, if you carefully look on page 31 you might notice the featured NIVEA Waterfall Race I wrote about before from a technical perspective. mobile business 03.11 &#8211; you can read my German article &quot;mobile [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James Norton</title>
		<link>http://HeikoBehrens.net/2010/07/07/video-compositing-on-the-iphone-opengl-with-alpha-mask-on-top-of-a-full-motion-video/#comment-8996</link>
		<dc:creator>James Norton</dc:creator>
		<pubDate>Thu, 22 Jul 2010 17:59:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.heikobehrens.net/?p=1154#comment-8996</guid>
		<description>I am interested in how you set up the EAGLView to transparently overlay the MPMoviePlayerController view.

Thanks,

James</description>
		<content:encoded><![CDATA[<p>I am interested in how you set up the EAGLView to transparently overlay the MPMoviePlayerController view.</p>
<p>Thanks,</p>
<p>James</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Heiko Behrens</title>
		<link>http://HeikoBehrens.net/2010/07/07/video-compositing-on-the-iphone-opengl-with-alpha-mask-on-top-of-a-full-motion-video/#comment-8969</link>
		<dc:creator>Heiko Behrens</dc:creator>
		<pubDate>Sat, 17 Jul 2010 07:59:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.heikobehrens.net/?p=1154#comment-8969</guid>
		<description>Hey Ash,

The rolling ball loop has been rendered as movie plus mask by our artists and we converted it to 192 transparent pngs offline. We then created 3 atlases of 64 frames each loaded as textures of the size 1024x1024. Using thumbnailimageAtTime was just an idea you might follow to do this online - directly in your app.

To apply masks with OpenGL ES 1.1 (this applies to cocos2D) you can use FBOs to change the alpha channel in a second step after you had rendered to them. Cocos2d supports this with CCRenderTexture directly.

Cheers,
Heiko</description>
		<content:encoded><![CDATA[<p>Hey Ash,</p>
<p>The rolling ball loop has been rendered as movie plus mask by our artists and we converted it to 192 transparent pngs offline. We then created 3 atlases of 64 frames each loaded as textures of the size 1024&#215;1024. Using thumbnailimageAtTime was just an idea you might follow to do this online &#8211; directly in your app.</p>
<p>To apply masks with OpenGL ES 1.1 (this applies to cocos2D) you can use FBOs to change the alpha channel in a second step after you had rendered to them. Cocos2d supports this with CCRenderTexture directly.</p>
<p>Cheers,<br />
Heiko</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ash</title>
		<link>http://HeikoBehrens.net/2010/07/07/video-compositing-on-the-iphone-opengl-with-alpha-mask-on-top-of-a-full-motion-video/#comment-8968</link>
		<dc:creator>Ash</dc:creator>
		<pubDate>Sat, 17 Jul 2010 00:35:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.heikobehrens.net/?p=1154#comment-8968</guid>
		<description>Hi Heiko,

Thanks very much for your reply.  You summarised what I would like to do exactly.

So if I understand correctly, to achieve your affect of having the water flow in front of the sphere, you took random frames of the playing movie (using thumbnailImageAtTime:timeOption) which returned a UIImage; which you then convert to a mask and put in a UIView.  You then convert the UIView to a EAGLView?  This is a very useful tip!

We are using Cocos2D because we also have sprites to draw in another layer.  Do you add the mask layer as a node to the sprite layer?  How do you blend the two layers to mask the sprites?  I am sorry for the rudimentary questions - I am new to OpenGL programming.

Thank you again for your invaluable help.

Best regards,
Ash</description>
		<content:encoded><![CDATA[<p>Hi Heiko,</p>
<p>Thanks very much for your reply.  You summarised what I would like to do exactly.</p>
<p>So if I understand correctly, to achieve your affect of having the water flow in front of the sphere, you took random frames of the playing movie (using thumbnailImageAtTime:timeOption) which returned a UIImage; which you then convert to a mask and put in a UIView.  You then convert the UIView to a EAGLView?  This is a very useful tip!</p>
<p>We are using Cocos2D because we also have sprites to draw in another layer.  Do you add the mask layer as a node to the sprite layer?  How do you blend the two layers to mask the sprites?  I am sorry for the rudimentary questions &#8211; I am new to OpenGL programming.</p>
<p>Thank you again for your invaluable help.</p>
<p>Best regards,<br />
Ash</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Heiko Behrens</title>
		<link>http://HeikoBehrens.net/2010/07/07/video-compositing-on-the-iphone-opengl-with-alpha-mask-on-top-of-a-full-motion-video/#comment-8967</link>
		<dc:creator>Heiko Behrens</dc:creator>
		<pubDate>Fri, 16 Jul 2010 11:42:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.heikobehrens.net/?p=1154#comment-8967</guid>
		<description>Hey Ash,

I am glad I could inspire you with my blog post about video composition. In general, you can place any UIView on top of the rendering view of a MPMoviePlayerController as you can read on different online tutorials. If your particular UIView contains transparent areas the content of the movie shines through.

What you want to achieve is the opposite, though. Parts of your movie should be rendered transparently based on its content (chroma keying). I share your opinion that this is currently not possible. Neither can you place a UIView behind the movie (until SDK 3.2) nor can do you have live access to the frames. What you could do though, is storing the individual frames as sprites if this fits in memory (you can render thumbnails of random frames to UIImages, since 3.2).

Hope this helps.

Cheers,
Heiko</description>
		<content:encoded><![CDATA[<p>Hey Ash,</p>
<p>I am glad I could inspire you with my blog post about video composition. In general, you can place any UIView on top of the rendering view of a MPMoviePlayerController as you can read on different online tutorials. If your particular UIView contains transparent areas the content of the movie shines through.</p>
<p>What you want to achieve is the opposite, though. Parts of your movie should be rendered transparently based on its content (chroma keying). I share your opinion that this is currently not possible. Neither can you place a UIView behind the movie (until SDK 3.2) nor can do you have live access to the frames. What you could do though, is storing the individual frames as sprites if this fits in memory (you can render thumbnails of random frames to UIImages, since 3.2).</p>
<p>Hope this helps.</p>
<p>Cheers,<br />
Heiko</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ash</title>
		<link>http://HeikoBehrens.net/2010/07/07/video-compositing-on-the-iphone-opengl-with-alpha-mask-on-top-of-a-full-motion-video/#comment-8933</link>
		<dc:creator>Ash</dc:creator>
		<pubDate>Fri, 16 Jul 2010 01:40:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.heikobehrens.net/?p=1154#comment-8933</guid>
		<description>I had a look at your Nivea Waterfall for Men app, and saw that you were able to get a holdout matte to make the water appear to be in front of the rolling ball.  I am working on a App for in which a person appears as a cutout figure in a movie with a black background, we would like to have some sprites appear to float around and behind him.  Up to now I have been unable to get any kind of alpha or chroma key to work with the video; and believe it&#039;s actually not possible.

Thank you very much!</description>
		<content:encoded><![CDATA[<p>I had a look at your Nivea Waterfall for Men app, and saw that you were able to get a holdout matte to make the water appear to be in front of the rolling ball.  I am working on a App for in which a person appears as a cutout figure in a movie with a black background, we would like to have some sprites appear to float around and behind him.  Up to now I have been unable to get any kind of alpha or chroma key to work with the video; and believe it&#8217;s actually not possible.</p>
<p>Thank you very much!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Psychologically Tricked: Perceived Speed in an iPhone Game &#171; Heiko Behrens (Blog)</title>
		<link>http://HeikoBehrens.net/2010/07/07/video-compositing-on-the-iphone-opengl-with-alpha-mask-on-top-of-a-full-motion-video/#comment-8859</link>
		<dc:creator>Psychologically Tricked: Perceived Speed in an iPhone Game &#171; Heiko Behrens (Blog)</dc:creator>
		<pubDate>Wed, 07 Jul 2010 14:06:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.heikobehrens.net/?p=1154#comment-8859</guid>
		<description>[...] Update: Read the follow-up post about the NIVEA FOR MEN WaterfallRace. Different functions to separate actual and displayed speed values [...]</description>
		<content:encoded><![CDATA[<p>[...] Update: Read the follow-up post about the NIVEA FOR MEN WaterfallRace. Different functions to separate actual and displayed speed values [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

