FPS with irrlicht (Irrlicht users perfered)

xenxe 101 Jan 24, 2008 at 20:22

i was thinking of making a FPS with irrlicht using bullet for physics blender and wings for 3d and gimp for 2d and microsoft visual C++ for code

how would i start this first project of mine please just give me the basics move and shoot ill try to figure the rest out

5 Replies

Please log in or register to post a reply.

Almos 101 Jan 28, 2008 at 14:42

Start by reading Bjarne Stroustrup’s “C++”. It’ll give you an outline of the OOP philosophy, although it doesn’t contain any clear directions on how to write games.

Implementing 1-st person controls in Irrlicht is as easy as using Irrlicht’s first-person camera. Shooting can be resolved by raycasting. It’s up to you to figure out the rest. Good luck!

starstutter 101 Jan 28, 2008 at 17:28

Agreed, almost all engines at least have some basic FPS framework (be a little useless if they didn’t :P ), so the camera should not be an issue at all. As said above, raycasting is probably the best way to go.

A more specific approch to this, perhaps saving you hours on google is…

In DirectX, you can use D3DXIntersect(), or an equivelant that Irrlicht has. That will give you the info on whether you hit the entire mesh or not. If you want more specific impacts (head, torso, leg, ect.), then you can use D3DXIntersectSubset(), making each different part of the body a different subset.. which is kind of what you should do anyway.

If this all can’t be done in directX, I’m sure Irrlicht has some kind of identical or similar function. I’m not entirley sure if the source code can be moddified for that, but again, I would think that engine needs heavy modification before it can start most any quality project, so no source code would be a dumb move.

xenxe 101 Jan 28, 2008 at 19:20

ok this was kinda helpful ill look some more

fireside 141 Jan 28, 2008 at 23:36

The collision tutorial in Irrlicht is a very good starting point. The ray collision isn’t fancy on the characters, but it would serve well enough. However, if you’re using bullet, it probably has some sort of ray collision so you should use that. It would be best to tie in the physics engine first thing and then work from there, using the collison and forces of the physics engine to manipulate game objects. You sound inexperienced so I would recommend dropping the idea of making a first person shooter and create a simple world and move things around using the bullet engine. A 3d pong game would be a good start. Otherwise, you could drop the physics engine and it wouldn’t be too hard to write a 1st person shooter using Irrlicht’s collision tutorial. It’s still not really a good starting point unless you use something like fpscreator or something where you’re basically building a mod.

rouncer 103 Jan 30, 2008 at 02:22

move and shoot, thats all you need to know…