Archive for the ‘Software Development’ Category

Saturday, January 27th, 2007

As promised I’ve uploaded the working sample solution that I will explain later in Part 2 of the tutorial…coming soon!

I’ve also added a Tutorials section on the site so it should be easy enough to navigate.

Enough talk… go get the source

If anyone finds a solution to the one small hack in my solution, please let me know!

Update: I forgot to mention the sample’s controls & that there is a Mouse moveable black Cursor that goes White when colliding. The controls are…

  • Pitch model: XBOX 360 Left Thumbstick Forward/Backwards or Keyboard W/S
  • Roll model: XBOX 360 Left Thumbstick Left/Right or Keyboard A/D
  • Yaw model: XBOX 360 Right Thumbstick Left/Right or Keyboard Q/E
  • Scale model: XBOX 360 Left/Right Trigger or Keyboard LeftShift/LeftCtrl
  • Move 3D cursor: Mouse
  • Move 3D cursor forward/backwards: Mouse Scrollwheel Forwards/Backwards
  • Screenshot and XML Dump (put in \Screenshots sub directory): Keyboard PrintScrn

Note: my Mouse code is very rushed and obviously not quite right yet.  Suggestions welcome. ;)

Average Rating: 4.7 out of 5 based on 255 user reviews.

Friday, January 26th, 2007

G’day folks.

Quick update…

I’ve been working hard to get Part 2 in a state ready to publish.  While I’ve got a working solution in my game It’s been painfully hard to write a tutorial showing snippets. So I’ve had to bite the bullet and make a working sample to share.

That has been worthwhile though. In the process I’ve cleaned up a lot of ugly code, or stuff related to “Air Legends” current architecture, that just complicates things.

It has also highlighted some problems that I’ve fixed.  There is one remaining problem – some models seem to behave differently. Something to do with their BoneTransforms I believe.  I’ve found a simple, but less than ideal solution (aka. a dodgy hack), but IT WORKS reliably!!

I think I’ll post the working sample code in the next couple of days.  (Maybe someone can point out solutions to the dodgy hack)

I’ll follow that up with Part 2 of the tutorial to actually explain it all.

Average Rating: 4.4 out of 5 based on 207 user reviews.

Sunday, January 21st, 2007

Howdy all.

Kukyona at CodeAnxiety has posted another update on the Terrain Component for XNA. It’s looking very cool indeed.  Check it out here…

XNA Terrain component,  now with Shadow maps

p.s. I’m still working on Part 2 of my XNA Collision Detection tutorial.

Average Rating: 4.5 out of 5 based on 284 user reviews.

Thursday, January 18th, 2007

Greetings earthlings.

My game build releases have been a bit sparse lately. So you’re possibly wondering what I’ve been working on. Well, as the title suggests – Collision Detection.

The technique used in the current release of my game is as simple as they come, and it’s been bugging me. I haven’t released it yet, but the next release of my game will have much improved collision detection.

But boy, has it been a struggle! There has been a real lack of collision detection tutorials relating to 3D models under XNA, so I’ve had to learn the hard way. So I’m going to attempt to share what I’ve learnt, and hopefully save some other poor souls the pain.

First a caveat…

I don’t claim to be an expert on this subject at all – not by a long stretch. But hopefully I’ll be at least close to correct. Also, this is not really a tutorial either. Don’t expect a working sample with source code. I may get round to that later. Right now my code is a bit embarrassing, given the experimental nature of what I was trying to do.

Second caveat…

these enhancements to my game are not yet released. So for now you’ll just have to trust me when I say it is an improvement. Stay tuned.

The Radius technique…primitive.

The simplest collision detection technique of all is to simply imagine a radius around all your object’s world positions. Then it is just a matter of checking whether any two objects have come within radius distance of each other. This is how my current release of Air Legends works, and if you watch closely it’ll be fairly evident. Depending on the orientation of the two planes a collision will still occur when clearly the planes were not even close.

A better alternative…

XNA provides two classes specifically for collision detection. BoundingSphere & BoundingBox. (more…)

Average Rating: 4.5 out of 5 based on 297 user reviews.

Sunday, January 14th, 2007

Howdy folks.

