Friday, May 25, 2012

Looking Ahead

So I've officially completed PA1-3 and uploaded all of the necessary files to perforce which means It's time to look ahead to PA4 and the end of game engines. The main focus here is to get some animation data working and it's a tall task. I could focus completely on just getting the animation to work from here on but I think I may be better served if I do a little bit of refactoring first. The engine is feeling pretty bulky right now and it would be nice to clean a few things up.  I also still have yet to add in the game loop like we did in class.

I'm begining to become unhappy with how my objects are being managed by the object manager and I think i'd like to revamp that quickly as well. For some reason i'm not a huge fan of having to create space frigate and then space frigate object. then also adding in warbear and warbear object.  They do exactly the same things except they just have different names and load different data. I feel like getting the PCS tree structure set us is going to be the way to go here. At that point I should be able to set up a more generic object class so I won't have to copy and paste the whole thing with every model I load.

There is a large amount of work to be done in the coming weeks and it's a good thing I've made myself a lot of free time. Time to get started on the big push.

Tuesday, May 15, 2012

PA1 - PA3. DONE.

So it's probably a little premature to actually call it a wrap, but I've just finished quaternions (all my tests pass at least. I won't be sure they work right till I use them) and as I posted a few minutes ago the archiver and the converter are basically finished. I might do a little tweaking here and there but I think that means it's on to animation. (but first a video game break!) Feels good to be done.

A Quick Diagnostic

So it's about time I get back to working on my engine.  I think now is a good time to review what is left to be done.

I haven;t looked in a little while, but I'm pretty sure my archiver is all done. As I recall all of the unit tests passed and I think it looked pretty good. I'll be sure to double check that before the deadline.

Next up is the FBX model converter. This is looking decent enough. I've been able to take three different models, convert them to my desired binary format and then get them to display on the screen in my engine. I'm pretty happy with this in that that's basically all there is to the assignment, but If there's time I'd like to see if I can clean this up a little bit. I'm using a lot of vertex data in the engine, and I know I can make them a little leaner. Spacefrigate, Warbear, and Astro boy are up an running. I'm also considering throwing a couple of other models in there just for kicks.

Finally is quaternions. This went smoothly enough and I've got the majority of the tests passing just fine. The only thing I'm having trouble wrapping my head around is the direction of flight. I'm just not quite understanding what exactly it is I'm supposed to be returning. I've re-watched Keenan do this from class but I think I'm just going to have to rack my brain and figure it out. I may need to put a forum post up real soon.

That does it for the near deadline and then it's on to animation. There isn't a whole lot of time to get animation flowing so I'll probably try to get a head start on that.

I'm also going to need to make a few edits to my original game engine. I'll get the game loop up and running and just clean things up a bit. Hopefully I can make it easy enough to use when creating games in my spare time.

Sunday, May 6, 2012

QUATERNIONS!

So I'm plugging my way through quaternions and I think I'm getting to the point where I should put up a good post.

This Sucks.  I'm glad that this is the type of thing you can do once and then as long as you've done it right you won't really need to come back to it for a long time.   There are a couple of problems I'm having right now.  For one I think my conversion from a matrix to a quaternion isn't correct. I'm not sure why as the math doesn't really seem to be present in the documentation.

Secondly, Keenan has a large number of constructors and set functions with rotations about x, y, and z and here again I'm just not sure how to translate or what exactly he's looking for. I'm getting close to finishing the function's I'm able to and I'm thinking I might need to go see Keenan soon before the deadline so I can sort all of this out.

I moved away from The converter for now.  I have a pretty clear picture in my mind on what needs to be done there, but I just wanted to get as far as possible on quaternions before I jump back in. hopefully I'm not wasting too much time.

-A