<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet href="/templates/default/atom.css" type="text/css" ?>

<feed 
   xmlns="http://www.w3.org/2005/Atom"
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/">
    <link href="http://blog.dimajix.de/feeds/atom10.xml" rel="self" title="Dimajix Developer Blog" type="application/atom+xml" />
    <link href="http://blog.dimajix.de/"                        rel="alternate"    title="Dimajix Developer Blog" type="text/html" />
    <link href="http://blog.dimajix.de/rss.php?version=2.0"     rel="alternate"    title="Dimajix Developer Blog" type="application/rss+xml" />
    <title type="html">Dimajix Developer Blog</title>
    <subtitle type="html">Kaya Kupferschmidt's Blog for Graphics and Algorithms</subtitle>
    <icon>http://blog.dimajix.de/templates/default/img/s9y_banner_small.png</icon>
    <id>http://blog.dimajix.de/</id>
    <updated>2009-02-21T18:34:47Z</updated>
    <generator uri="http://www.s9y.org/" version="1.2.1">Serendipity 1.2.1 - http://www.s9y.org/</generator>
    <dc:language>en</dc:language>
    <admin:errorReportsTo rdf:resource="mailto:k.kupferschmidt@dimajix.de" />

    <entry>
        <link href="http://blog.dimajix.de/archives/135-Add-NIS-Client-Support-to-ReadyNAS.html" rel="alternate" title="Add NIS Client Support to ReadyNAS" />
        <author>
            <name>Kaya Kupferschmidt</name>
            <email>k.kupferschmidt@dimajix.de</email>
        </author>
    
        <published>2009-02-21T18:30:48Z</published>
        <updated>2009-02-21T18:34:47Z</updated>
        <wfw:comment>http://blog.dimajix.de/wfwcomment.php?cid=135</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blog.dimajix.de/rss.php?version=atom1.0&amp;type=comments&amp;cid=135</wfw:commentRss>
    
            <category scheme="http://blog.dimajix.de/categories/3-Workstations" label="Workstations" term="Workstations" />
    
        <id>http://blog.dimajix.de/archives/135-guid.html</id>
        <title type="html">Add NIS Client Support to ReadyNAS</title>
        <content type="xhtml" xml:base="http://blog.dimajix.de/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                This guide is about how to setup probably any ReadyNAS device to act as a NIS/YP client. NIS/YP is a protocol that shares account information accross the network. In such an environment it is important that the ReadyNAS knows about all Linux and Windows account, so it can keep access rights on files in sync. If users had different numerical IDs on Linux clients and on the ReadyNAS, all files created from these clients wouldn't beb accessible on Windows machines any more, because the ReadyNAS wouldn't know which account the files belong to.<br />
<br />
On Windows there is already a powerful solution, called Active Directory. This is already supported on the ReadyNAS, but there is no support for the corresponding UNIX protocol, which is NIS. Having a central account authority which manages both Windows and Linux accounts via Active Directory and NIS is very helpful in such mixed environments.<br />
<br />
 <br /><a href="http://blog.dimajix.de/archives/135-Add-NIS-Client-Support-to-ReadyNAS.html#extended">Continue reading "Add NIS Client Support to ReadyNAS"</a>
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://blog.dimajix.de/archives/134-Phun-with-Physics.html" rel="alternate" title="Phun with Physics" />
        <author>
            <name>Kaya Kupferschmidt</name>
            <email>k.kupferschmidt@dimajix.de</email>
        </author>
    
        <published>2009-01-21T12:46:03Z</published>
        <updated>2009-01-21T12:46:03Z</updated>
        <wfw:comment>http://blog.dimajix.de/wfwcomment.php?cid=134</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blog.dimajix.de/rss.php?version=atom1.0&amp;type=comments&amp;cid=134</wfw:commentRss>
    
            <category scheme="http://blog.dimajix.de/categories/1-General" label="General" term="General" />
    
        <id>http://blog.dimajix.de/archives/134-guid.html</id>
        <title type="html">Phun with Physics</title>
        <content type="xhtml" xml:base="http://blog.dimajix.de/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <a class='serendipity_image_link' href='http://blog.dimajix.de/uploads/general/Monster_truck.jpg'><!-- s9ymdb:148 --><img width="110" height="77" style="float: left; border: 0px; padding-left: 5px; padding-right: 5px;" src="http://blog.dimajix.de/uploads/general/Monster_truck.serendipityThumb.jpg" alt=""  /></a><br />
While browsing on <a href="http://blog.dimajix.de/exit.php?url_id=816&amp;entry_id=134" title="http://www.opengl.org"  onmouseover="window.status='http://www.opengl.org';return true;" onmouseout="window.status='';return true;">OpenGL.org</a>, I found a really nice educational (?) 2D physics simulator called Phun. The physics engine is a commercial multibody simulator, which seems to be new in the physics scene (at least I never heard of <a href="http://blog.dimajix.de/exit.php?url_id=817&amp;entry_id=134" title="http://www.algoryx.se/"  onmouseover="window.status='http://www.algoryx.se/';return true;" onmouseout="window.status='';return true;">AgX</a> before).<br />
<br />
And now, don't waste your time on my blog, and <a href="http://blog.dimajix.de/exit.php?url_id=818&amp;entry_id=134" title="http://www.algoryx.se/phun.html"  onmouseover="window.status='http://www.algoryx.se/phun.html';return true;" onmouseout="window.status='';return true;">Grab Phun here.</a> 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://blog.dimajix.de/archives/133-New-6bay-ReadyNAS-on-the-way.html" rel="alternate" title="New 6bay ReadyNAS on the way" />
        <author>
            <name>Kaya Kupferschmidt</name>
            <email>k.kupferschmidt@dimajix.de</email>
        </author>
    
        <published>2008-01-17T12:10:31Z</published>
        <updated>2008-01-17T12:17:47Z</updated>
        <wfw:comment>http://blog.dimajix.de/wfwcomment.php?cid=133</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blog.dimajix.de/rss.php?version=atom1.0&amp;type=comments&amp;cid=133</wfw:commentRss>
    
            <category scheme="http://blog.dimajix.de/categories/3-Workstations" label="Workstations" term="Workstations" />
    
        <id>http://blog.dimajix.de/archives/133-guid.html</id>
        <title type="html">New 6bay ReadyNAS on the way</title>
        <content type="xhtml" xml:base="http://blog.dimajix.de/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <a class='serendipity_image_link' href='http://blog.dimajix.de/uploads/general/readynas_ces18_5.jpg'><!-- s9ymdb:147 --><img width="110" height="83" style="float: left; border: 0px; padding-left: 5px; padding-right: 5px;" src="http://blog.dimajix.de/uploads/general/readynas_ces18_5.serendipityThumb.jpg" alt=""  /></a>I really like my <a href="http://blog.dimajix.de/exit.php?url=aHR0cDovL3d3dy5pbmZyYW50LmNvbQ==&amp;entry_id=133" title="http://www.infrant.com"  onmouseover="window.status='http://www.infrant.com';return true;" onmouseout="window.status='';return true;">ReadyNAS</a> server - small, slick, multifunctional and <a href="http://blog.dimajix.de/exit.php?url=aHR0cDovL3d3dy5pbmZyYW50LmNvbS9mb3J1bQ==&amp;entry_id=133" title="http://www.infrant.com/forum"  onmouseover="window.status='http://www.infrant.com/forum';return true;" onmouseout="window.status='';return true;">superb support</a>. <br />
<br />
But there are two things missing: more drive bays and a more powerful CPU. But apparently the first point is being addressed with a ReadyNAS Pro device with 6 bays, as <a href="http://blog.dimajix.de/exit.php?url=aHR0cDovL3BjLndhdGNoLmltcHJlc3MuY28uanAvZG9jcy8yMDA4LzAxMTEvY2VzMTguaHRt&amp;entry_id=133" title="http://pc.watch.impress.co.jp/docs/2008/0111/ces18.htm"  onmouseover="window.status='http://pc.watch.impress.co.jp/docs/2008/0111/ces18.htm';return true;" onmouseout="window.status='';return true;">seen on CES 2008</a>. I hope, they also spent a more powerful CPU to the device, so it will be able to outperform the Thecus devices. Those are a lot faster, but the firmware and support seems to be really bad. <br />
<br />
Can't wait to get my hands on the ReadyNAS Pro!<br />
<a class='serendipity_image_link' href='http://blog.dimajix.de/uploads/general/readynas_ces18_6.jpg'><!-- s9ymdb:146 --><img width="110" height="83" style="float: right; border: 0px; padding-left: 5px; padding-right: 5px;" src="http://blog.dimajix.de/uploads/general/readynas_ces18_6.serendipityThumb.jpg" alt=""  /></a> 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://blog.dimajix.de/archives/132-OpenGL-Web-2.-0-Style.html" rel="alternate" title="OpenGL - Web 2. 0 Style" />
        <author>
            <name>Kaya Kupferschmidt</name>
            <email>k.kupferschmidt@dimajix.de</email>
        </author>
    
        <published>2007-12-03T13:00:16Z</published>
        <updated>2007-12-03T19:43:39Z</updated>
        <wfw:comment>http://blog.dimajix.de/wfwcomment.php?cid=132</wfw:comment>
    
        <slash:comments>2</slash:comments>
        <wfw:commentRss>http://blog.dimajix.de/rss.php?version=atom1.0&amp;type=comments&amp;cid=132</wfw:commentRss>
    
            <category scheme="http://blog.dimajix.de/categories/5-OpenGL" label="OpenGL" term="OpenGL" />
    
        <id>http://blog.dimajix.de/archives/132-guid.html</id>
        <title type="html">OpenGL - Web 2. 0 Style</title>
        <content type="xhtml" xml:base="http://blog.dimajix.de/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                Today I stumbled over a new-to-me project on <a href="http://blog.dimajix.de/exit.php?url_id=785&amp;entry_id=132" title="http://www.opengl.org"  onmouseover="window.status='http://www.opengl.org';return true;" onmouseout="window.status='';return true;">OpenGL.org</a>: An OpenGL canvas plugin for Mozilla Firefox! The plugin called <a href="http://blog.dimajix.de/exit.php?url_id=786&amp;entry_id=132" title="http://blog.vlad1.com/2007/11/26/canvas-3d-gl-power-web-style/"  onmouseover="window.status='http://blog.vlad1.com/2007/11/26/canvas-3d-gl-power-web-style/';return true;" onmouseout="window.status='';return true;">Canvas 3D</a> only works in the new Firefix 3 line and provides an OpenGL context to Javascript. <br />
