Wednesday, July 09, 2008

Newton Physics for WPF – Because everyone needs to write a cool Moon Lander game, at one time or another, don’t they? :)

CodeProject - Newton Game Dynamics Extensions for the WPF - The Moon Lander Game

“…

Moon Lander Game (This is the part this article will focus on.)

Sweet little game demonstrating some interesting parts of the framework. The game uses fixed breakable joints for the Lander's legs. Merges 3D (for the Lander craft) and 2D (for the Ground) together to create a strange retro feel. The Lander model has been built using Blender and the Xaml editor so the xaml is quite large to work off as an initial example.

Simple Boxes Test

This is the simplest of example applications demonstrating just how easy it is to add newton to your WPF project.

Blender

The 3D application Blender was used as the object modeler. This project includes the Blender to XAML Exporter specially modified to make it easier to structure a model to modify (via the Xml Editor) to include the newton fixtures

The Xaml Editor

3D designer allowing you to manipulate a 3D WPF model with 3D gizmos. Takes a source file (usually the output from your 3D packaged converted to XAML) and allows you to tweak it (usually adding the Newton extensions xaml) and play with the model in real time. You can then save out the result to be used in an application keeping the original source and changes separate allowing you to be back to your 3D package, make changes and re-tweak the model back into your WPF application.

Planned Articles

Part1 - The basic concepts and the Moon Lander Game explained.
*Part2 - Modeling with Blender and using the Xml Editor to tweak the model and setup for collisions.
*Part3 - More advanced Physics examples, plus the Crane project explained. (Make a crane with ONLY Xaml. No Coding!)
* - not written yet.

Introduction

moonlander

…”

Okay, I just thought that was cool. I so want to add Newton Physics to my WPF app. (Oh wait, I need to learn how to WPF first.. ;)

I remember writing a Moon Lander game in high school on a TRS80 Model III. Wow, times have changed…

No comments: