Jump to content


FPS with irrlicht (Irrlicht users perfered)


5 replies to this topic

#1 xenxe

    New Member

  • Members
  • Pip
  • 4 posts

Posted 24 January 2008 - 08:22 PM

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
Games are cool!

#2 Almos

    Member

  • Members
  • PipPip
  • 99 posts

Posted 28 January 2008 - 02:42 PM

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!
I want to make a game as good as Elder Scrolls oblivion with no programming, just point&click. If it's not possible, I want a team of programmers I'd be able to order around. After all, I'm a n00b.

#3 starstutter

    Senior Member

  • Members
  • PipPipPipPip
  • 1039 posts

Posted 28 January 2008 - 05:28 PM

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.

#4 xenxe

    New Member

  • Members
  • Pip
  • 4 posts

Posted 28 January 2008 - 07:20 PM

ok this was kinda helpful ill look some more
Games are cool!

#5 fireside

    Senior Member

  • Members
  • PipPipPipPip
  • 1587 posts

Posted 28 January 2008 - 11:36 PM

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.

#6 rouncer

    Senior Member

  • Members
  • PipPipPipPip
  • 2722 posts

Posted 30 January 2008 - 02:22 AM

move and shoot, thats all you need to know...





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users