Page view counter

Silverlight Tips of the Day - Blog by Mike Snow

Game Programming with Silverlight

Silverlight Tip of the Day #98 – Creating Sprites from 3D Models - EnvyGames

I recently stumbled across a cool tool by EnvyGames that allows you to generate sprites from 3D Models and their animation files. This tool, called SpriteWorks, is ideal for creating high quality sprite animations and one that I’ll be adding to my arsenal of game development tools for Silverlight. Since Silverlight does not yet support 3D models, sprite animation is really the only way to go.

On a side note, EnvyGames is also working on a Silverlight Game Engine. For a complete list of features visit this link: http://www.envygames.com/content/?page_id=327. A beta is due out in a number of weeks.

Once you have installed SpriteWorks make certain to have the following installed or the tool will not work:

  1. Microsoft Visual Studio 2008 or Microsoft Visual C# Express 2008.
  2. Microsoft XNA 3.0

SpriteWorks currently supports importing the following 3D file formats:

  • DirectX (.X)
  • Torque Game Engine (.DTS)
  • Autodesk (.FBX)

This tool is still undergoing improvements and fixes and I would recommend using it with Torque models for the best result.

I will now give a quick overview on how the tool works. Start by launching SpriteWorks, Click the Browse button and choose your 3D model. In the left pane a preview of the model will appear.

image

If your model doesn’t appear at first click the Camera tab and adjust the Camera Angles and Position until the model is centered in the preview window.

image

Next click the Model tab and open up your Animation Sequence file. You can click the Play button to preview the animation.

image

 

Finally, when you are ready click the Output tab. Enter the Output File Name, check the “Animate this model” checkbox and click the “Create Sprite Sheet” button.

image

The tool will start taking a snapshot of each animation frame.

image

The tool will go up to 52% and sit there for a minute or two before completing. Be patient here, the tool has not hung!

The result is a PNG file that has each sequence of the animation in it:

image

Thank you,
--Mike Snow

 Subscribe in a reader

Comments

Microsoft Weblogs said:

I recently stumbled across a cool tool by EnvyGames that allows you to generate sprites from 3D Models

# March 2, 2009 4:08 PM

tnylea said:

This looks pretty sweet. I wonder how silverlight game development is going to do in the competition against Adobe Flash.? Looks like a great program though.

# March 2, 2009 6:57 PM

TedHoward said:

This is a very cool tool. Thanks for sharing.

"Since Silverlight does not yet support 3D models, sprite animation is really the only way to go."

You may not realize how often 3D games use 2D in ways you don't notice. Search for "imposters" for one way.

# March 2, 2009 8:38 PM

Silverlight Travel » Creating Sprites from 3D Models - EnvyGames said:

Pingback from  Silverlight Travel » Creating Sprites from 3D Models - EnvyGames

# March 3, 2009 12:41 AM

Programming with Silverlight, WPF & .NET » 3D Modele und Animations Files said:

Pingback from  Programming with Silverlight, WPF & .NET » 3D Modele und Animations Files

# March 6, 2009 5:50 AM

Programming with Silverlight, WPF & .NET » 3D Modele und Animations Files said:

Pingback from  Programming with Silverlight, WPF & .NET » 3D Modele und Animations Files

# March 6, 2009 5:50 AM

raffsky said:

Nice, I can't wait to see some games made with it. BTW there is already some Xna based game engine for Silverlight at codeplex called xn4sl.

# March 9, 2009 7:53 PM

Marc: My Words said:

Mike Snow and Silverlight

# March 10, 2009 10:14 AM

Marc: My Words said:

I’ve probably mentioned Mike Snow’s Blog before, but I’m allowed to mention it again! If you’re developing

# March 10, 2009 10:14 AM

Visual Web Developer Team Blog said:

Most Recent Posts: Silverlight Tip of the Day #106 - Setting Default Browser from within VS Silverlight

# April 6, 2009 6:13 PM

Silverlight Tips of the Day - Blog by Mike Snow said:

The purpose of this post is to create an outline summary all the blogs from my Silverlight Tips of the

# April 6, 2009 6:20 PM

RTS Pack have been published in a silverlight book! | Ori Cohen said:

Pingback from  RTS Pack have been published in a silverlight book! | Ori Cohen

# June 30, 2009 5:46 AM

NewsPeeps said:

Thank you for submitting this cool story - Trackback from NewsPeeps

# August 8, 2009 6:36 PM

Tool for creating Spritesheet? and Tips. Drija said:

Pingback from  Tool for creating Spritesheet? and Tips. Drija

# May 19, 2011 11:13 PM