<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Black Pillow - Pieter Hoste's Portfolio</title>
    <link>http://pieterhoste.be/blackpillow/</link>
    <description>My Portfolio and blog</description>
    <language>en</language>
    <pubDate>Sun, 26 Nov 2006 19:51:06 GMT</pubDate>
    <item>
      <title>How to export an animated, skinned 3D model and get it to work in XNA</title>
      <description>After about a year of silence, I decided to finally post something new over here ;)&lt;/p&gt;&lt;p&gt;Lately I've been programming a game in XNA. And one thing which took me a long while to figure out, was how to get the nice animated 3D models to display on the screen in a XNA game. And since it took a long while to figure this out, I decided to post it here, because other people might have the same problems as I did.&lt;/p&gt;&lt;p&gt;Ok, let's go.&lt;br /&gt;First of all, I use Autodesk 3ds Max as my 3D software packet, but it might also work with Maya (not tested though).&lt;/p&gt;&lt;p&gt;What's very important to start with, is that there is only 1 mesh in your scene. So if you use meshes for your helpers, you have to replace them by dummies, otherwise it won't work.&lt;br /&gt;Most off the other complicated stuff works over here, so stuff like bones, skinning, IK's, ... won't cause any problem.&lt;/p&gt;&lt;p&gt;Next, the export itself, well, we have to export twice in fact.&lt;br /&gt;Export number one:&lt;br /&gt;We'll need the free exporter from Feeling Software, called &lt;a  href = "http://www.feelingsoftware.com/content/view/65/79/lang,en/" title = "Feeling Software - ColladaMax" &gt;ColladaMax&lt;/a&gt;.&lt;br /&gt;You can download it, but you'll need to create an account before you can do so.&lt;br /&gt;At the time of writing, I'm using version 3.05B.&lt;/p&gt;&lt;p&gt;Now, once installed you can open up your 3D Studio Max and open your model.&lt;br /&gt;Now, click your model, make sure you've only selected your model, and choose File =&amp;gt; Export Selected...&lt;br /&gt;Pick the Collada (*.DAE) format, give the file a name, and press Save. Next, you have to check some checkboxes, the most important one is the &amp;quot;sample animations&amp;quot;. Make sure you have that one selected, and have the correct frame numbers inserted in the two textfields.&lt;br /&gt;Now press OK.&lt;br /&gt;&lt;img src = "http://pieterhoste.be/blackpillow/images/posts/36/ColladaMax.png" alt = "Settings Collada Exporter" class = "large_image" /&gt;&lt;/p&gt;&lt;p&gt;Alrighty, now we have an DAE file, but XNA doesn't know how to process a DAE file out of the box.&lt;br /&gt;So we have to make an FBX file out of this DAE file.&lt;br /&gt;We'll use 3DS Max to do this again.&lt;/p&gt;&lt;p&gt;So, Reset your stage in Max and choose File =&amp;gt; Import, and pick your DAE file. It's very important you import the file with the Collada (*.DAE, *.XML) importer and not the Autodesk (*.FBX, *.DAE) importer, because he will mess it up.&lt;/p&gt;&lt;p&gt;Ok, once imported, you can go to File =&amp;gt; Export again.&lt;br /&gt;And now pick the Autodesk (*.FBX, *.DAE) exporter. Make sure you explicitly export your file with the extension .fbx and not .dae!&lt;br /&gt;In the next dialog, make sure you have checked: Geometry, skins and animation.&lt;br /&gt;Press OK, and you're ready to use the file in XNA.&lt;br /&gt;&lt;img src = "http://pieterhoste.be/blackpillow/images/posts/36/FBX.png" alt = "Settings FBX Exporter" class = "large_image" /&gt;&lt;/p&gt;&lt;p&gt;The best library I found to use this file is the &lt;a  href = "http://www.codeplex.com/animationcomponents" title = "XNA Animation Component Library" &gt;XNA Animation Component Library&lt;/a&gt;.&lt;br /&gt;At the time of writing, there isn't an official XNA 2.0 build out of that library, but when you search the forums, you can find one over here: &lt;a  href = "http://www.codeplex.com/animationcomponents/Thread/View.aspx?ThreadId=19730" title = "Xclna conversion to XNA 2.0" &gt;Xclna conversion to XNA 2.0&lt;/a&gt;&lt;/p&gt;&lt;p&gt;There you go, I hope some of you might find this usefull.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Update&lt;/strong&gt;&lt;br /&gt;We found out that when you are using the XNA Animation Component Library, you have to make sure that on frame 0, you set the model in it's startingpose, like you modelled it. And you have to start animating on frame 1 and not on frame 0!&lt;br /&gt;Otherwise you will see some very strange things happening.</description>
      <author>pieter@pieterhoste.be (Pieter Hoste)</author>
      <pubDate>Thu, 27 Mar 2008 10:27:43 GMT</pubDate>
      <link>http://pieterhoste.be/blackpillow/posts/36-How-to-export-an-animated-skinned-3D-model-and-get-it-to-work-in-XNA</link>
      <guid>http://pieterhoste.be/blackpillow/posts/36-How-to-export-an-animated-skinned-3D-model-and-get-it-to-work-in-XNA</guid>
    </item>
    <item>
      <title>CSS Naked Day</title>
      <description>It's been a while since I posted here, but today is a special day.&lt;br /&gt;It's &lt;a  href = "http://naked.dustindiaz.com/" title = "CSS Naked Day site" &gt;CSS Naked Day&lt;/a&gt; and I'm participating because I highly support the CSS and the other webstandards.&lt;/p&gt;&lt;p&gt;Well that's about it. See you on my next post (hopefully soon ;))</description>
      <author>pieter@pieterhoste.be (Pieter Hoste)</author>
      <pubDate>Wed, 04 Apr 2007 23:05:32 GMT</pubDate>
      <link>http://pieterhoste.be/blackpillow/posts/35-CSS-Naked-Day</link>
      <guid>http://pieterhoste.be/blackpillow/posts/35-CSS-Naked-Day</guid>
    </item>
    <item>
      <title>Transturner launched</title>
      <description>For our programming course at school, we have to make little games in C++. And to spice the games a bit up, we have to use bitmaps instead of simple DrawLines, DrawRects and DrawOvals.&lt;/p&gt;&lt;p&gt;Alright, so If you have found a nice bitmap for your game, you want it to move probably, and it may also be necessary to rotate the image in the game.&lt;/p&gt;&lt;p&gt;That's the point where Transturner comes in. It's an web page that lets you turn your images automagically into one long bitmap over a certain degree and with a specific transparent color.&lt;/p&gt;&lt;p&gt;I wrote this thingy in about two days. It's made in Ruby on Rails (offcourse :p) with the help of the &lt;a  href = "http://rmagick.rubyforge.org/" title = "rMagicks website" &gt;rMagick library&lt;/a&gt; to process the images.&lt;/p&gt;&lt;p&gt;After that was done, a &lt;a  href = "http://jeroenbourgois.be" title = "Jeroen's site" &gt;friend&lt;/a&gt; (the designer of my site) came complaining about the bad layout of my webapp, so he designed a very sleek design for it. And I put it into a nice simple css file.&lt;/p&gt;&lt;p&gt;So how does this app works. Well let's see...&lt;/p&gt;&lt;p&gt;First you have to make an image with the transparency color already in it, for example:&lt;br /&gt;&lt;img src = "http://pieterhoste.be/blackpillow/images/posts/2/chess_piece.bmp" alt = "image of a chess piece" class = "large_image" /&gt;&lt;br /&gt;Then if you put the transparency color to #ff00ff and set an degree of 60, you get this result:&lt;br /&gt;&lt;img src = "http://pieterhoste.be/blackpillow/images/posts/2/result2.bmp" alt = "image of the result" class = "large_image" /&gt;&lt;/p&gt;&lt;p&gt;Ow, I almost forgot the link, here it is:&lt;br /&gt;&lt;a  href = "http://pieterhoste.be/Transturner/" title = "Transturner application" &gt;http://pieterhoste.be/Transturner/&lt;/a&gt;</description>
      <author>pieter@pieterhoste.be (Pieter Hoste)</author>
      <pubDate>Sat, 09 Dec 2006 13:56:10 GMT</pubDate>
      <link>http://pieterhoste.be/blackpillow/posts/34-Transturner-launched</link>
      <guid>http://pieterhoste.be/blackpillow/posts/34-Transturner-launched</guid>
    </item>
    <item>
      <title>New portfolio launched</title>
      <description>After three years, I thought it was time to launch a new version of this portfolio.&lt;/p&gt;&lt;p&gt;First I needed a new design, so I asked &lt;a  href = "http://jeroenbourgois.be" title = "Site of Jeroen Bourgois" &gt;the guy&lt;/a&gt; who designed my old portfolio to design a new one, and this is the result of it. It looks quit nice don't you think? :-)&lt;/p&gt;&lt;p&gt;Next: the technology.&lt;br /&gt;Since I'm sick of uploading new html files every now and then, I'm going for some server side goodness.&lt;br /&gt;And since I discovered Ruby on Rails last year, I have fallen in love with it. Luckily my hosting supports it to, so that's no problem.&lt;/p&gt;&lt;p&gt;Alright, what is there here to see. Well right now you're looking at my &amp;quot;blog&amp;quot;, well I'm trying to make it a blog, I just hope I have something to say regularly over here :p.&lt;/p&gt;&lt;p&gt;Then you can also see my previous work. It's not all there yet, but that will change in the following days.&lt;/p&gt;&lt;p&gt;If you want to contact me, than just go to the contact page.&lt;/p&gt;&lt;p&gt;Well that's about it, hope to see you again.</description>
      <author>pieter@pieterhoste.be (Pieter Hoste)</author>
      <pubDate>Sun, 26 Nov 2006 19:51:06 GMT</pubDate>
      <link>http://pieterhoste.be/blackpillow/posts/1-New-portfolio-launched</link>
      <guid>http://pieterhoste.be/blackpillow/posts/1-New-portfolio-launched</guid>
    </item>
  </channel>
</rss>