<br />
In my eyes this opens the doors to many new exciting Web applications (if Javascript turns out to be fast enough), ranging from simple Model Viewers to some advanced online-editors. I wish I could find some time to explore some of the possibilities! 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://blog.dimajix.de/archives/131-I-HAS-1337-CODE.-LOL!!1.html" rel="alternate" title="I HAS 1337 CODE. LOL!!1" />
        <author>
            <name>Kaya Kupferschmidt</name>
            <email>k.kupferschmidt@dimajix.de</email>
        </author>
    
        <published>2007-06-27T11:30:22Z</published>
        <updated>2007-06-27T11:50:01Z</updated>
        <wfw:comment>http://blog.dimajix.de/wfwcomment.php?cid=131</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blog.dimajix.de/rss.php?version=atom1.0&amp;type=comments&amp;cid=131</wfw:commentRss>
    
            <category scheme="http://blog.dimajix.de/categories/2-Programming" label="Programming" term="Programming" />
    
        <id>http://blog.dimajix.de/archives/131-guid.html</id>
        <title type="html">I HAS 1337 CODE. LOL!!1</title>
        <content type="xhtml" xml:base="http://blog.dimajix.de/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <a class='serendipity_image_link' href='http://blog.dimajix.de/uploads/general/lolcode_book.jpg' target="_blank"><!-- s9ymdb:145 --><img width="73" height="110" style="float: left; border: 0px; padding-left: 5px; padding-right: 5px;" src="http://blog.dimajix.de/uploads/general/lolcode_book.serendipityThumb.jpg" alt=""  /></a><br />
C#, Java and C++ are out. The upcoming star is called <a href="http://blog.dimajix.de/exit.php?url_id=782&amp;entry_id=131" title="http://lolcode.com/"  onmouseover="window.status='http://lolcode.com/';return true;" onmouseout="window.status='';return true;">LOLCODE</a>. LOLCODE is a new programming language that immitates the natural language of the leet coders.<br />
<br /><br /><br /><br />
<tt><br />
HAI<br />
CAN HAS STDIO?<br />
PLZ OPEN FILE "LOLCATS.TXT"?<br />
&#160;&#160;	AWSUM THX<br />
&#160;&#160;&#160;&#160;		VISIBLE FILE<br />
&#160;&#160;	O NOES<br />
&#160;&#160;&#160;&#160;		INVISIBLE "ERROR!"<br />
KTHXBYE<br />
</tt><br />
Obviously this new programming language will start a new era in software development! 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://blog.dimajix.de/archives/130-Cygwin-+-Avira-Nogo.html" rel="alternate" title="Cygwin + Avira = Nogo" />
        <author>
            <name>Kaya Kupferschmidt</name>
            <email>k.kupferschmidt@dimajix.de</email>
        </author>
    
        <published>2007-06-04T07:49:21Z</published>
        <updated>2007-06-05T07:13:11Z</updated>
        <wfw:comment>http://blog.dimajix.de/wfwcomment.php?cid=130</wfw:comment>
    
        <slash:comments>2</slash:comments>
        <wfw:commentRss>http://blog.dimajix.de/rss.php?version=atom1.0&amp;type=comments&amp;cid=130</wfw:commentRss>
    
            <category scheme="http://blog.dimajix.de/categories/1-General" label="General" term="General" />
    
        <id>http://blog.dimajix.de/archives/130-guid.html</id>
        <title type="html">Cygwin + Avira = Nogo</title>
        <content type="xhtml" xml:base="http://blog.dimajix.de/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                I have been using Microsoft Windows as my primary operating system since Windows 95, but I have always prefered the NT line for its superior stability and security (if configured right). I always use a normal user account for my daily work (not even a Power User account) and the Administrator account for installing software or changing the computer configuration. Plus I do not opene every attachment I get in all those virus mails <img src="http://blog.dimajix.de/templates/default/img/emoticons/smile.png" alt=":-)" style="display: inline; vertical-align: bottom;" class="emoticon" /> This way I have been virus free for about 10 years.<br />
<br />
But I thought it could be a nice idea to install an AntiVirus program for increased safety. I decided to use <a href="http://blog.dimajix.de/exit.php?url_id=772&amp;entry_id=130" title="http://www.avira.de"  onmouseover="window.status='http://www.avira.de';return true;" onmouseout="window.status='';return true;">Avira</a>, simply because it has a free version for home users and I didn't hear anything bad about it. After some time I even decided to buy the premium edition that has some additional features, and I thought that I was happy. <br />
<br />
Then I found out that my notebook seemed to have a hardware defect. When I tried to build a large "make" based project within Cygwin, the korn shell would stall after some minutes and I could not kill it any more. First I suspected bad memory, so I ran some memory tests - no result. So I was thinking that the CPU could have suffered to much and could be broken. I started to look around for a new notebook, although I really didn't want to buy a new one, as my old one was still good enough for me (if it worked).<br />
<br />
After a week, I thought that maybe the crashes of the shell could be a software problem. So I uninstalled some applications. No change at all - unless I uninstalled the Avira AntiVirus package. Simply disabling the virus scanner did not make any change, but after I uninstalled the whole package, I could compile again! After some hours of successful compilation I searched google for "Cygwin Avira" - bingo, there are some well-known problems.<br />
<br />
Conclusion: If you want to use Cygwin, don't even install Avira, or you might suffer. 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://blog.dimajix.de/archives/129-Physics-Simulations.html" rel="alternate" title="Physics Simulations" />
        <author>
            <name>Kaya Kupferschmidt</name>
            <email>k.kupferschmidt@dimajix.de</email>
        </author>
    
        <published>2007-05-24T09:00:34Z</published>
        <updated>2007-05-24T09:00:34Z</updated>
        <wfw:comment>http://blog.dimajix.de/wfwcomment.php?cid=129</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blog.dimajix.de/rss.php?version=atom1.0&amp;type=comments&amp;cid=129</wfw:commentRss>
    
            <category scheme="http://blog.dimajix.de/categories/2-Programming" label="Programming" term="Programming" />
    
        <id>http://blog.dimajix.de/archives/129-guid.html</id>
        <title type="html">Physics Simulations</title>
        <content type="xhtml" xml:base="http://blog.dimajix.de/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                After I have been working with <a href="http://blog.dimajix.de/exit.php?url_id=767&amp;entry_id=129" title="http://www.ode.org"  onmouseover="window.status='http://www.ode.org';return true;" onmouseout="window.status='';return true;">ODE</a> in order to get an assembly simulation running, I began to dislike ODE for several reasons. The topmost reason is that ODE does not seem to handle large scales very well (even in the handbook it is noted that best is to scale everything between 0.1 and 10.0 - this was not a real option in my case).<br />
