<?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>*drawlogic &#187; C#</title>
	<atom:link href="http://drawlogic.com/tag/c/feed/" rel="self" type="application/rss+xml" />
	<link>http://drawlogic.com</link>
	<description>interactive and game development technologies for the web - flash, flex, unity3d, silverlight, javascript</description>
	<lastBuildDate>Thu, 22 Dec 2011 21:55:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Unity Building In Flash 3D &#8216;Molehill&#8217; Export Support</title>
		<link>http://drawlogic.com/2011/02/27/unity-building-in-flash-3d-molehill-export-support/</link>
		<comments>http://drawlogic.com/2011/02/27/unity-building-in-flash-3d-molehill-export-support/#comments</comments>
		<pubDate>Mon, 28 Feb 2011 00:52:13 +0000</pubDate>
		<dc:creator>drawk</dc:creator>
				<category><![CDATA[3d]]></category>
		<category><![CDATA[3D ENGINES]]></category>
		<category><![CDATA[ADOBE]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[ENGINE]]></category>
		<category><![CDATA[TECHNOLOGY]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[GAMEDEV]]></category>
		<category><![CDATA[gdc]]></category>
		<category><![CDATA[molehill]]></category>
		<category><![CDATA[platform]]></category>
		<category><![CDATA[unity]]></category>
		<category><![CDATA[unity 3d]]></category>

		<guid isPermaLink="false">http://drawlogic.com/?p=967</guid>
		<description><![CDATA[Flash Molehill is coming and Unity will be targeting it for export.  Unity states that they will allow it as an export option just like there are mobile options for iOS and Android. These are exciting times. Today, at the Flash Gaming Summit in San Francisco (of which we’re proud Gold Sponsors), Adobe has announced [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright" title="http://i81.photobucket.com/albums/j223/drawkbox/unity-flash.png" src="http://i81.photobucket.com/albums/j223/drawkbox/unity-flash.png" alt="" width="256" height="269" /><a href="http://blogs.unity3d.com/2011/02/27/unity-flash-3d-on-the-web/">Flash Molehill is coming and Unity will be targeting it for export</a>.  Unity states that they will allow it as an export option just like there are mobile options for iOS and Android.</p>
<blockquote><p>These are exciting times. Today, at the Flash Gaming Summit in San Francisco (of which we’re proud Gold Sponsors), <a href="http://labs.adobe.com/technologies/flashplatformruntimes/incubator/">Adobe has announced the public availability of a beta version of the Flash Player, codenamed Molehill, that has a very interesting new feature: hardware accelerated 3D support</a>.</p>
<p>Molehill exposes a very low-level shader-based interface to the graphics hardware. Adobe has decided to focus on that low-level part, and do that really well. The molehill pre-release will not be shipping with a 3D engine, scene building tools, model and animation importers / exporters, physics, lighting or lightmap creation tools, etc.</p></blockquote>
<p>The article states that Unity will be keeping the Unity Player and the developer will decide when to target Flash or Unity Players or other platforms like desktop, mobile that are currently available and use the rendering platforms that work best with each (DirectX/OpenGL/OpenGL ES/Molehill&#8230; maybe WebGL in the future).</p>
<p>There is no announcement of a date but Unity is pretty fast to add updates and new platform versions so if they take this on they will ship. Currently they mention using Unity and coding with AS3 within Unity script or using Mono.NET C#/Javascript/Boo as currently used. An intersting option is using Unity to create content and code in C#/Javascript over AS3.</p>
<p><a href="http://blogs.unity3d.com/2011/02/27/unity-flash-3d-on-the-web/">Unity addresses these issues here</a>:</p>
<blockquote><p><strong>Q. Is this the end of the Unity’s own Web Player?</strong></p>
<p><strong>Absolutely not. </strong>The Flash and Unity Web Players both have their strengths.  We’re excited by the opportunity to target the Flash Player and all of its features with Unity, but there will be plenty of experiences that the Unity plugin is better suited for. It will be up to developers in the end, to decide whether they want to target only the Flash Player, only the Unity Web Player, or some combination of the two (now things are getting interesting!)</p>
<p><strong>Q. What programming language will I use?</strong></p>
<p>You’ll have two options:</p>
<ol>
<li>For people with a Flash background:<br />
Target our ActionScript API directly from Flash. Think:<br />
var go:GameObject = new GameObject(“Just normal ActionScript 3 code”);</li>
<li>For people with a Unity background:<br />
Script your content in C# / JavaScript / Boo, like you’re used to, and have Unity automatically translate it to ActionScript when you hit publish.</li>
</ol>
</blockquote>
<p>Adobe is good to move to a model where hardware acceleration is part of the platform.  Since Molehill is low level and competing products like Unity, WebGL, and others would take that in time, opening it so others can build tools on their platform will attract interesting new developments like this.</p>
]]></content:encoded>
			<wfw:commentRss>http://drawlogic.com/2011/02/27/unity-building-in-flash-3d-molehill-export-support/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Plan B for Unity on iOS4, C++ Option</title>
		<link>http://drawlogic.com/2010/07/02/unity-on-ios4-c-plus-plus-option/</link>
		<comments>http://drawlogic.com/2010/07/02/unity-on-ios4-c-plus-plus-option/#comments</comments>
		<pubDate>Fri, 02 Jul 2010 07:01:34 +0000</pubDate>
		<dc:creator>drawk</dc:creator>
				<category><![CDATA[3d]]></category>
		<category><![CDATA[3D ENGINES]]></category>
		<category><![CDATA[ENGINE]]></category>
		<category><![CDATA[TECHNOLOGY]]></category>
		<category><![CDATA[unity3d]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[ios]]></category>
		<category><![CDATA[ios4]]></category>
		<category><![CDATA[JAVASCRIPT]]></category>
		<category><![CDATA[mono]]></category>
		<category><![CDATA[unity]]></category>

		<guid isPermaLink="false">http://drawlogic.com/?p=804</guid>
		<description><![CDATA[Unity is a great and agile company that responded to the iOS4 changes with something very nice, a C++ option to develop with the Unity engine on the iOS. They will implement this if using Mono is barred which so far hasn&#8217;t happened.  I have to say I wish this was an option for the [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://blogs.unity3d.com/2010/07/02/unity-and-ios-4-0-update-iii/"><img class="alignright" src="http://i81.photobucket.com/albums/j223/drawkbox/lerp.png" alt="" width="250" height="294" /></a>Unity is a great and agile company that responded to the iOS4 changes with something very nice, a <a href="http://blogs.unity3d.com/2010/07/02/unity-and-ios-4-0-update-iii/" target="_blank"><strong>C++ option to develop with the Unity engine</strong></a> on the iOS. They will implement this if using Mono is barred which so far hasn&#8217;t happened.  I have to say I wish this was an option for the Unity Engine all the time and hope they implement it anyways. For now <a title="Posts by Joachim Ante" href="http://blogs.unity3d.com/author/joe/">Joachim Ante</a> on the the Unity blog says this:</p>
<blockquote><p>We continue to be excited about the iPhone, iPod touch and iPod as platform targets for Unity developers. While we don’t think C++ is the best language to write game code , using C++ as a scripting language has memory and performance advantages on low-end devices. This is a great feature to have for developers who want to squeeze the last ounce of memory &amp; performance out of their games.</p>
<p>We still can’t believe Apple will force developers into choosing a specific language for development. And as mentioned, <strong>Apple is still approving every Unity-based game we know of. In case the situation changes, rest assured that we are working this Plan B.</strong></p>
<p>We’ll be ready to talk more about this as well as share some time-line information with you soon, while of course waiting to find out if any of this will actually be necessary.</p></blockquote>
<p>The Unity Plan B is that the C++ engine code that mimics as closely as it can to the Mono .net C# or Javascript code. From the <a href="http://blogs.unity3d.com/2010/07/02/unity-and-ios-4-0-update-iii/">samples on the blog the C++ and Mono (javascript in this case) samples are really similar</a>.</p>
<p>Many current engines are legacy or have lots of bloat, unless you write your own, or maybe even still then. Though this is looking really clean for C++ game engine code, at least in comparison to current industry leaders for indie engines.</p>
<p>It would be a beautiful C++ library to use even if Apple doesn&#8217;t require it. Compared to the other indie game engines out this would be a sweet C++ engine for indies and hope they do this no matter. C++ can be written cleanly and with influence from a simplified C#/Javascript engine and clean API it makes for a killer C++ engine that makes sense. Right now native is really attrctive on embedded for some years to come.</p>
<p>A very <a href="http://blogs.unity3d.com/2010/07/02/unity-and-ios-4-0-update-iii/">basic comparison from their blog</a>:</p>
<h3>Javascript Sample</h3>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">function</span> Update<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    <span style="color: #006600; font-style: italic;">//Spin the object around the world origin</span>
    transform.<span style="color: #660066;">RotateAround</span><span style="color: #009900;">&#40;</span>Vector3.<span style="color: #660066;">zero</span><span style="color: #339933;">,</span> Vector3.<span style="color: #660066;">up</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">20</span> <span style="color: #339933;">*</span> Time.<span style="color: #660066;">deltaTime</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<h3>C# Sample</h3>

<div class="wp_syntax"><div class="code"><pre class="csharp" style="font-family:monospace;"><span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.Collections</span><span style="color: #008000;">;</span>
<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">UnityEngine</span><span style="color: #008000;">;</span>
<span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #6666cc; font-weight: bold;">class</span> Example  <span style="color: #008000;">:</span> MonoBehaviour <span style="color: #008000;">&#123;</span>
    <span style="color: #6666cc; font-weight: bold;">void</span> Update<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#123;</span>
        <span style="color: #008080; font-style: italic;">//Spin the object around the world origin</span>
        transform<span style="color: #008000;">.</span><span style="color: #0000FF;">RotateAround</span><span style="color: #008000;">&#40;</span>Vector3<span style="color: #008000;">.</span><span style="color: #0000FF;">zero</span>, Vector3<span style="color: #008000;">.</span><span style="color: #0000FF;">up</span>, <span style="color: #FF0000;">20</span> <span style="color: #008000;">*</span> Time<span style="color: #008000;">.</span><span style="color: #0000FF;">deltaTime</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
    <span style="color: #008000;">&#125;</span>
<span style="color: #008000;">&#125;</span></pre></div></div>

<h3>C++ Sample</h3>

<div class="wp_syntax"><div class="code"><pre class="cpp" style="font-family:monospace;"><span style="color: #339900;">#include &quot;UnityEngine.h&quot;</span>
<span style="color: #0000ff;">class</span> Example <span style="color: #008080;">:</span> <span style="color: #0000ff;">public</span> MonoBehaviour <span style="color: #008000;">&#123;</span>
<span style="color: #0000ff;">public</span><span style="color: #008080;">:</span>
    <span style="color: #0000ff;">void</span> Update<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span> <span style="color: #008000;">&#123;</span>
        transform.<span style="color: #007788;">RotateAround</span><span style="color: #008000;">&#40;</span>Vector<span style="color: #008080;">::</span><span style="color: #007788;">zero</span>, Vector3<span style="color: #008080;">::</span><span style="color: #007788;">up</span>, <span style="color: #0000dd;">20</span> <span style="color: #000040;">*</span> Time<span style="color: #008080;">::</span><span style="color: #007788;">GetDeltaTime</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
    <span style="color: #008000;">&#125;</span>
<span style="color: #008000;">&#125;</span><span style="color: #008080;">;</span></pre></div></div>

<p>Things I am wondering&#8230;</p>
<ul>
<li>Will this help porting to Android versions if they use the NDK?</li>
<li>How much smaller will my app be if I use the C++ version (attractive feature since the mono dlls are pretty big &#8211; even though I really dig mono)?</li>
<li>Wouldn&#8217;t a C++ version be a better base with pluggable scripting in C# if you want? Maybe an option for Lua with a similar API signature for all? Ok maybe over-engineering there&#8230;</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://drawlogic.com/2010/07/02/unity-on-ios4-c-plus-plus-option/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Balder: Silverlight 3D Engine</title>
		<link>http://drawlogic.com/2010/02/12/balder-silverlight-3d-engine/</link>
		<comments>http://drawlogic.com/2010/02/12/balder-silverlight-3d-engine/#comments</comments>
		<pubDate>Fri, 12 Feb 2010 08:43:19 +0000</pubDate>
		<dc:creator>drawk</dc:creator>
				<category><![CDATA[3d]]></category>
		<category><![CDATA[3D ENGINES]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[SILVERLIGHT]]></category>
		<category><![CDATA[TECHNOLOGY]]></category>
		<category><![CDATA[ase]]></category>
		<category><![CDATA[balder]]></category>
		<category><![CDATA[csharp]]></category>
		<category><![CDATA[ENGINE]]></category>

		<guid isPermaLink="false">http://drawlogic.com/?p=746</guid>
		<description><![CDATA[Balder was one of the first 3d prototype engines in Silverlight and it has evolved quite nicely.  Balder by Einar Ingebrigtsen is described as a &#8220;Managed GameEngine with both 2D and 3D support targetting Silverlight, Xna and OpenGL.&#8221; The sample browser will show you what Balder is capable of and it has come pretty far [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://balder.codeplex.com/" target="_blank"><img class="alignright" title="Balder Silverlight 3d Engine" src="http://i81.photobucket.com/albums/j223/drawkbox/FileDownload.png" alt="" width="320" height="250" /></a><a href="http://balder.codeplex.com/" target="_blank">Balder</a> was one of the <a href="http://drawlogic.com/2007/07/15/3d-textured-silverlight/" target="_blank">first 3d prototype engines in Silverlight</a> and it has evolved quite nicely.  Balder by <a href="http://www.ingebrigtsen.info/" target="_blank">Einar Ingebrigtsen</a> is described as a &#8220;Managed GameEngine with both 2D and 3D support targetting Silverlight, Xna and OpenGL.&#8221;</p>
<p>The <a href="http://www.ingebrigtsen.info/Silverlight/Balder/20100204/TestPage.html" target="_blank">sample browser will show you what Balder is capable of</a> and it has come pretty far since the first version showing a wireframe teapot.</p>
<p>You know you&#8217;ve made it as a <a href="http://kodierer.blogspot.com/2009/12/world-real-time-3d-augmented-reality.html" target="_blank">3D engine when there are Augmented Reality</a> apps for it.</p>
<p>Here&#8217;s a glance at what some of the C# source looks like for a feel of the engine code from the Silverlight4 TestApp:</p>

<div class="wp_syntax"><div class="code"><pre class="csharp" style="font-family:monospace;"><span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">Balder.Core.Execution</span><span style="color: #008000;">;</span>
<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">Balder.Core.Objects.Geometries</span><span style="color: #008000;">;</span>
<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System</span><span style="color: #008000;">;</span>
<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">Balder.Core.Lighting</span><span style="color: #008000;">;</span>
<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">Balder.Core</span><span style="color: #008000;">;</span>
<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">Colors</span><span style="color: #008000;">=</span><span style="color: #000000;">System</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Windows</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Media</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Colors</span><span style="color: #008000;">;</span>
&nbsp;
<span style="color: #0600FF; font-weight: bold;">namespace</span> Balder<span style="color: #008000;">.</span><span style="color: #0000FF;">Silverlight4</span><span style="color: #008000;">.</span><span style="color: #0000FF;">TestApp</span>
<span style="color: #008000;">&#123;</span>
    <span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #6666cc; font-weight: bold;">class</span> MyGame <span style="color: #008000;">:</span> Game
    <span style="color: #008000;">&#123;</span>
        <span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #0600FF; font-weight: bold;">override</span> <span style="color: #6666cc; font-weight: bold;">void</span> OnInitialize<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span>
        <span style="color: #008000;">&#123;</span>
&nbsp;
            Camera<span style="color: #008000;">.</span><span style="color: #0000FF;">Position</span><span style="color: #008000;">.</span><span style="color: #0000FF;">X</span> <span style="color: #008000;">=</span> <span style="color: #FF0000;">0</span><span style="color: #008000;">;</span>
            Camera<span style="color: #008000;">.</span><span style="color: #0000FF;">Position</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Y</span> <span style="color: #008000;">=</span> <span style="color: #FF0000;">0</span><span style="color: #008000;">;</span>
            Camera<span style="color: #008000;">.</span><span style="color: #0000FF;">Position</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Z</span> <span style="color: #008000;">=</span> <span style="color: #008000;">-</span><span style="color: #FF0000;">80</span><span style="color: #008000;">;</span>
&nbsp;
            var light <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> OmniLight<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            light<span style="color: #008000;">.</span><span style="color: #0000FF;">Diffuse</span> <span style="color: #008000;">=</span> Color<span style="color: #008000;">.</span><span style="color: #0000FF;">FromSystemColor</span><span style="color: #008000;">&#40;</span>Colors<span style="color: #008000;">.</span><span style="color: #0000FF;">Green</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            light<span style="color: #008000;">.</span><span style="color: #0000FF;">Ambient</span> <span style="color: #008000;">=</span> Color<span style="color: #008000;">.</span><span style="color: #0000FF;">FromSystemColor</span><span style="color: #008000;">&#40;</span>Colors<span style="color: #008000;">.</span><span style="color: #0000FF;">Green</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            light<span style="color: #008000;">.</span><span style="color: #0000FF;">Specular</span> <span style="color: #008000;">=</span> Color<span style="color: #008000;">.</span><span style="color: #0000FF;">FromSystemColor</span><span style="color: #008000;">&#40;</span>Colors<span style="color: #008000;">.</span><span style="color: #0000FF;">White</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            light<span style="color: #008000;">.</span><span style="color: #0000FF;">Position</span><span style="color: #008000;">.</span><span style="color: #0000FF;">X</span> <span style="color: #008000;">=</span> <span style="color: #FF0000;">0</span><span style="color: #008000;">;</span>
            light<span style="color: #008000;">.</span><span style="color: #0000FF;">Position</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Y</span> <span style="color: #008000;">=</span> <span style="color: #FF0000;">0</span><span style="color: #008000;">;</span>
            light<span style="color: #008000;">.</span><span style="color: #0000FF;">Position</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Z</span> <span style="color: #008000;">=</span> <span style="color: #008000;">-</span><span style="color: #FF0000;">130</span><span style="color: #008000;">;</span>
&nbsp;
            Scene<span style="color: #008000;">.</span><span style="color: #0000FF;">AddNode</span><span style="color: #008000;">&#40;</span>light<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
            <span style="color: #0600FF; font-weight: bold;">base</span><span style="color: #008000;">.</span><span style="color: #0000FF;">OnInitialize</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
        <span style="color: #008000;">&#125;</span>
&nbsp;
&nbsp;
        <span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #0600FF; font-weight: bold;">override</span> <span style="color: #6666cc; font-weight: bold;">void</span> OnLoadContent<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span>
        <span style="color: #008000;">&#123;</span>
            var teapot <span style="color: #008000;">=</span> ContentManager<span style="color: #008000;">.</span><span style="color: #0000FF;">Load</span><span style="color: #008000;">&lt;</span>Mesh<span style="color: #008000;">&gt;</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;teapot.ase&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            Scene<span style="color: #008000;">.</span><span style="color: #0000FF;">AddNode</span><span style="color: #008000;">&#40;</span>teapot<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            <span style="color: #0600FF; font-weight: bold;">base</span><span style="color: #008000;">.</span><span style="color: #0000FF;">OnLoadContent</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
        <span style="color: #008000;">&#125;</span>
&nbsp;
&nbsp;
        <span style="color: #0600FF; font-weight: bold;">private</span> <span style="color: #6666cc; font-weight: bold;">double</span> _sin<span style="color: #008000;">;</span>
&nbsp;
        <span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #0600FF; font-weight: bold;">override</span> <span style="color: #6666cc; font-weight: bold;">void</span> OnUpdate<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span>
        <span style="color: #008000;">&#123;</span>
&nbsp;
            Camera<span style="color: #008000;">.</span><span style="color: #0000FF;">Position</span><span style="color: #008000;">.</span><span style="color: #0000FF;">X</span> <span style="color: #008000;">=</span> <span style="color: #008000;">&#40;</span><span style="color: #6666cc; font-weight: bold;">float</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#40;</span>Math<span style="color: #008000;">.</span><span style="color: #0000FF;">Sin</span><span style="color: #008000;">&#40;</span>_sin<span style="color: #008000;">&#41;</span><span style="color: #008000;">*</span><span style="color: #FF0000;">80</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            Camera<span style="color: #008000;">.</span><span style="color: #0000FF;">Position</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Y</span> <span style="color: #008000;">=</span> <span style="color: #FF0000;">0</span><span style="color: #008000;">;</span>
            Camera<span style="color: #008000;">.</span><span style="color: #0000FF;">Position</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Z</span> <span style="color: #008000;">=</span> <span style="color: #008000;">&#40;</span><span style="color: #6666cc; font-weight: bold;">float</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#40;</span>Math<span style="color: #008000;">.</span><span style="color: #0000FF;">Cos</span><span style="color: #008000;">&#40;</span>_sin<span style="color: #008000;">&#41;</span> <span style="color: #008000;">*</span> <span style="color: #FF0000;">80</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
            _sin <span style="color: #008000;">+=</span> <span style="color: #FF0000;">0.05</span><span style="color: #008000;">;</span>
            <span style="color: #0600FF; font-weight: bold;">base</span><span style="color: #008000;">.</span><span style="color: #0000FF;">OnUpdate</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
        <span style="color: #008000;">&#125;</span>
&nbsp;
    <span style="color: #008000;">&#125;</span>
<span style="color: #008000;">&#125;</span></pre></div></div>

<ul>
<li><a href="http://www.ingebrigtsen.info/Silverlight/Balder/20100204/TestPage.html" target="_blank">Balder Demo Sample Browser</a></li>
<li><a href="http://github.com/einari/Balder" target="_blank">Balder at github</a></li>
<li><a href="http://balder.codeplex.com/" target="_blank">Get Balder Silverlight 3D Engine at Codeplex</a></li>
<li><a href="http://www.ingebrigtsen.info/post/2010/02/08/Balder-0886-is-out.aspx" target="_blank">Einar Ingebrigtsen&#8217;s Post on Balder Release</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://drawlogic.com/2010/02/12/balder-silverlight-3d-engine/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>ODE (Open Dynamics Engine) 3D Physics Engine Running on Flash Player Using Alchemy</title>
		<link>http://drawlogic.com/2009/02/28/ode-open-dynamic-engine-3d-physics-engine-running-on-flash-player-using-alchemy/</link>
		<comments>http://drawlogic.com/2009/02/28/ode-open-dynamic-engine-3d-physics-engine-running-on-flash-player-using-alchemy/#comments</comments>
		<pubDate>Sat, 28 Feb 2009 14:11:47 +0000</pubDate>
		<dc:creator>drawk</dc:creator>
				<category><![CDATA[ACTIONSCRIPT]]></category>
		<category><![CDATA[ACTIONSCRIPT3]]></category>
		<category><![CDATA[ADOBE]]></category>
		<category><![CDATA[ALCHEMY]]></category>
		<category><![CDATA[APPLICATIONS]]></category>
		<category><![CDATA[ARCHITECT]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[DEVELOPMENT]]></category>
		<category><![CDATA[FLASH]]></category>
		<category><![CDATA[GAMEDEV]]></category>
		<category><![CDATA[GAMES]]></category>
		<category><![CDATA[LIBRARIES]]></category>
		<category><![CDATA[PAPERVISION]]></category>
		<category><![CDATA[PERFORMANCE]]></category>
		<category><![CDATA[PHYSICS]]></category>
		<category><![CDATA[PROGRAMMING]]></category>
		<category><![CDATA[RENDERING]]></category>
		<category><![CDATA[TECHNOLOGY]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[ENGINE]]></category>
		<category><![CDATA[flash10]]></category>
		<category><![CDATA[FLEX]]></category>
		<category><![CDATA[llvm]]></category>
		<category><![CDATA[ode]]></category>

		<guid isPermaLink="false">http://drawlogic.com/?p=414</guid>
		<description><![CDATA[Alchemy is going to shake things up a bit.  As witnessed before from Quake running in flash and now ODE compiled to run in flash using Alchemy (LLVM based). It is an early test but shows what could be possible. Mihai Pricope has a post with sources on how he got the ODE (Open Dynamics [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://labs.adobe.com/technologies/alchemy/" target="_blank">Alchemy</a> is going to shake things up a bit.  As witnessed before from <a href="http://www.peterelst.com/blog/2007/10/03/adobe-max-chicago-sneak-peeks/" target="_blank">Quake running in flash</a> and now <a href="http://miti.pricope.com/2009/02/23/ode-open-dynamic-engine-for-flash/" target="_blank">ODE compiled to run in flash</a> using Alchemy (<a href="http://llvm.org/" target="_blank">LLVM</a> based). It is an early test but shows what could be possible.</p>
<p>Mihai Pricope has a <a href="http://miti.pricope.com/2009/02/23/ode-open-dynamic-engine-for-flash/" target="_blank">post</a> with sources on how he got <a href="http://miti.pricope.com/2009/02/23/ode-open-dynamic-engine-for-flash/" target="_blank">the ODE (Open Dynamics Engine) a great open source physics engine for 3D, running on the AVM2 Flash Player</a> virtual machine.</p>
<p><a href="http://miti.pricope.com/2009/02/23/ode-open-dynamic-engine-for-flash/" target="_blank"><img class="alignnone" style="border: 0pt none;" title="ODE in Flash" src="http://i81.photobucket.com/albums/j223/drawkbox/flash-ode.png" alt="" width="440" height="295" /></a></p>
<blockquote><p>I’ve took Alchemy for a test and decided to compile ODE (<a onclick="javascript:urchinTracker('/outbound/www.ode.org/');" href="http://www.ode.org/">Open Dynamic Engine</a>). Just to add yet another physics engine to the Flash World. It was a hell of a ride but I finally got to produce some bouncing balls <img src='http://drawlogic.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . For a still unknown reason some as 3d libraries have been very slow to render 6 translucent walls and 2 balls. Papervision3D seems to move quite decent.</p>
<p>You can download the ode sources from <a onclick="javascript:urchinTracker('/file/samples/ode/ode-flash.tgz');" href="http://miti.pricope.com/samples/ode/ode-flash.tgz">here</a>. To recompile them do (you need to have the <a onclick="javascript:urchinTracker('/outbound/labs.adobe.com/technologies/alchemy/');" href="http://labs.adobe.com/technologies/alchemy/">Alchemy</a> environment turned on):</p></blockquote>
<p>Flash 10 will become mainstream shortly and with that the possibilities of using Alchemy in your projects is becoming a reality for production.  But what specifically can you do with Alchemy, a project that helps to compile C/C++ code into AVM2 capable files?</p>
<p><a href="http://labs.adobe.com/technologies/alchemy/" target="_blank">Alchemy </a>described from Adobe:</p>
<blockquote><p>With Alchemy, Web application developers can now reuse hundreds of millions of lines of existing open source C and C++ client or server-side code on the Flash Platform.  Alchemy brings the power of high performance C and C++ libraries to Web applications with minimal degradation on AVM2.  The C/C++ code is compiled to ActionScript 3.0 as a SWF or SWC that runs on Adobe Flash Player 10 or Adobe AIR 1.5.</p></blockquote>
<p><a href="http://labs.adobe.com/wiki/index.php/Alchemy:FAQ" target="_blank">Alchemy is based on the LLVM Low Level Virtual Machine</a> that allows new levels of code translation.  Maybe this can lead to more effective and performing code to run on the iPhone with flash player 10. Or some type of system that allows flash developers to code in AS3 or take projects and get them ready to run on the iPhone much like some of the Java to Cocoa compilation systems and <a href="http://tirania.org/blog/archive/2008/Mar-10.html" target="_blank">Unity3D using mono to compile down to iPhone capable code</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://drawlogic.com/2009/02/28/ode-open-dynamic-engine-3d-physics-engine-running-on-flash-player-using-alchemy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

