<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>JActionScripters &#187; VisualSketch</title>
	<atom:link href="http://blog.jactionscripters.com/category/visualsketch/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.jactionscripters.com</link>
	<description>More than 20 Japanese flash coders share the blog/ You will be junkie for this crazy Japanese Flash news</description>
	<lastBuildDate>Sun, 20 Jun 2010 10:03:26 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Particle Storm demo &amp; source</title>
		<link>http://blog.jactionscripters.com/2009/06/23/particle-storm-demo-source/</link>
		<comments>http://blog.jactionscripters.com/2009/06/23/particle-storm-demo-source/#comments</comments>
		<pubDate>Mon, 22 Jun 2009 15:41:12 +0000</pubDate>
		<dc:creator>Takayuki Fukatsu</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Experiment]]></category>
		<category><![CDATA[VisualSketch]]></category>

		<guid isPermaLink="false">http://blog.jactionscripters.com/?p=736</guid>
		<description><![CDATA[FITC: Cool Japan side A / Particle sample of SMOKE &#8211; wonderfl build flash online
I think I have forgotton to post this experiment to JActionScripters.
Here is a playable demo &#038; source code that I showed on the FITC2009 session. Storm simulation with 10000 particle.
Basically all physic and mouse interaction is calculated with bitmap force map. [...]]]></description>
			<content:encoded><![CDATA[<div style="text-align:center;width:465px;"><iframe title="FITC: Cool Japan side A / Particle sample of SMOKE - wonderfl build flash online" src="http://wonderfl.net/blogparts/e5458ebf7b16817e3529321415c4f17ce965515a" width="465" height="490" style="border:1px black solid;"></iframe><a href="http://wonderfl.net/code/e5458ebf7b16817e3529321415c4f17ce965515a" title="FITC: Cool Japan side A / Particle sample of SMOKE - wonderfl build flash online">FITC: Cool Japan side A / Particle sample of SMOKE &#8211; wonderfl build flash online</a></div>
<p>I think I have forgotton to post this experiment to JActionScripters.<br />
Here is a <a href="http://wonderfl.net/code/e5458ebf7b16817e3529321415c4f17ce965515a">playable demo &#038; source</a> code that I showed on the FITC2009 session. Storm simulation with 10000 particle.</p>
<p>Basically all physic and mouse interaction is calculated with bitmap force map. Precalculating mouse interaction with bitmap is much faster than doing mouse distance with 10000 particles every frame.</p>
<p>You can also see stupid <a href="http://wonderfl.net/code/0108d7b3b7a336aa406134e62ae6a50736519c08">250000 particle version</a> here.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.jactionscripters.com/2009/06/23/particle-storm-demo-source/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Study &#8211; Long Exposure-Like Visual Effect</title>
		<link>http://blog.jactionscripters.com/2009/05/21/study-long-exposure-like-visual-effect/</link>
		<comments>http://blog.jactionscripters.com/2009/05/21/study-long-exposure-like-visual-effect/#comments</comments>
		<pubDate>Thu, 21 May 2009 03:04:01 +0000</pubDate>
		<dc:creator>Jin Saburi</dc:creator>
				<category><![CDATA[Experiment]]></category>
		<category><![CDATA[VisualSketch]]></category>

		<guid isPermaLink="false">http://blog.jactionscripters.com/?p=542</guid>
		<description><![CDATA[One of my professions is a professional photographer. Of many techniques,
I love to take long exposure photos and often like to light-paint within them.

This is a real photo taken with a Nikon DSLR, 30secs, drawn with two LED penlights (blue/white) for a new year's card in 2006.

Usually, you would take a long exposure photo, by [...]]]></description>
			<content:encoded><![CDATA[<p>One of my professions is a professional photographer. Of many techniques,<br />
I love to take <a href="http://en.wikipedia.org/wiki/Long_exposure_photography" target="_blank">long exposure photos</a> and often like to <a href="http://en.wikipedia.org/wiki/Light_painting" target="_blank">light-paint</a> within them.</p>
<p><img src="http://jactionscripters.com/files/saburicom/long_exposure/nenga2006_front.jpg" alt="2006_HNY_card" title="2006_HNY_card" width="640" height="480" /><br />
<code>This is a real photo taken with a Nikon DSLR, 30secs, drawn with two LED penlights (blue/white) for a new year's card in 2006.</code><br />
<span id="more-542"></span></p>
<p>Usually, you would take a long exposure photo, by controlling the contrast between light sources.<br />
First, you set your camera to take time &#8211; let&#8217;s say 10 secs &#8211; to produce a composition. You seek the best aperture to give you the most &#8216;working time&#8217;, that means a long enough shutter speed to let you draw whatever you want within the frame, with a penlight or fire from a lighter, cars&#8217; head/rear lights drifting on a highway, etc. While the surrounding environment slowly burns into the film, the strong light sources would be able to burn instantly, and give you a nice line of light at your control.</p>
<p>But, if you were to do this with a USB camera input, there are several issues to be considered.</p>
<p>Firstly, since you can only access the bitmapData that comes into Flash as an image. This means you don&#8217;t know whether the white pixels are strong light, or just a white background. So, let&#8217;s say you blend each frame with a slight alpha. Since you can&#8217;t properly divide the strong light and weak light, the strong light would become as black as your white background, which will not produce the proper result.<br />
Your face will be as bright as the penlight, making a big, white, blob &#8211; a disaster.</p>
<p>Even more, each pixel has only 256 levels of data, so if you want to blend 256 frames (just about 8.5 secs), the data will be all black, since the levels will be shut down to zero. Even if you darken it a bit lighter, you will only have several levels to work with, leading to a posterized, contrasty failure.</p>
<p><img src="http://jactionscripters.com/files/saburicom/long_exposure/blob_bright.jpg" alt="Bright Blob 5secs with lighten blend" title="Bright Blob 5secs with lighten blend" width="310" height="233" class="alignleft size-full wp-image-21" />So, even if it is not logically correct, we will make a long exposure &#8216;like&#8217; effect this time, using the &#8216;lighten&#8217; blend mode rather than the &#8216;add&#8217; mode. Brighter pixels will be recorded. So, if you do this in a bright room, the results would look like this left image.</p>
<p>But, if you turn off the lights, you will be able to successfully draw your laser-lines.<br clear="all"/><br />
<img src="http://jactionscripters.com/files/saburicom/long_exposure/jas_02.jpg" alt="Light drawing w/ USB camera" title="Light drawing w/ USB camera"" width="640" height="480" /><code>This is done with a MacBook Pro/iSight and Flash CS3, in a dark room, and a small flashlight.</code></p>
<p>If you are satisfied with this, you are already at your finish line, but I would like to add what photographers call a &#8216;fill-in flash&#8217;, to give you more nice image. Please note that this is a digital version, so it will not be pixel-perfect.</p>
<p><img src="http://jactionscripters.com/files/saburicom/long_exposure/polaroid.jpg" alt="fill-in flash w/ Polaroid NightCam" title="fill-in flash w/ Polaroid NightCam" width="310" height="310" class="alignright size-full wp-image-21" />A &#8216;fill-in flash&#8217; with a real camera gives a dark foreground some light to brighten up the area after you record all the light drawings. Usually, this technique is used to take nice night photos of let&#8217;s say a cityscape. You would set the camera to take several seconds to burn the city lights into the film in the darkness, then flash the person in the foreground to finalize the composition.</p>
<p>To mimick this effect, we will &#8216;burn&#8217; the video input into the bitmapData with the &#8216;add&#8217; blendmode. But the problem still remains &#8211; it is still a digital effect, so you need the proper preparation to give you nice results.<br />
<br clear="all"/><br />
<img src="http://jactionscripters.com/files/saburicom/long_exposure/nd_filter.jpg" alt="ND8 filter taped to my MBP" title="ND8 filter taped to my MBP" width="310" height="233" class="alignleft size-full wp-image-21" />My solution is quite analog. I used a ND8 filter that I use for my cameras, and attached it to my iSight camera. It depends on your USB camera&#8217;s specs, but my iSight had neat results with the ND8 filter, with 2 flashes &#8211; meaning burning two frames with additive mode digitally. ND8 filters are like sunglasses to the USB cam.</p>
<p>The point to this digital long exposure-like effect is, that since it is tweaked to show light-drawings mainly, the blurring of normal recordings are not correct. On the other hand, since it is NOT using the additive mode (which would burn up to 0xFF white), you can set the &#8217;shutter&#8217; to 8 secs or 8 mins, and it will not over-expose (this is quite handy compared to an analog camera).<br clear="all"/></p>
<p><img src="http://jactionscripters.com/files/saburicom/long_exposure/jas_01.jpg" alt="JAS light drawing w/ USB camera" title="JAS light drawing w/ USB camera" width="640" height="480" /><br />
<code>JAPAN ActionScripters !!!</code><br />
<img src="http://jactionscripters.com/files/saburicom/long_exposure/heart.jpg" alt="JAS light drawing w/ USB camera" title="JAS light drawing w/ USB camera" width="640" height="480" /><br />
<code>Love Flash. Love you all.</code><br />
<img src="http://jactionscripters.com/files/saburicom/long_exposure/s_imgs.jpg" alt="JAS light drawing w/ USB camera" title="JAS light drawing w/ USB camera" width="640" height="240" /><br />
<code>left : Waving a flashlight in the dark. Red is actually my blood in my hand lit up.<br />
right : Flashing my face with a flashlight in the dark several times to simulate multiple exposures (even though it's me, it's SCARY)</code><br />
The parameters in this project are set to a ND8 filter covered camera, and setting default to my environment. Play around with the setting to get similar results.</p>
<p><a href="http://jactionscripters.com/files/saburicom/long_exposure/project" target="_blank">Here is the working project (new window).</a></p>
<p><code><strong>Additive Composition</strong> : this checkbox will enable additive blending, so you can see that the levels are not enough, and the composition is HORRIBLE ;D</code></p>
<p><code><strong>Capture Button</strong> : use this button to start recording.</code></p>
<p><code><strong>Seconds</strong> : set this to how long you want to record. 5s to 30s, defalt 15s.</code></p>
<p><code><strong>Flash</strong> : this is how many times you want to use the 'fill-in flash'</code></p>
<p>What do you think about this study ? If the lights are not drawing as a line, and becoming a dotted-line, draw slower, as the USB camera only records 30 frames per second, compared to a seamless recording of a camera.</p>
<p>I think fladdict will make us an iPhone version of this toy. Of course he will <img src='http://blog.jactionscripters.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>Here are the files : <a href="http://jactionscripters.com/files/saburicom/long_exposure/project/long_exposure.zip">long_exposure.zip (772KB)</a></p>
<p>Just an idea that came to me about 6 hours ago, and took me about two to experiment, and write this post. Hope you enjoyed it !!!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.jactionscripters.com/2009/05/21/study-long-exposure-like-visual-effect/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Fractal Study02</title>
		<link>http://blog.jactionscripters.com/2009/05/19/fractal-study02/</link>
		<comments>http://blog.jactionscripters.com/2009/05/19/fractal-study02/#comments</comments>
		<pubDate>Tue, 19 May 2009 10:16:35 +0000</pubDate>
		<dc:creator>Takayuki Fukatsu</dc:creator>
				<category><![CDATA[VisualSketch]]></category>
		<category><![CDATA[Download]]></category>

		<guid isPermaLink="false">http://blog.jactionscripters.com/?p=436</guid>
		<description><![CDATA[
Another fractal visual sketches. Now I&#8217;m cleaning up the code.
May upload moving demo later.
Soucr Code: fladdict_fractalrectangle2.zip






]]></description>
			<content:encoded><![CDATA[<p><img src="http://blog.jactionscripters.com/wp-content/uploads/2009/05/fractalrect2-0.png" alt="fractalrect2-0" title="fractalrect2-0" width="640" height="480" class="alignnone size-full wp-image-437" /></p>
<p>Another fractal visual sketches. Now I&#8217;m cleaning up the code.<br />
May upload moving demo later.</p>
<p>Soucr Code: <a href='http://blog.jactionscripters.com/wp-content/uploads/2009/05/fladdict_fractalrectangle2.zip'>fladdict_fractalrectangle2.zip</a></p>
<p><span id="more-436"></span></p>
<p><img src="http://blog.jactionscripters.com/wp-content/uploads/2009/05/fractalrect2-1.png" alt="fractalrect2-1" title="fractalrect2-1" width="640" height="480" class="alignnone size-full wp-image-440" /></p>
<p><img src="http://blog.jactionscripters.com/wp-content/uploads/2009/05/fractalrect2-2.png" alt="fractalrect2-2" title="fractalrect2-2" width="640" height="480" class="alignnone size-full wp-image-443" /></p>
<p><img src="http://blog.jactionscripters.com/wp-content/uploads/2009/05/fractalrect2-3.png" alt="fractalrect2-3" title="fractalrect2-3" width="640" height="480" class="alignnone size-full wp-image-444" /></p>
<p><img src="http://blog.jactionscripters.com/wp-content/uploads/2009/05/fractalrect2-5.png" alt="fractalrect2-5" title="fractalrect2-5" width="640" height="480" class="alignnone size-full wp-image-447" /></p>
<p><img src="http://blog.jactionscripters.com/wp-content/uploads/2009/05/fractalrect2-6.png" alt="fractalrect2-6" title="fractalrect2-6" width="640" height="480" class="alignnone size-full wp-image-448" /></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.jactionscripters.com/2009/05/19/fractal-study02/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Study &#8211; Recreating LCD Panels / Trinitron Like Matrices</title>
		<link>http://blog.jactionscripters.com/2009/05/18/study-recreating-lcd-panels-trinitron-like-matrices/</link>
		<comments>http://blog.jactionscripters.com/2009/05/18/study-recreating-lcd-panels-trinitron-like-matrices/#comments</comments>
		<pubDate>Mon, 18 May 2009 14:57:10 +0000</pubDate>
		<dc:creator>Jin Saburi</dc:creator>
				<category><![CDATA[VisualSketch]]></category>
		<category><![CDATA[Download]]></category>

		<guid isPermaLink="false">http://blog.jactionscripters.com/?p=220</guid>
		<description><![CDATA[For a while, I have been coding a study to recreate a real-time movie player that will show the video in a more retro-tech experience.

This is my Cinema Display enlarged &#8230; see the RGB pixels all lined up ?
Here is what I mean.
(You can click on the movie to make it fullscreen)

No source video in [...]]]></description>
			<content:encoded><![CDATA[<p>For a while, I have been coding a study to recreate a real-time movie player that will show the video in a more retro-tech experience.</p>
<p><img src="http://jactionscripters.com/files/saburicom/rgb_player/rgb_player.jpg" alt="Close-up image of a Cinema Display" /><br />
This is my Cinema Display enlarged &#8230; see the RGB pixels all lined up ?</p>
<p><a href="http://jactionscripters.com/files/saburicom/rgb_player/flv_player/" target="_blank">Here is what I mean.</a><br />
(You can click on the movie to make it fullscreen)<br />
<span id="more-220"></span><br />
<a href="http://jactionscripters.com/files/saburicom/rgb_player/flv_player/nopip.html" target="_blank">No source video in center version</a></p>
<p><a href="http://jactionscripters.com/files/saburicom/rgb_player/cam_test/" target="_blank">Your camera (such as iSight) as a video source</a></p>
<p><a href="http://jactionscripters.com/files/saburicom/rgb_player/mc_test/" target="_blank">An interactive MovieClip as a source</a><br />
(Scrub the movie with your mouse from left to right, vice versa)</p>
<p>You can click on the movie in any sample to make it fullscreen.</p>
<p><img src="http://jactionscripters.com/files/saburicom/rgb_player/rgb_matrix.jpg" alt="How to line up your RGBs" /><br />
The fun part is always research.<br />
I found out that there are lots of ways to line up the RGB components, and all of them had their pros and cons. My display uses the left, straight line-up, but I used the right, shifted version to make the videos look better at this type of low-rez visualization. Of course, the text is horrible.</p>
<p>The problem was, I started my experiments with Flash CS3 and AS2.0, and the best I could do was 4 seconds to setup the RGB version of the pixels, and another 4 to color them &#8211; per frame !!<br />
This is just out of the question. This was for a image that was 400&#215;300 pixels in size.</p>
<p>So, I revised my project to AS3.0/FP9, and though I had to make the movie size smaller to a minimal 80&#215;60 pixels, the AS3.0 version is running smoothly on a MacBook Air 1.6GHz (the first MBA), and I&#8217;m happy ;D</p>
<p>Now, with AS3.0/FP10 on Flash CS4, with the same code, same hardware, the movie is working with a final output of 800&#215;600px@30FPS, with the master movie at 160&#215;120. </p>
<p>It should be much more faster with Pixel Bender shading, or a more bitmap approach, but the present status is very <i>usable</i> for a project.</p>
<p>Forgive me, as the .as file is not coded as a class, but this is just a study, and I am not that fluent as a programmer.</p>
<p>How to use :<br />
Within SaburiRGBPlayer.as, the 19th line -<br />
<code-style>
<pre name="code" class="as3">
var myMode:int=0;//0:cam 1:flv 2:mc
var setPinP:Boolean=false;
</pre>
<p></code-style><br />
You can set <i>myMode</i> to set the source of the RGB video to your Camera, FLVs, or a MovieClip.<br />
The download defaults to a camera.<i>setPinP</i> shows the source video in the center.<br />
If you choose FLV mode, set the array in line 30 to the filenames, and set the array in line 31 to change the volume of audio.<br />
<code-style>
<pre name="code" class="as3">
var myFilenameArray:Array=["ipod.flv","ipod2.flv","ipod3.flv","ipod4.flv","ipod5.flv","ipod_nano.flv","ipod_nano_laser.flv"];
var myVolumeArray:Array=[1,0.3,1,1,1,1,1];
</pre>
<p></code-style></p>
<p>Here are the files : <a href="http://jactionscripters.com/files/saburicom/rgb_player/SaburiRGBPlayer.zip">SaburiRGBPlayer.zip (24KB)</a></p>
<p>iPod ADs always rock. Just love them all.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.jactionscripters.com/2009/05/18/study-recreating-lcd-panels-trinitron-like-matrices/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Fractal Study01</title>
		<link>http://blog.jactionscripters.com/2009/05/17/fractal-study01/</link>
		<comments>http://blog.jactionscripters.com/2009/05/17/fractal-study01/#comments</comments>
		<pubDate>Sun, 17 May 2009 14:04:24 +0000</pubDate>
		<dc:creator>Takayuki Fukatsu</dc:creator>
				<category><![CDATA[VisualSketch]]></category>
		<category><![CDATA[Download]]></category>
		<category><![CDATA[Fractal]]></category>

		<guid isPermaLink="false">http://blog.jactionscripters.com/?p=243</guid>
		<description><![CDATA[
Visual sketch for fractal tessellation.
This is a start point for my fractal study.
SouceCode: fladdict_fractalrectangle.zip


With random fill color and border line.

Without border line.

I think this no margin version is too dirty.

Now rect size affects brightness of the border.

Now rect size affect margin of the region.
]]></description>
			<content:encoded><![CDATA[<p><img src="http://blog.jactionscripters.com/wp-content/uploads/2009/05/fladdict_fractalrect1.jpg" alt="fladdict_fractalrect1" title="fladdict_fractalrect1" width="640" height="480" class="alignnone size-full wp-image-244" /></p>
<p>Visual sketch for fractal tessellation.<br />
This is a start point for my fractal study.</p>
<p>SouceCode: <a href='http://blog.jactionscripters.com/wp-content/uploads/2009/05/fladdict_fractalrectangle.zip'>fladdict_fractalrectangle.zip</a></p>
<p><span id="more-243"></span></p>
<p><img src="http://blog.jactionscripters.com/wp-content/uploads/2009/05/fractalrect1-1.jpg" alt="fractalrect1-1" title="fractalrect1-1" width="640" height="480" class="alignnone size-full wp-image-259" /><br />
With random fill color and border line.</p>
<p><img src="http://blog.jactionscripters.com/wp-content/uploads/2009/05/fractalrect1-2.jpg" alt="fractalrect1-2" title="fractalrect1-2" width="640" height="480" class="alignnone size-full wp-image-262" /><br />
Without border line.</p>
<p><img src="http://blog.jactionscripters.com/wp-content/uploads/2009/05/fractalrect1-3.jpg" alt="fractalrect1-3" title="fractalrect1-3" width="640" height="480" class="alignnone size-full wp-image-265" /><br />
I think this no margin version is too dirty.</p>
<p><img src="http://blog.jactionscripters.com/wp-content/uploads/2009/05/fractalrect1-4.jpg" alt="fractalrect1-4" title="fractalrect1-4" width="640" height="480" class="alignnone size-full wp-image-268" /><br />
Now rect size affects brightness of the border.</p>
<p><img src="http://blog.jactionscripters.com/wp-content/uploads/2009/05/fractalrect1-5.png" alt="fractalrect1-5" title="fractalrect1-5" width="640" height="480" class="alignnone size-full wp-image-271" /><br />
Now rect size affect margin of the region.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.jactionscripters.com/2009/05/17/fractal-study01/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