Well, it’s been a long time since I blogged about anything other than my own game development.  Frankly I’m quite overcome with the flood of useful information coming out now that XNA v1.0 (full, not beta) is out in the wild.

In the back of my mind I’ve known for some time I’ll be needing some sort of Terrain rendered in my game (I want to be able to land the planes to refuel/rearm etc…).  A bit of a daunting TODO that one!  So naturally this news caught my eye.

New Terrain Component – Coming Soon! at CodeAnxiety

 

Sounds like yet another blog to keep an eye on.  If only I had more eyes.

 

;)

Average Rating: 4.5 out of 5 based on 296 user reviews.

Tuesday, January 2nd, 2007

Happy New Year all!  Hope you all got lots of pressies and are having a great 2007 so far.

As promised, here’s a new release to play with. Here’s what’s in it…

  • There a some new and significantly better Sound Effects!  In particular the Engine sounds are way better, and both planes have their own distinct sound.  My favourite is the new sound effects for when you get hit by bullets. 
  • Fixed a problem with engine sounds continuing even after an explosion.
  • Fireball particles should now look better on lower framerate computers, or when the FPS drops out briefly. Should no longer leave gaps.
  • This release also contains a work-around to a known XNA problem when switching to Full-screen.  The framework would use a Monitor refresh rate that is way to  high for some people’s systems.

Big thanks to Ultrahead for alerting me to the full-screen problem and suggesting the good work-around. The game now forces the Refresh rate to something most people’s systems should be able to handle: 75hz.  If even this is too high there is a Settings.Xml setting you can tweak.  If 60hz doesn’t work then probably nothing will.  I chose 75hz since 60hz has evil flickering.  You could go higher if you know what you are doing and what your monitor is capable of, but do so at your own risk. NOTE: the game always tries to use the current Windows Desktop resolution.

Feel free to grab the new release from the Latest Builds page here.

Average Rating: 4.6 out of 5 based on 209 user reviews.

Wednesday, December 13th, 2006

G’day all.

Here’s the deal…

  • You asked for it. At last there are Sound Effects!
  • Also it is all converted for XNA v1.0 that was just released yesterday. No pain at all. Done in 5 minutes.

Go grab the new (& coolest) release from the Latest Builds page here.

My first cut at sound, but I’m actually pretty stoked about how it’s turned out. The crazy perfectionist in me will continue to refine the sounds of course.

I hope you like it. It’s almost feeling like a real game to me (although I have so much more left to do.)

Now remember, your comments, ideas & feedback are always welcome.

Average Rating: 5 out of 5 based on 276 user reviews.

Friday, December 8th, 2006

Hi there.

With 3 altered lines of code I’ve made the Fireball & Explosion effects look a whole lot better.  The difference between the two effects was really too similar.  They’re more distinct now, and I’m much happier with them.

Get the new release from the Latest Builds page here. 

Enjoy!

Average Rating: 4.5 out of 5 based on 178 user reviews.

Friday, December 8th, 2006

Shawn Hargreaves seems to be blogging with a vengeance today.  Possibly going for some kind of record.  ;)

Anyway, among other things, he alerts us to another XNA Team member’s blog:  Eli’s Cornflower Blue blog opens with part 1 of an article explaining Alpha Blending, how it works, and it’s relationship to the Depth Buffer.

I’ve only skim read it so far, but it looks like some very good info.  Exactly what the doctor ordered actually, because when I was converting from XNA Beta 1 to 2 I had all sorts of problems with weird Alpha Blending symptoms.  All fixed now, but I never really understood the problem.

I’m looking forward to studying this one ASAP.

Average Rating: 4.6 out of 5 based on 247 user reviews.

Thursday, December 7th, 2006

Howdy all.

I’ve released another new build of the game.  You can get it from the Latest Builds page. 

EXPLOSIONS!!!

What’s new?

  • You asked for it – EXPLOSIONS, fireballs, whatever you want to call it.
  • Skywriting feature partly complete. Use the XBOX 360 Controller’s B button. For Keyboard users use the Caps Lock key.
  • Left Control is now Shoots. Works nicely with the Left Shift for throttle.

Average Rating: 4.5 out of 5 based on 231 user reviews.