<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.3.3" -->
<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/"
	>

<channel>
	<title>daisyrust.com &#187; cocoa</title>
	<link>http://www.daisyrust.com</link>
	<description>digital art hacks - creative code - exhibition</description>
	<pubDate>Mon, 25 Feb 2008 14:46:36 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.3</generator>
	<language>en</language>
			<item>
		<title>Quartz Composer and the Nintendo Wii Remote - QCWii a demo application</title>
		<link>http://www.daisyrust.com/2007/02/12/quartz-composer-some-projects/</link>
		<comments>http://www.daisyrust.com/2007/02/12/quartz-composer-some-projects/#comments</comments>
		<pubDate>Mon, 12 Feb 2007 15:14:20 +0000</pubDate>
		<dc:creator>ian grant</dc:creator>
		
		<category><![CDATA[cocoa]]></category>

		<category><![CDATA[mac development]]></category>

		<category><![CDATA[physical computing]]></category>

		<category><![CDATA[quartz composer]]></category>

		<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://www.daisyrust.com/2007/02/12/quartz-composer-some-projects/</guid>
		<description><![CDATA[<img align="left" onclick="window.open('http://www.daisyrust.com/wp-content/uploads/2007/02/QCWiiMainScreen.png','popup','width=520,height=411,scrollbars=no,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=yes,left=0,top=0');return false" src="http://www.daisyrust.com/wp-content/uploads/2007/02/QCWiiMainScreen-tm.png" height="100" width="126" alt="Qcwiimainscreen" />

Download Application: <a href="http://www.daisyrust.com/quartzcomposer/qcwii_v0.1.zip" title="download link for qcwill_v0.1.zip">qcwii_v0.1.zip</a>
Download Source Code:  <a href="http://www.daisyrust.com/quartzcomposer/qcwii_v0.1_src.zip" title="download link for qcwill_v0.1.zip">qcwii_v0.1_src.zip</a>

QCWii is an application that lets a user connect a Nintendo Wii Remote to the mac and control a simple teapot. It is a proof of concept for a digital puppet controller. The final project controls a face - where the mouth is real-time video and the eyes a pre-recorded video loops that can be controlled from the wii remotes buttons. Please see the following website for more details.
]]></description>
			<content:encoded><![CDATA[<p>Download Application: <a href="http://www.daisyrust.com/quartzcomposer/qcwii_v0.1.zip" title="download link for qcwill_v0.1.zip">qcwii_v0.1.zip</a><br />
Download Source Code:  <a href="http://www.daisyrust.com/quartzcomposer/qcwii_v0.1_src.zip" title="download link for qcwill_v0.1.zip">qcwii_v0.1_src.zip</a></p>
<p>QCWii is an application that lets a user connect a Nintendo Wii Remote to the mac and control a simple teapot.</p>
<p>It is a proof of concept for a digital puppet controller. The final project controls a face - where the mouth is real-time video and the eyes a pre-recorded video loops that can be controlled from the wii remotes buttons. Please see the following website for more details and the project write up.</p>
<p><strong>Link:</strong> <a href="http://ellington.tvu.ac.uk/ma/computer-arts-major-project/">http://ellington.tvu.ac.uk/ma/computer-arts-major-project/</a><br />
<img src="http://www.daisyrust.com/wp-content/uploads/2007/02/QCWiiMainScreen.png" height="411" width="520" border="1" hspace="4" vspace="4" alt="Qcwiimainscreen" /><span style="font-size:0pt;"></p>
<p></span><br />
<img onclick="window.open('http://www.daisyrust.com/wp-content/uploads/2007/02/QCWiiMainScreen.png','popup','width=520,height=411,scrollbars=no,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=yes,left=0,top=0');return false" src="http://www.daisyrust.com/wp-content/uploads/2007/02/QCWiiMainScreen-tm.png" height="100" width="126" border="1" hspace="4" vspace="4" alt="Qcwiimainscreen" />	<img onclick="window.open('http://www.daisyrust.com/wp-content/uploads/2007/02/pref_01.png','popup','width=520,height=565,scrollbars=no,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=yes,left=0,top=0');return false" src="http://www.daisyrust.com/wp-content/uploads/2007/02/pref_01-tm.png" height="100" width="92" border="1" hspace="4" vspace="4" alt="Pref 01" />	<img onclick="window.open('http://www.daisyrust.com/wp-content/uploads/2007/02/pref_02.png','popup','width=520,height=565,scrollbars=no,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=yes,left=0,top=0');return false" src="http://www.daisyrust.com/wp-content/uploads/2007/02/pref_02-tm.png" height="100" width="92" border="1" hspace="4" vspace="4" alt="Pref 02" /> <img onclick="window.open('http://www.daisyrust.com/wp-content/uploads/2007/02/pref_03.png','popup','width=520,height=565,scrollbars=no,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=yes,left=0,top=0');return false" src="http://www.daisyrust.com/wp-content/uploads/2007/02/pref_03-tm.png" height="100" width="92" border="1" hspace="4" vspace="4" alt="Pref 03" /></p>
<p>The source code demonstrates the following:</p>
<ul>
<li>how the darwiin-remote framework can be used to control a 3D model in a simple Quartz Composer patch.</li>
<li>how cocoa bindings work connecting UI elements, code and published keys from a quartz composer patch.</li>
<li>a crude &#8216;full screen&#8217; mechanism.</li>
</ul>
<p>Many thanks to Jasen Jacobsen for advice on how to make the animation smooth and to Hiroaki for the &#8216;Darwiin-Remote&#8217; framework and project.</p>
<p><strong>Link:</strong> <a href="http://sourceforge.net/projects/darwiin-remote/">http://sourceforge.net/projects/darwiin-remote/</a></p>
<p><strong>Usage</strong></p>
<p>To connect to the Wii Remote: press button 1 and 2 on the wii remote so the lights flash, then click &#8216;Connect with wii remote&#8217; on the preference pane:</p>
<p><img src="http://www.daisyrust.com/wp-content/uploads/2007/02/pref_01.png" height="565" width="520" border="1" hspace="4" vspace="4" alt="Pref 01" /></p>
<p>To activate sensor tracking: click &#8216;Track Motion Sensors&#8217; on the same preference pane.</p>
<p>That should be it. Most of the buttons on the Wii are connected to do something in the Quartz Composer composition - if only signal a connection to the patch.</p>
<ul>
<li> The cursor pad moves the object, left, right (x axis), forward and backwards (z axis).</li>
<li> Buttons 1 and 2 rotates the object around the Y axis.</li>
<li> + and - scale the object.</li>
</ul>
<p>It is acknowledge that both scaling and translating on the Z axis is probably not as useful as moving up and down.</p>
<p>To exit full screen mode - press SHIFT - F on the keyboard.</p>
<p><strong>Some Additional Information if you wish to edit the Quartz Composer Patch to do something other than move a teapot around</strong></p>
<p>To find the QC composition:</p>
<p>ctrl-click on the QC-Wii application &#8216;view package contents&#8217; and dig down to &#8216;resources&#8217; that is where the QC patch - wii_to_qc.qtz - lives. You can (carefully) edit that composition to do something different other than trigger the text display and move the teapot&#8230; Just don&#8217;t change the name of any of the root level published port &#8216;keys&#8217;:</p>
<p><img id="image56" src="http://www.daisyrust.com/wp-content/uploads/2007/03/FinderScreenSnapz001.png" alt="crucial published keys that bind the patch to the wii remote via the application" /><br />
Image: The crucial published keys that bind the patch to the wii remote via the application. Do not change the published name of these - or the application will break<br />
If you edit that composition, save it. Then when you re-launch the application, it will use the edited composition as it&#8217;s source.</p>
<p>This way you don&#8217;t need to use xcode or re-build the application.</p>
<p>The qc patch needs to run inside an application wrapper. The application handles all the blue-tooth connection wizardry provided by the wiiremote-framework, the calibration preferences etc and toggling full screen. So you can&#8217;t simply edit the composition and preview it using Quartz Composer itself and expect the WiiRemote to connect.</p>
<p><strong>Ian Grant January, 2007</strong></p>
<p><strong>ian [dop ] grant [at ] mac [dop ] com</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.daisyrust.com/2007/02/12/quartz-composer-some-projects/feed/</wfw:commentRss>
		</item>
		<item>
		<title>qc stereoscopic recorder 0.1</title>
		<link>http://www.daisyrust.com/2006/02/05/qc-stereoscopic-recorder-05/</link>
		<comments>http://www.daisyrust.com/2006/02/05/qc-stereoscopic-recorder-05/#comments</comments>
		<pubDate>Sun, 05 Feb 2006 21:31:53 +0000</pubDate>
		<dc:creator>ian grant</dc:creator>
		
		<category><![CDATA[cocoa]]></category>

		<category><![CDATA[creative code]]></category>

		<category><![CDATA[quartz composer]]></category>

		<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://www.daisyrust.com/2006/02/04/qc-stereoscopic-recorder-05/</guid>
		<description><![CDATA[<p style="text-align: center"><img align="left" title="qcstereoscopic recorder icon" alt="qcstereoscopic recorder icon" src="http://www.daisyrust.com/wp-content/uploads/2006/02/icon_reflection.png" /></p> 
<p>Download <a href="http://www.daisyrust.com/appserver/qcstereoscopicrecorder/QCStereoscopicRecorder_0.1.tar" title="Download QCStereoscopicRecorder 0.1 (Universal Binary)">QCStereoscopicRecorder 0.1 (Universal Binary)</a></p>
<p>QCStereoscopic Recorder is a mac app that produces real time 3D anaglyph images viewable with red / cyan glasses.</p>
<p>&#160;</p>
<p>&#160;</p>]]></description>
			<content:encoded><![CDATA[<p style="text-align: center"><img align="middle" title="qcstereoscopic recorder icon" alt="qcstereoscopic recorder icon" src="http://www.daisyrust.com/wp-content/uploads/2006/02/icon_reflection.png" /></p>
<p>Download Application: <a href="http://www.daisyrust.com/appserver/qcstereoscopicrecorder/QCStereoscopicRecorder_0.1.tar" title="Download QCStereoscopicRecorder 0.1 (Universal Binary)">QCStereoscopicRecorder 0.1 (Universal Binary)</a> OS 10.4 required</p>
<p>Download Source: <a href="http://www.daisyrust.com/download/QuartzComposer_Stereovision_v0.1.zip" title="Download QCStereoscopicRecorder 0.1 Source (4.0mb)">QCStereoscopicRecorder 0.1 Source (4.0mb)</a></p>
<p>QC Stereoscopic Recorder is my first Cocoa app! It is part of my work towards an <a title="ma in computer arts" href="http://ellington.tvu.ac.uk/ma/">MA in Computer Arts</a>. The app is a component of a larger project called “<a title="anamorphica" href="http://ellington.tvu.ac.uk/ma/experimental-digital-media/">Anamorphica</a>” in a class called “<a title="experimental digital media" href="http://ellington.tvu.ac.uk/ma/experimental-digital-media/">Experimental Digital Media</a>”.  Further documentation of this project will appear over the next few weeks. Basically, I am aiming to make a low-cost open source anaglyph recording and ‘performance’ system.</p>
<p>To use it you will need two firewire cameras.</p>
<p>Performance is improved if each camera comes in on a separate firewire bus. To effect this, I use a Lacie firewire PCMCIA card in my G4 laptop.</p>
<p>I needed a simple application that would capture dual camera input, export to quicktime and make an anaglyph.</p>
<p>I have included “stereo-pair” generation. Stereo-pair generation will come into it’s own when the application can handle full-screen and dual monitor support. Then I may create a ‘Wheatstone’ device (see <a title="wheatstone, pioneer of optical 3d" href="http://www.stereoscopy.com/library/wheatstone-paper1838.html">http://www.stereoscopy.com/library/wheatstone-paper1838.html</a>).</p>
<p>QCStereoscopic Recorder would not have happened if it wasn’t for the wonderful “Quartz Composer”. Easy and a joy to use. As I am learning Cocoa and Objective-C, the project is indebted to sample code and open source initiatives.</p>
<ul>
<li>demo code from <a title="Sample code - Apple QCTV" href="http://developer.apple.com/samplecode/QuartzComposer_WWDC_QCTV/QuartzComposer_WWDC_QCTV.html">Apple - QCTV</a> / Pierre-Olivier Latour</li>
<li>the wonderful “Sparkle” by Andy Matuschak (<a title="sparkle - www.andymatuschak.org" href="http://www.andymatuschak.org">www.andymatuschak.org</a>) handles software updates from within the applications.</li>
</ul>
<p><strong>To Do</strong></p>
<ul>
<li>full screen mode</li>
<li>improve image contrast quality</li>
<li>fully implement Apple help</li>
<li>export print resolution single frames</li>
<li>implement VJing style performance control</li>
</ul>
<p><strong>Notes</strong></p>
<ul>
<li>Built as a universal binary - untested on Intel</li>
<li>tested on PPC - 10.4.4</li>
</ul>
<p>Have fun!</p>
<p style="text-align: left"><img align="middle" title="recursive anaglyph experimental image" alt="early recursive anaglyph experiment made with qc stereoscopic recorder" src="http://www.daisyrust.com/wp-content/uploads/2006/02/recursive002.png" /><br />
<small>early recursive anaglyph experiment made with qc stereoscopic recorder</small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.daisyrust.com/2006/02/05/qc-stereoscopic-recorder-05/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