<br />
So I was looking at different packages, but even the two big ones <a href="http://blog.dimajix.de/exit.php?url_id=768&amp;entry_id=129" title="http://www.havok.com"  onmouseover="window.status='http://www.havok.com';return true;" onmouseout="window.status='';return true;">Havok</a> and <a href="http://blog.dimajix.de/exit.php?url_id=769&amp;entry_id=129" title="http://www.ageia.com"  onmouseover="window.status='http://www.ageia.com';return true;" onmouseout="window.status='';return true;">Agiea/Physx</a> do not handle arbitrary triangle meshes very well (at least that is what I understand after reading their documentation) as collision geometry.  <br />
<br />
Fortunately finally I found <a href="http://blog.dimajix.de/exit.php?url_id=770&amp;entry_id=129" title="http://www.cm-labs.com/"  onmouseover="window.status='http://www.cm-labs.com/';return true;" onmouseout="window.status='';return true;">Vortex</a>, which is a high-end physics package geared towards simulation. And I have to say that so far I am really impressed with both speed and accuracy! Vortex is able to handle collisions between arbitrary meshes very well and fast. The collision response is quite good, if I tune the parameters (mass, forces, joints), I get almost not penetration between complex triangle objects - this is quite a difficult task.<br />
<br />
Plus Vortex offers a lot more parameters to tune than other packages in order to get realistic and stable simulations. So if you are looking for most realistic results with complex shapes, Vortex seems to me the only way to go. 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://blog.dimajix.de/archives/128-Sliding-in-VR-with-ODE,-part-2.html" rel="alternate" title="Sliding in VR with ODE, part 2" />
        <author>
            <name>Kaya Kupferschmidt</name>
            <email>k.kupferschmidt@dimajix.de</email>
        </author>
    
        <published>2007-04-02T08:59:12Z</published>
        <updated>2007-04-02T09:14:33Z</updated>
        <wfw:comment>http://blog.dimajix.de/wfwcomment.php?cid=128</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blog.dimajix.de/rss.php?version=atom1.0&amp;type=comments&amp;cid=128</wfw:commentRss>
    
            <category scheme="http://blog.dimajix.de/categories/2-Programming" label="Programming" term="Programming" />
    
        <id>http://blog.dimajix.de/archives/128-guid.html</id>
        <title type="html">Sliding in VR with ODE, part 2</title>
        <content type="xhtml" xml:base="http://blog.dimajix.de/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                After I started the integration of <a href="http://blog.dimajix.de/exit.php?url=aHR0cDovL3d3dy5vZGUub3Jn&amp;entry_id=128" title="http://www.ode.org"  onmouseover="window.status='http://www.ode.org';return true;" onmouseout="window.status='';return true;">ODE</a> into the immersive VR project, I stumbeled over a lot of difficulties, with some of them being still not properly solved:<br />
