Simple FPS base framework

A place for users of OGRE to discuss ideas and experiences of utilitising OGRE in their games / demos / applications.
Post Reply
N_K
Greenskin
Posts: 115
Joined: Wed Dec 07, 2011 9:05 pm

Simple FPS base framework

Post by N_K » Sun Jun 02, 2013 4:42 pm

Image

Hello all,

Here I'd like to share what used to be the base of my project before I realized I'm too inexperienced to design and build a game (almost) from the ground up using Ogre, and decided to go with a complete game engine instead.

My project was intended to be a first-person adventure game, therefore I started to implement a first person camera system (based on code from the wiki) to the Advanced Ogre Framework (which was an excellent starting point and a great piece of code). Then I threw in some physics via Bullet and BtOgre (the shining example of what a physics engine wrapper should look like), but because the character controller included with Bullet was completely useless back then (in fact, it was probably the number one reason I gave up), I also integrated the Minimal Ogre Collision library to at least prevent the player to walk through walls and objects (MOC was another great help, understanding how it works and integrating it to the existing system took me about ten minutes). Then to make the camera move smoother, I... umm... lifted some code from the SdkCameraMan system, and it turned out quite nicely. Then I made some quick test levels with Ogitor (I was eagerly waiting for the next release back then, too bad I gave up on this project shortly before a new version had been released :) ), and I was able to load them "out of the box" with the built-in dotScene loader of the Advanced Ogre Framework (apart from some entities, but it would have been trivial to fix it as the scene format supported by AOF was simply a bit outdated). In the end, I also implemented a config file loader I've found on the wiki.

So, here it is, I decided to share because I realized it could be useful for some absolutely beginners, and could give then the idea of how to put various code snippets together and make them work. Also, it's an example how not to do object-oriented code... :D

Download link, sorry for the crappy file hosting, I had no idea where to put it. Comes with a precomiled executable.

I'd like to thank everybody who made the aforementioned projects, and I'd like to thank the whole Ogre community as well. Although I'm using a different engine right now, it was fun to play around with Ogre, and I've learned more about C++ and 3D maths (especially quaternions) during this experiment than I've ever expected.
Last edited by N_K on Sun Nov 03, 2013 11:19 pm, edited 1 time in total.
0 x

Sawyer
Gnoblar
Posts: 3
Joined: Mon Jul 15, 2013 4:15 pm

Re: Simple FPS base framework

Post by Sawyer » Sun Aug 04, 2013 6:59 pm

And so close! I say with humor because this is not the most trivial stuff - especially if you're just learning Ogre, cmake, and the various libraries.
Your info is useful, and the link is alive (dropbox.com is also a good host), a sign that it's being appreciated and at least studied.

Thanks for the contribution and good fortune with your work :)
0 x

Combum
Gnoblar
Posts: 1
Joined: Sat Jul 18, 2015 8:40 pm

Re: Simple FPS base framework

Post by Combum » Sat Jul 18, 2015 8:42 pm

Noooo :/ The link doenst work anymore. Can you please Update it?
0 x

Post Reply