Sign in to follow this  
amateur programmer

making a fps using opengl

Recommended Posts

1.) Do you know a programming language already? If not, you might want to pick up C++, as its the most common language used with OpenGL. Check the forum FAQ for some good tutorials. You should have about a year of programming experience before you attempt to get into 3D graphics, otherwise you will find the going quite difficult.

2.) NeHe's tutorials are highly recommened by many, and you might also want to look around for the book Beginning OpenGL Game Programming.

Share this post


Link to post
Share on other sites
I strongly suggest you read the NeHe (link in above post) tutorials to help you understand OpenGL.
You may find that making a game like an FPS while learning OpenGL may be difficult, but if you do don't give up! Try making a smaller game to get the basics down first if you have to.

Good luck!

Share this post


Link to post
Share on other sites
The OpenGL code for different platforms is similar. It just varies slightly from language to language.

The differences are where API calls are neccessary. Take a look at the first set of tutorials. They cover a lot of the os-specific stuff.
There are also several versions of the code for each advanced tutorial. Download the Code Warrior version for example and you'll have a Mac version.

Look up the topics conditional compilation and download ports to other platforms.
The hard part is writing an abstraction layer that forwards the os specific functions (like creating a window) to the correct function calls.

EDIT: BTW. for portability you can also use SDL (www.libsdl.org) in combination with OpenGL.

Share this post


Link to post
Share on other sites
If your looking to code a full FPS, I really do suggest that you use an existing engine such as Irrlicht or OGRE. Only because that really does make it a lot easier, and if you are having to ask questions like these now I can only imagine how challenging you would find writing the entire thing in OpenGL.

Not only that, but those graphics engines use OpenGL or DX for rendering, so you dont have to worry about keeping things cross platform so much.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this