<ul><br />
<li>Collisions between arbitrary triangle meshes is a complex thing. ODE needs as much information as possible for correct collision response. This include the contact point and normal (both are rather easy to get) and the penetration depth. The later is not trivially extracted from a collision, moreover it even is not simple to give a correct definition in the case of non-convex geometry. I had to work around this problem by approximation the penetration depth on a triangle-by-triangle basis, but my approximation still can return much too big values, so I finally had to clamp the result.</li><br />
<li>The connection of the virtual object and the tracked hand of the user is now realized by a fixed joint between two ODE bodies (one body for the hand ("user body") and one body for the object ("object body"). Out naive approach simply repositions the user controlled body in each frame and hopes that ODE will try to move the connected object body to the user body while trying to obey to collisions. This went well in some sense, but as soon as there are some collisions, the distance between both objects has been increased and remained even after the object has been moved out of collision again. Debugging the code showed that the user body has accumulated insane velocities in order to resolve the fixed joint constraint, and these velocities haven't been reset after collision. So I had to insert a linear and an angular motor with target speed of zero in order to slow down the objects. Still this is not an ideal solution, it would be much better to use motors in the first place to control the virtual object.</li><br />
<li>ODE seems to be very sensitive to scaling. The ODE manual states that best results are achieved if all values are in the range 0.1 to 10.0. But we have models in milimeters (cars) and models with a meter scale (airplanes). ODE seems to be especially sensitive to different masses, it turned out that a proportional increase of all masses resulted in ignorance of all collisions.</li><br />
</ul><br />
Still there are a lot of open topics, and I was only able to achieve some sliding (the user moves a virtual object, which obeys to collisions with a static environment) in a artificial toy environment. Maybe we will try a different physics library, but my guess is that the biggest problem is the lack of proper penetration depth information. 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://blog.dimajix.de/archives/127-Collision-Detection-for-Sliding-Simulations-in-VR.html" rel="alternate" title="Collision Detection for Sliding Simulations in VR" />
        <author>
            <name>Kaya Kupferschmidt</name>
            <email>k.kupferschmidt@dimajix.de</email>
        </author>
    
        <published>2007-03-28T10:50:46Z</published>
        <updated>2007-03-28T11:09:22Z</updated>
        <wfw:comment>http://blog.dimajix.de/wfwcomment.php?cid=127</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blog.dimajix.de/rss.php?version=atom1.0&amp;type=comments&amp;cid=127</wfw:commentRss>
    
            <category scheme="http://blog.dimajix.de/categories/2-Programming" label="Programming" term="Programming" />
    
        <id>http://blog.dimajix.de/archives/127-guid.html</id>
        <title type="html">Collision Detection for Sliding Simulations in VR</title>
        <content type="xhtml" xml:base="http://blog.dimajix.de/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                Currently I have to develop a robust method for sliding simulation in a immersive VR environment. This means that the user in a CAVE should be able to move objects around, but these movements should be resitricted by collisions with a static environment. Unsurprisingly this task turns out to be non-trivial. We chose to integrate <a href="http://blog.dimajix.de/exit.php?url=aHR0cDovL3d3dy5vZGUub3Jn&amp;entry_id=127" title="http://www.ode.org"  onmouseover="window.status='http://www.ode.org';return true;" onmouseout="window.status='';return true;">ODE</a> as a physics simulation backend combined with our own collision engine originally developed by <a href="http://blog.dimajix.de/exit.php?url=aHR0cDovL3phY2guaW4udHUtY2xhdXN0aGFsLmRlLw==&amp;entry_id=127" title="http://zach.in.tu-clausthal.de/"  onmouseover="window.status='http://zach.in.tu-clausthal.de/';return true;" onmouseout="window.status='';return true;">Gabriel Zachman</a>.<br />
<br />
There are two obvious problems:<br />
<ul><li>The virtual body moved by the user eventually has to be moved by ODE. This means that I had to extract the forces needed to move the object as desired by the user and pass them to the physics engine. This has been rather easy once I understood what the words <a href="http://blog.dimajix.de/exit.php?url=aHR0cDovL2VuLndpa2lwZWRpYS5vcmcvd2lraS9Ub3JxdWU=&amp;entry_id=127" title="http://en.wikipedia.org/wiki/Torque"  onmouseover="window.status='http://en.wikipedia.org/wiki/Torque';return true;" onmouseout="window.status='';return true;">torque</a> and <a href="http://blog.dimajix.de/exit.php?url=aHR0cDovL2VuLndpa2lwZWRpYS5vcmcvd2lraS9Nb21lbnRfb2ZfaW5lcnRpYQ==&amp;entry_id=127" title="http://en.wikipedia.org/wiki/Moment_of_inertia"  onmouseover="window.status='http://en.wikipedia.org/wiki/Moment_of_inertia';return true;" onmouseout="window.status='';return true;">intertia tensor</a> mean (both are needed for rotational movements).</li><br />
<li>The more complex problem is the integration of the collision engine. The integration itself was straight forward, but the real problem is, that as soon as a collision is detected, the simulation gets out of control. The reason is that what we really would need is a penetration depth or we have to try to approximate the exct time of the first collision between two bodies. As our collision engine does not offer the penetration depth, I have to go down the second road and approximate the time of collision by progressively subdividing timesteps in case of a collision.</li></ul><br />
<br />
Interestingly I found out that commercial physics packages seem to employ much more advanced collision algorithms which can calculate the penetration depth or work in a continious mode and thus calculate the exact time of the first collision. Plus many games use simplified collision geometry and special bodies (spheres, cylinders, boxes) which make such calculations much more easy, while we have to cope with arbitrary high-resolution triangle meshes.<br />
<br />
While looking for solutions on the net, I found two good PhD thesises on physics simulations:<br />
<ul><li><a href="ftp://ftp.diku.dk/diku/image/publications/erleben.050401.pdf"> Stable, Robust, and Versatile Multibody Dynamics Animation</a> by <a href="http://blog.dimajix.de/exit.php?url=aHR0cDovL2ltYWdlLmRpa3UuZGsva2Vubnkv&amp;entry_id=127" title="http://image.diku.dk/kenny/"  onmouseover="window.status='http://image.diku.dk/kenny/';return true;" onmouseout="window.status='';return true;">Kenny Erleben</a> from March 2005</li><br />
<li><a href="http://blog.dimajix.de/exit.php?url=aHR0cDovL3d3dy51dmthLmRlL3VuaXZlcmxhZy9mcm9udGRvb3IucGhwP3NvdXJjZV9vcHVzPTIxMQ==&amp;entry_id=127" title="http://www.uvka.de/univerlag/frontdoor.php?source_opus=211"  onmouseover="window.status='http://www.uvka.de/univerlag/frontdoor.php?source_opus=211';return true;" onmouseout="window.status='';return true;">Impulsbasierte Dynamiksimulation von Mehrkörpersystemen in der virtuellen Realität</a> by <a href="http://blog.dimajix.de/exit.php?url=aHR0cDovL3d3dy5pbXB1bHNlLWJhc2VkLmRlLw==&amp;entry_id=127" title="http://www.impulse-based.de/"  onmouseover="window.status='http://www.impulse-based.de/';return true;" onmouseout="window.status='';return true;">Jan Bender</a> from January 2007</li></ul> 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://blog.dimajix.de/archives/126-Easy-Bytecode.html" rel="alternate" title="Easy Bytecode" />
        <author>
            <name>Kaya Kupferschmidt</name>
            <email>k.kupferschmidt@dimajix.de</email>
        </author>
    
        <published>2007-02-28T18:07:14Z</published>
        <updated>2007-03-06T08:57:25Z</updated>
        <wfw:comment>http://blog.dimajix.de/wfwcomment.php?cid=126</wfw:comment>
    
        <slash:comments>4</slash:comments>
        <wfw:commentRss>http://blog.dimajix.de/rss.php?version=atom1.0&amp;type=comments&amp;cid=126</wfw:commentRss>
    
            <category scheme="http://blog.dimajix.de/categories/2-Programming" label="Programming" term="Programming" />
    
        <id>http://blog.dimajix.de/archives/126-guid.html</id>
        <title type="html">Easy Bytecode</title>
        <content type="xhtml" xml:base="http://blog.dimajix.de/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                Writing a interpreter for a custom scripting language always seems to be more complex than writing a small bytecode compiler and bytecode interpreter. At a first glance, writing a direct interpreter might be easier, but if the scripting language contains flow control (like loops, if/else statements and similar constructs involving jumps), this turns out to be false. The primary problem lies in the fact that one needs to duplicate large parts of the parser - simply for skipping over the parts of a script that are not executed (like with a conditional if-block whose conditioon turns out to be false at runtime).<br />
<br />
Because of this insight, I began to concentrate on writing an easy-to-implement bytecode compiler that would transform a text-based script into a more machine-friendly representation. A positive side-effect of bytecode is that simple fact that it is much faster to execute than the original textual representation. The downside of this approach is the fact that it involves writing a compiler - something that sounds to be a complex and difficult task.<br />
<br />
But after analysing the process of parsing a script, I came to the conclusion that such a compiler and its corresponding bytecode interpreter ("virtual machine") would be rather straight-forward and easy to implement, if the underlying model of the virtual machine is chosen carefully. In my opinion the best machine model (in terms of simplicity to implement a compiler and interpreter) it a purely stack-based RPN (Reverse Polish notation) machine. And such a model not only is easy to implement, but it also easy to extract the original syntax tree from the bytecode, which in turn allows further optimisation techniques as a postprocessing step (it even wouldn't be to hard to turn bytecode into native assembler). <br /><a href="http://blog.dimajix.de/archives/126-Easy-Bytecode.html#extended">Continue reading "Easy Bytecode"</a>
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://blog.dimajix.de/archives/125-Reflection-for-C++.html" rel="alternate" title="Reflection for C++" />
        <author>
            <name>Kaya Kupferschmidt</name>
            <email>k.kupferschmidt@dimajix.de</email>
        </author>
    
        <published>2007-02-26T11:27:04Z</published>
        <updated>2007-02-26T11:27:04Z</updated>
        <wfw:comment>http://blog.dimajix.de/wfwcomment.php?cid=125</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blog.dimajix.de/rss.php?version=atom1.0&amp;type=comments&amp;cid=125</wfw:commentRss>
    
            <category scheme="http://blog.dimajix.de/categories/4-C++" label="C++" term="C++" />
    
        <id>http://blog.dimajix.de/archives/125-guid.html</id>
        <title type="html">Reflection for C++</title>
        <content type="xhtml" xml:base="http://blog.dimajix.de/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                One hot topic I am currently busy in, is reflection for C++. Reflection for a computer language means that you can access all types toegther with their methods and members at runtime using a simple string-based interface. Such a feature especially simplifies binding scripting-languages to a program by providing one wrapper that operates on the reflection information instead of binding each class, method or function by hand. Other possible usages are remote-method-invocations, serialisation, XML based configurations etc.<br />
<br />
C++ offers only some very basic runtime type information (RTTI) out of the box and lacks full reflection. There are some projects on the net that try to close this gap (most notably the <a href="http://blog.dimajix.de/exit.php?url_id=713&amp;entry_id=125" title="http://seal-reflex.web.cern.ch/seal-reflex/"  onmouseover="window.status='http://seal-reflex.web.cern.ch/seal-reflex/';return true;" onmouseout="window.status='';return true;">Reflex</a> framework), but none of them really seem to be as powerful, flexible and easy-to-use as their native counterparts in Java or C#.<br />
<br />
<a href="http://blog.dimajix.de/exit.php?url_id=714&amp;entry_id=125" title="http://www.dimajix.com"  onmouseover="window.status='http://www.dimajix.com';return true;" onmouseout="window.status='';return true;">Dimajix</a>'s framework <a href="http://blog.dimajix.de/exit.php?url_id=715&amp;entry_id=125" title="http://magnum.dimajix.de"  onmouseover="window.status='http://magnum.dimajix.de';return true;" onmouseout="window.status='';return true;">Magnum</a> soon will contain some new modules that try to fill this gap, by offering the following tools:<br />
<ul><br />
<li>A generic Meta-Compiler based upon <a href="http://blog.dimajix.de/exit.php?url_id=716&amp;entry_id=125" title="http://www.gccxml.org/"  onmouseover="window.status='http://www.gccxml.org/';return true;" onmouseout="window.status='';return true;">gccxml</a> together with a specialised XML-based transformation language.</li><br />
<li>Non-intrusive, full reflection for all public elements of any C++ program given in source.</li><br />
<li>A Java-like scripting language built on top of the reflection together with a custom bytecode compiler.</li><br />
</ul><br />
With these tools, one can easily add generic scripting capabilities to any C++ program with only some little one-time effort. Plus it is possible to use the Metacompiler for automatically transforming any type-information given in C++ headers in any kind of text-based files, by providing a set of transformation rules which will be applied to the C++ metainformation generated with gccxml.<br />
<br />
The new package is not completely finished yet, there are some features still missing, but work is steadily progressing. For a preview, you can simply check out the latest version of Magnum using <a href="http://blog.dimajix.de/exit.php?url_id=717&amp;entry_id=125" title="http://subversion.tigris.org"  onmouseover="window.status='http://subversion.tigris.org';return true;" onmouseout="window.status='';return true;">Subversion</a> at <a href="svn://subversion.dimajix.de/magnum">svn://subversion.dimajix.de/magnum</a>. 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://blog.dimajix.de/archives/124-Promotional-Video-for-Windows-386.html" rel="alternate" title="Promotional Video for Windows 386" />
        <author>
            <name>Kaya Kupferschmidt</name>
            <email>k.kupferschmidt@dimajix.de</email>
        </author>
    
        <published>2007-01-29T13:32:22Z</published>
        <updated>2007-01-29T13:43:25Z</updated>
        <wfw:comment>http://blog.dimajix.de/wfwcomment.php?cid=124</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blog.dimajix.de/rss.php?version=atom1.0&amp;type=comments&amp;cid=124</wfw:commentRss>
    
            <category scheme="http://blog.dimajix.de/categories/6-Weird" label="Weird" term="Weird" />
    
        <id>http://blog.dimajix.de/archives/124-guid.html</id>
        <title type="html">Promotional Video for Windows 386</title>
        <content type="xhtml" xml:base="http://blog.dimajix.de/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                While all people are talking about Windows Vista, lets look back in time:<br />
<br />
The 80s really were a weird time, with a very strange taste for clothing. And a real laughable highlight is the <a href="http://blog.dimajix.de/exit.php?url_id=711&amp;entry_id=124" title="http://video.google.co.uk/videoplay?docid=4915875929930836239&amp;q=windows+386&amp;b3ta"  onmouseover="window.status='http://video.google.co.uk/videoplay?docid=4915875929930836239&amp;q=windows+386&amp;b3ta';return true;" onmouseout="window.status='';return true;">Promotional Video for Windows 386</a> promoting the wodners of multitasking, with the best part coming at minute 7 after a boring start. Some people even wouldn't be surprised if it turned out to be <a href="http://blog.dimajix.de/exit.php?url_id=712&amp;entry_id=124" title="http://www.osnews.com/permalink.php?news_id=17095&amp;comment_id=206774"  onmouseover="window.status='http://www.osnews.com/permalink.php?news_id=17095&amp;comment_id=206774';return true;" onmouseout="window.status='';return true;">sleazy porn scene.</a>. It shouldn't be a surprise that you will not find many hits for the directory David Vik on google.<br />
<br />
I am so glad that the 80s are over.<br />
 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://blog.dimajix.de/archives/123-Status-of-Magnum.html" rel="alternate" title="Status of Magnum" />
        <author>
            <name>Kaya Kupferschmidt</name>
            <email>k.kupferschmidt@dimajix.de</email>
        </author>
    
        <published>2007-01-13T17:38:49Z</published>
        <updated>2007-01-13T17:38:49Z</updated>
        <wfw:comment>http://blog.dimajix.de/wfwcomment.php?cid=123</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blog.dimajix.de/rss.php?version=atom1.0&amp;type=comments&amp;cid=123</wfw:commentRss>
    
            <category scheme="http://blog.dimajix.de/categories/4-C++" label="C++" term="C++" />
    
        <id>http://blog.dimajix.de/archives/123-guid.html</id>
        <title type="html">Status of Magnum</title>
        <content type="xhtml" xml:base="http://blog.dimajix.de/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                A short intermission with a status report of <a href="http://blog.dimajix.de/exit.php?url_id=709&amp;entry_id=123" title="http://magnum.dimajix.de"  onmouseover="window.status='http://magnum.dimajix.de';return true;" onmouseout="window.status='';return true;">Magnum</a>. Finally I put up a public SVN repository which can be reached under <a href="svn://dimajix.de/magnum">svn://dimajix.de/magnum</a>. The repository has public read access for everyone and is synched with my private development repository every night, so it is always almost up-to-date.<br />
<br />
The most important feature that will be included in the next release version is full reflection. This means that one can access the complete type information including classes, structs, unions, enums, methods, functions, fields and variables via a dynamic interface at runtime. You can even invoke any method or create new instances of arbitrary objects. This should make it rather easy to make up a small scripting language which can access all types defined in Magnum.<br />
<br />
This is a really huge undertaking, but most of the really hard stuff is already working (you can download the newest version via Subversion, as indicated above.). Still missing is some intelligent automatic argument casting for method-invocation (so you do not have to care about the exact needed types), some fixes for non-public class members and - most importantly - the integration into the build system.<br />
<br />
The really special about my implementation of the reflection is that you will not need to modify your source-code (at least I try really hard to avoid the need of changes to the source code for which reflection is to be generated.) to make your classes accessible via reflection. The meta-compiler, which reads in all headers and creates some cpp files containing the needed runtime information for reflection, is also outstanding in that it uses a generic XML-based language to transform the meta-information parsed from the original header files into a new text-based output file. The metacompiler is not tied to my implementation of reflection and can (and will) be used for many other automatic header-transformations. For example one could write an XML template that generates serialisation code for arbitrary classes (this actually shouldn't be too hard). Other possible uses include the generation of COM or .Net wrappers (or for any other scripting language), etc. 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://blog.dimajix.de/archives/122-Why-Windows-Home-Server-will-be-a-success.html" rel="alternate" title="Why Windows Home Server will be a success" />
        <author>
            <name>Kaya Kupferschmidt</name>
            <email>k.kupferschmidt@dimajix.de</email>
        </author>
    
        <published>2007-01-09T11:09:56Z</published>
        <updated>2007-01-09T11:09:56Z</updated>
        <wfw:comment>http://blog.dimajix.de/wfwcomment.php?cid=122</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blog.dimajix.de/rss.php?version=atom1.0&amp;type=comments&amp;cid=122</wfw:commentRss>
    
            <category scheme="http://blog.dimajix.de/categories/3-Workstations" label="Workstations" term="Workstations" />
    
        <id>http://blog.dimajix.de/archives/122-guid.html</id>
        <title type="html">Why Windows Home Server will be a success</title>
        <content type="xhtml" xml:base="http://blog.dimajix.de/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                According to <a href="http://blog.dimajix.de/exit.php?url_id=703&amp;entry_id=122" title="http://arstechnica.com/news.ars/post/20070108-8573.html"  onmouseover="window.status='http://arstechnica.com/news.ars/post/20070108-8573.html';return true;" onmouseout="window.status='';return true;">ars technica</a>, Bill Gates showed off his newest product, the Windows Home Server as part of his keynote last Sunday at the CES. The WHS is a small device intended to be the central server for home users for storing their photos, music etc. Paul Thurrot has a <a href="http://blog.dimajix.de/exit.php?url_id=704&amp;entry_id=122" title="http://www.winsupersite.com/reviews/whs_preview.asp"  onmouseover="window.status='http://www.winsupersite.com/reviews/whs_preview.asp';return true;" onmouseout="window.status='';return true;">small preview of this server</a> and a hardware implementation done by HP (Microsoft only delviers the operating system). On <a href="http://blog.dimajix.de/exit.php?url_id=705&amp;entry_id=122" title="http://www.osnews.com/story.php/16898/Gates-Wants-a-Server-in-Every-Home"  onmouseover="window.status='http://www.osnews.com/story.php/16898/Gates-Wants-a-Server-in-Every-Home';return true;" onmouseout="window.status='';return true;">OSNews</a> there has been a debate for the need of such a product.<br />
<br />
I predict that the Windows Home Server will be a big success for Microsoft, and I will try to elaborate on the reasons: Nowadays we live in the so called "information age", that is after industrialisation, <i>information</i> is the new driving force in out culture. More and more people have have multiple computers at home (you do not want to know how many I own) and other electronic devices like digital cameras, media players, digital video recorders etc are already standard equipment in many households. <br />
<br />
This means that digital content and properties replace traditional values in our life. This also means there is a new need for protection of your personal investments - ten years ago, you could mainly lose your possesions in terms of a physical loss. Nowadays more and more important and valuable data is stored on  various computers at each home. This imposes two problems: First you want a centralized storage for all your digital data (photos, movies, music, documents etc), and second you want a secure backup of all your data. Many people become increasingly aware of the first problem, but the second is the really important one. In former times, you only lost part of your values if - for example - a CD got scratches or was stolen. <br />
<br />
But nowadays if your harddisc crashes, you probably will lose a lot of irretrievable data like your private email etc. So you wish that you had a backup of all your data, or even better a centralized storage that is protected against hardware faults by some redundancy.<br />
<br />
These are just the reasons why a home server makes sense for a lot of people today. One can argue that there are already a lot of good and affordable NAS boxes out there, but most of them are not more than simple NAS boxes (one exception would be <a href="http://blog.dimajix.de/exit.php?url_id=706&amp;entry_id=122" title="http://www.infrant.com"  onmouseover="window.status='http://www.infrant.com';return true;" onmouseout="window.status='';return true;">Infrants</a> product reportoire) that don't offer comfortable backup utilities or are too complicated for the average user. This is why I see espceially Windows Home Server to be a success - if done right and with the help of Microsofts massive marketing forces.<br />
<br />
For me, I probably won't buy a Windows Home Server, because I want something more professional -  I want to have a blindingly fast RAID server with tons of storage, support for different file protocols (NFS comes to my mind), although the hardware specs of HPs machien are promising: 1.8 GHz AMD Sempron paired with 512MB of RAM. This should offer twice the performance of <a href="http://blog.dimajix.de/exit.php?url_id=707&amp;entry_id=122" title="http://www.thecus.com/products_over.php?cid=1&amp;pid=8"  onmouseover="window.status='http://www.thecus.com/products_over.php?cid=1&amp;pid=8';return true;" onmouseout="window.status='';return true;">Thecus N5200</a> NAS solution, which is already by far the fastest affordable home NAS out there (although with <a href="http://blog.dimajix.de/exit.php?url_id=708&amp;entry_id=122" title="http://www.thecus.com/downloadx.php?pid=8&amp;type=f"  onmouseover="window.status='http://www.thecus.com/downloadx.php?pid=8&amp;type=f';return true;" onmouseout="window.status='';return true;">many firmware limitations and problems</a>). 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://blog.dimajix.de/archives/120-If-Life-Ran-on-a-Solaris-Cluster.html" rel="alternate" title="If Life Ran on a Solaris Cluster" />
        <author>
            <name>Kaya Kupferschmidt</name>
            <email>k.kupferschmidt@dimajix.de</email>
        </author>
    
        <published>2007-01-08T09:31:00Z</published>
        <updated>2007-01-06T09:35:50Z</updated>
        <wfw:comment>http://blog.dimajix.de/wfwcomment.php?cid=120</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://blog.dimajix.de/rss.php?version=atom1.0&amp;type=comments&amp;cid=120</wfw:commentRss>
    
            <category scheme="http://blog.dimajix.de/categories/6-Weird" label="Weird" term="Weird" />
    
        <id>http://blog.dimajix.de/archives/120-guid.html</id>
        <title type="html">If Life Ran on a Solaris Cluster</title>
        <content type="xhtml" xml:base="http://blog.dimajix.de/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                You might wonder what the girls at <a href="http://blog.dimajix.de/exit.php?url_id=680&amp;entry_id=120" title="http://www.sun.com"  onmouseover="window.status='http://www.sun.com';return true;" onmouseout="window.status='';return true;">Sun</a> expect from a boy friend. You can find the answer in a <a href="http://blog.dimajix.de/exit.php?url_id=681&amp;entry_id=120" title="http://www.youtube.com/watch?v=WT0k4EhtRWY"  onmouseover="window.status='http://www.youtube.com/watch?v=WT0k4EhtRWY';return true;" onmouseout="window.status='';return true;">small spot at YouTube</a>:<br />
<ul><br />
<li>availability</li><br />
<li>reliability</li><br />
<li>redundancy</li><br />
</ul> 
            </div>
        </content>
        
    </entry>

</feed>