XNA UK User Group
A helping hand for bedroom coders throughout the land.
ReMix 08 - In The Beginning There Was CornFlowerBlue

Blogs

RandomChaos

Syndication

 

The remit I got in mid August from Paul on this was "A simple flying game into which we could weave the important elements of the XNA game infrastructure". So my initial thoughts were some kind of Jet Pack type game where you can fly about shooting stuff. So I cranked up Express and created a new project. Now, I thought to my self, where do I start, and the GSM came to mind, so I started to create a GSM for the ReMix project, after a few minutes of me messing about and grabbing code from my existing GSM I thought, "What on earth are you doing, you have done all this before, use the GSM off the blog!!" and that is exactly what I have done.

This was the start of a trend. At first I wanted to write the whole thing from the bottom up just for ReMix to show how quick you can get going with XNA, but I think this way also shows what can be done with the community components that are out there. I know it's mostly my stuff I am using here, elements of my blog, but my point is, that we have such a rich community you can get game components from all over the place. My post processing code for example is a modification of Kyle Hayward's (GraphicsRunner) post processing framework.  I also found a few bugs in some of my elements, my terrain class for example was creating the normals incorrectly, so I revisited Riemers site to see where I went wrong with it and found he has a new method of calculating them and so I have used this to fix my issue in the class.

So, this was the first update I sent Paul, about 2 days later, remember I only get a few hours a day to work on my XNA stuff, my lunch break (if I get one) and in the evenings. So using my GSM, Kyle's modified post processing framework and my terrain class I had three screens, Initial screen, Main menu and a game screen.

http://www.youtube.com/v/jGxv-fD69rA <p><a href="http://www.youtube.com/v/jGxv-fD69rA">http://www.youtube.com/v/jGxv-fD69rA</a></p>

 

Next came the clouds, Paul actually mentioned in his remit the clouds, I have not just put them in to show them off, though I probably would have put them in any way :P So, this was about a day later (about an hours work) this next clip shows the dynamic sky sphere and clouds in the project.

You will see in the clip the clouds are moving, I did this quite simply by just rotating the whole cloud manager so each cloud moves relative to it.

http://www.youtube.com/v/Z-GqG-AmQRo <p><a href="http://www.youtube.com/v/Z-GqG-AmQRo">http://www.youtube.com/v/Z-GqG-AmQRo</a></p>

 

In the same day, I got my physics engine in there. I stripped out a load of it as it's not finished and just left what was needed, it's still at a simple stage, but what the hell I have my own physics engine in XNA!! I also put in basic terrain collision, not yet taking the collision normal from the terrain just using Vector3.Up. No idea why I kept showing him the menu system...

http://www.youtube.com/v/KesfhA6K_hI <p><a href="http://www.youtube.com/v/KesfhA6K_hI">http://www.youtube.com/v/KesfhA6K_hI</a></p>

 

So, now came the particle system, about four days later, as you can see I still don't have a model for my "Jet Pack" so kept using the cube. I think at this point I was also getting the normal from the terrain for the collision normal. I have put three trails on the player, two engine trails, a smoke and a fire to give the impression of, well and jet engine and a third to give the sense of motion, with out the third it just felt a little odd to me.

http://www.youtube.com/v/hYJ2_aSa_sQ <p><a href="http://www.youtube.com/v/hYJ2_aSa_sQ">http://www.youtube.com/v/hYJ2_aSa_sQ</a></p>

 

Lacking a "Jet Pack" model a friend of mine (Chr0n1x) suggested using a model from the space war starter kit, so, got that in here, got the bullet collision written and put in a few bad guys (the blocks :P). In this clip, you will see how poor a shot I am, I have not improved.. The clip also shows the physics system working as the blocks are colliding and bouncing off each other, also the explosion code as the bullets collide with game objects. Oh, this is a day later...

http://www.youtube.com/v/tWnbplNFZIA <p><a href="http://www.youtube.com/v/tWnbplNFZIA">http://www.youtube.com/v/tWnbplNFZIA</a></p>

 

And this is where I was about a week ago (23rd of August to be exact), not bad eh. Bit of a HUD added, used better models (again space war) for the baddies, lives, score, energy and health...and a game has been written!! Only difference really between this clip and the one in my last post is a few bugs got ironed out and I added specular lighting to the ships. If my laptop had a decent sound card, I would record the in game sounds too, as ever Audio gives it that extra touch.

http://www.youtube.com/v/PAiI6S2Ai7Y <p><a href="http://www.youtube.com/v/PAiI6S2Ai7Y">http://www.youtube.com/v/PAiI6S2Ai7Y</a></p>

 

I do have a few issues, well not with the PC version, as I have not written a great deal for the 360 I guess I am quite a sloppy 360 developer. Just got to iron those out, create the demo projects that show the various elements that make up the game and all should be good on the day. Fingers crossed eh :P

My next post will be on the particle system used in this demo, it's about the only thing that it not on this blog, well almost, the principles are the same as in my particle tutorials, but this will include a particle manager.

Before I end this post, I would like to thank Paul for asking me to do this, it is a great honor in deed for me to be asked, and it's been fun too


Posted Tue, Sep 2 2008 8:15 PM by Nemo Krad
Filed under: ,

Comments

DaphydTheBard wrote re: ReMix 08 - In The Beginning There Was CornFlowerBlue
on Wed, Sep 3 2008 10:17 AM

this is fantastic work.

Keep it up!

Steffan wrote re: ReMix 08 - In The Beginning There Was CornFlowerBlue
on Fri, Sep 5 2008 8:48 AM

Hi Hugo,

Just stumbled across your your blog while doing research on a project I am trying to get off the ground, and was wondering if you might have some advice or help which would get me further.

Basically I am trying to either find or get someone to create a small application which automatically generates random photo-realistic images of the sky which include clouds, sky, sun and godrays during different types of weather and at different times of the day (i.e. sunrise, sunset, rest of day ).

I am trying to generate these images in real-time on servers as part of a project to raise funds for charities. At this stage this is just an idea – but I think a pretty cool one with great potential – so would love to be able to pull this off.

May be you know someone who can help with this or point me in a direction?

This link www.flickr.com/search will give you an idea of the kind of images I would like to generate – but I am only interested in the sky – no terra firma :)

Anyway, any advice or suggestions will be greatly appreciated.

All the best,

:)

Steffan

s g k@ 3 d 3 . c o m

Nemo Krad wrote re: ReMix 08 - In The Beginning There Was CornFlowerBlue
on Fri, Sep 5 2008 10:02 AM

Hugo????

I guess you mean me. What you are asking for (for me anyway) would be no mean feat, and would take a far bit of work to do from scratch.

I am in the process of trying to get a decent sky using my cloud system (with some help from Kyle) If we ever get to the point where it is a nice viable system I will post it here. I do intend to post the basic cloud system I already have, but I don't think this will be enough for your purpose.

F4T C4T wrote re: ReMix 08 - In The Beginning There Was CornFlowerBlue
on Mon, Sep 22 2008 1:05 PM

Nice work Krad. Looks like you had fun!

The menu looks nice, I would show it off in every vid too. :)

Nemo Krad wrote re: ReMix 08 - In The Beginning There Was CornFlowerBlue
on Mon, Sep 22 2008 1:26 PM

lol, thanks. Long time no see, what are you guys up to these days??

F4T C4T wrote re: ReMix 08 - In The Beginning There Was CornFlowerBlue
on Tue, Sep 23 2008 5:01 PM

I'm about to reveal that what we've been up to! Keep and eye on the forum. :)