Bureaucrats, emailconfirmed, Administrators
5,468
edits
Kei kitamura (talk | contribs) No edit summary |
No edit summary |
||
(16 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
== Concept== | == Concept== | ||
Flow of graphics<br> | |||
<br> | |||
This is an experiment to change the texture of videos.<br> | This is an experiment to change the texture of videos.<br> | ||
A video of audience, which comes from internal webcam of the computer, is transformed by external | A video of audience, which comes from internal webcam of the computer, is transformed by external variables, which came from other Pure data / max patch. <br> | ||
The aim of this experiment is to represent a different impression while people see what they usually see in their life, by changing textures.<br> | The aim of this experiment is to represent a different impression while people see what they usually see in their life, by changing textures.<br> | ||
It is the first step of giving different look by | It is the first step of giving different look of texture by visual effects.<br> | ||
<br style="clear:both;"> | |||
<br> | <br> | ||
== | ==Files== | ||
The max patch can be downloaded from here;<br> | The max patch can be downloaded from here;<br> | ||
[[Media:Pixel_sampling_test_02.maxpat]]<br> | [[Media:Pixel_sampling_test_02.maxpat]]<br> | ||
Line 13: | Line 15: | ||
Also, here is the patch I used for osc communication with other patches<br> | Also, here is the patch I used for osc communication with other patches<br> | ||
[[Media:OSC_Network.maxpat]] | [[Media:OSC_Network.maxpat]] | ||
<br style="clear:both;"> | |||
<br> | |||
==Methods== | ==Methods== | ||
1. Capture a video from the webcam<br> | |||
[[File: KK_dataflow_step1.png|200px|thumb|left]]<br> | |||
Using jit.brab object, the video from a webcam can be captured and integrated with other max objects.<br> | |||
The captured video is sent to jit.matrix object.<br> | |||
In the sample patch, a large toggle button in the center of the window activates this step.<br> | |||
<br style="clear:both;"> | |||
<br> | |||
2.Generate noise maps for masking<br> | |||
[[File: KK_dataflow_step2.png|200px|thumb|left]]<br> | |||
Next to the video capture part, there are some objects to generate a monochrome nonise texture.<br> | |||
jit.bfg object generates actual noise, and it enables to select several types of noise.<br> | |||
In this patch, a simplex noise is used, but there is another noise mask using curl noise in this patch to get more complexed result.<br> | |||
<br style="clear:both;"> | |||
<br> | |||
3.Select key color for masking<br> | |||
[[File: KK_dataflow_step3.png|200px|thumb|left]]<br> | |||
You can select a key color for chroma key with a window with red lines.<br> | |||
Either of black or white part of the noise map is selected, and the selected color becomes transparent.<br> | |||
The setting of key color is assigned for both two noise textures.<br> | |||
<br style="clear:both;"> | |||
<br> | |||
4.Chroma key<br> | |||
[[File: KK_dataflow_step4.png|200px|thumb|left]][[File: KK_dataflow_chromakey.png|200px|thumb|left]]<br> | |||
The alpha channel of noise map is assigned for the alpha channel of a video from webcam.<br> | |||
Now the video is partially transparent.<br> | |||
<br style="clear:both;"> | |||
<br> | |||
5.Transformation<br> | |||
[[File: KK_dataflow_step5.png|200px|thumb|left]][[File: KK_dataflow_offset.png|200px|thumb|left]]<br> | |||
Final composition consists of a original video as a background, and two edited layer with external alpha channel.<br> | |||
To deform the video, the edited two layer must be transformed.<br> | |||
In this case, scale and offset is varied.<br> | |||
<br style="clear:both;"> | |||
<br> | |||
6.Composition<br> | |||
[[File: KK_dataflow_step3.png|200px|thumb|left]]<br> | |||
Layers are composited with "jit.alphablend" node, so that the background video can be seen in the transparent area of upper layers.<br> | |||
<br style="clear:both;"> | |||
<br> | <br> | ||
==Result== | ==Result== | ||
[[File: KK_dataflow_overview.png|200px|thumb|left]]<br> | [[File: KK_dataflow_overview.png|200px|thumb|left]]<br> | ||
[[File: KK_dataflow_result.png|200px|thumb|left]]<br> | [[File: KK_dataflow_result.png|200px|thumb|left]]<br> | ||
<br style="clear:both;"> | |||
<br> | |||
==Photos== | |||
<gallery> | |||
File:Maria_IMG_1107.JPG | |||
File:Maike_IMG_20170401_212748564.jpg | |||
</gallery> |