Blender to XAML

Before getting back to my model, I took a diversion through another quick project.

My interest in 3D graphics was sparked through some programming work I was doing a few years back with C# and .Net.  Microsoft introduced a new method of programming UIs with a markup language called XAML in WPF (Windows Presentation Foundation).  Through this language, you can control all elements on the screen.  One API set  allows the display of 3D objects where the objects are completely described in this text language.  I became interested in tools that could be used to generate 3D which led me to trueSpace and eventually Blender.

In 2008, an add-on to Blender became available which could translate Blender objects to XAML code.  I never used it because I did not need to produce 3D for Windows applications.  A new version of Silverlight will be released this year which will support 3D in the browser using XAML.  Using this technology, it would be possible to show a rotating 3D picture of the Alamo when you mouse-over its map position in my Alamo App or even build a walk through application.

The original add-on does not work in the latest versions of Blender (2.5x) as the Blender API has changed as well as the version of the language that it was written in (Python).  So as a fun exercise, I did a port of the old add-on to the new version of Blender in about 8 days.

The code can be found on Codeplex in the patches section at this link.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: