I want to know about 3rd person game concept

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
neppyweb
Posts: 22
Joined: Thu Nov 23, 2006 12:44 pm

I want to know about 3rd person game concept

Post by neppyweb »

I confuse very much about

1. how to make 3rd person game???
2. in the tuturial 5 (about GUI or menu) I comment code about transparent but the button still transparent I don't know why??

Please tell me how to solve these.. Thx u
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

How to make a 3rd person game is a rather large topic, i think you'll need to be a bit more specific on which parts of it you want to know about. Like cameras, movement, shooting etc. Though from the sounds of it you probably want to know all of that!
Image Image Image
trooper
Posts: 85
Joined: Fri Nov 03, 2006 7:34 pm
Location: Maryland, USA
Contact:

Post by trooper »

Hi NeppyWeb,

Take a look at this for a 3rd person camera.

http://irrlicht.sourceforge.net/phpBB2/ ... wow+camera

I am using it, and it seems to work very well

Regards
You scratch my back, I'll scratch yours.
neppyweb
Posts: 22
Joined: Thu Nov 23, 2006 12:44 pm

-*-

Post by neppyweb »

I want to control the carmera follow character when character move but I don't know how?

Addition I want to know how to make character move??
Thank you
a_haouchar
Posts: 97
Joined: Sat Oct 14, 2006 10:51 am
Location: Australia,melbourne

Post by a_haouchar »

yea i looked at that a few days ago and i just freaked out.i dont know were to start,their are to many files and my code is just based off from quake 3,tud with collison and light!
trooper
Posts: 85
Joined: Fri Nov 03, 2006 7:34 pm
Location: Maryland, USA
Contact:

Post by trooper »

Hi a_haouchar

Check out

http://www.thetrooper.co.uk/mygame/

I have just uploaded a working demo of this 3rd person camera,
plus ya might spot a modified version of the terrain tutorial too :wink:

Enjoy :lol:
You scratch my back, I'll scratch yours.
a_haouchar
Posts: 97
Joined: Sat Oct 14, 2006 10:51 am
Location: Australia,melbourne

Post by a_haouchar »

thanks. Im using dev c++ and did you save it under visual c++?

edit:i downloaded visual c++ express and trying now...

edit again: here is the problem

Code: Select all

Compiling...
CCameraRPGSceneNode.cpp
CCameraSceneNode.cpp
c:\users\haouchars\desktop\ee\ccamerascenenode.h(140) : error C2079: 'irr::scene::CCameraSceneNode::ViewArea' uses undefined struct 'irr::scene::SViewFrustrum'
c:\users\haouchars\desktop\ee\ccamerascenenode.cpp(264) : error C2440: 'return' : cannot convert from 'int *__w64 ' to 'const irr::scene::SViewFrustrum *'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\users\haouchars\desktop\ee\ccamerascenenode.cpp(271) : error C2440: '<function-style-cast>' : cannot convert from 'irr::core::matrix4' to 'irr::scene::SViewFrustrum'
        Source or target has incomplete type
c:\users\haouchars\desktop\ee\ccamerascenenode.cpp(273) : error C2228: left of '.cameraPosition' must have class/struct/union
        type is 'int'
c:\users\haouchars\desktop\ee\ccamerascenenode.cpp(274) : error C2228: left of '.recalculateBoundingBox' must have class/struct/union
        type is 'int'
IrrCameraRPG.cpp
not even my code isnt working,all these weird errors that i never seen before.dev c++ is much eaiser
Last edited by a_haouchar on Fri Dec 01, 2006 6:35 am, edited 1 time in total.
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

You need to include <SFrustrum.h> in your CCameraSceneNode.h.
a_haouchar
Posts: 97
Joined: Sat Oct 14, 2006 10:51 am
Location: Australia,melbourne

Post by a_haouchar »

nowonder i gave up before:(

edit:

Code: Select all

Compiling...
CCameraSceneNode.cpp
c:\users\haouchars\desktop\ee\ccamerascenenode.h(140) : error C2079: 'irr::scene::CCameraSceneNode::ViewArea' uses undefined struct 'irr::scene::SViewFrustrum'
c:\users\haouchars\desktop\ee\ccamerascenenode.cpp(264) : error C2440: 'return' : cannot convert from 'int *__w64 ' to 'const irr::scene::SViewFrustrum *'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\users\haouchars\desktop\ee\ccamerascenenode.cpp(271) : error C2440: '<function-style-cast>' : cannot convert from 'irr::core::matrix4' to 'irr::scene::SViewFrustrum'
        Source or target has incomplete type
c:\users\haouchars\desktop\ee\ccamerascenenode.cpp(273) : error C2228: left of '.cameraPosition' must have class/struct/union
        type is 'int'
c:\users\haouchars\desktop\ee\ccamerascenenode.cpp(274) : error C2228: left of '.recalculateBoundingBox' must have class/struct/union
        type is 'int'
IrrCameraRPG.cpp
c:\users\haouchars\desktop\ee\irrcamerarpg.cpp(5) : fatal error C1083: Cannot open include file: '<SFrustrum.h>': No such file or directory
Generating Code...
no such file directory?
trooper
Posts: 85
Joined: Fri Nov 03, 2006 7:34 pm
Location: Maryland, USA
Contact:

Post by trooper »

Hi,

Yeah the RPG Camera and terrain demo, are both Visual Studio 2003 :wink:
You scratch my back, I'll scratch yours.
a_haouchar
Posts: 97
Joined: Sat Oct 14, 2006 10:51 am
Location: Australia,melbourne

Post by a_haouchar »

so is that why im getting all those errors:( i need visual studio
a_haouchar
Posts: 97
Joined: Sat Oct 14, 2006 10:51 am
Location: Australia,melbourne

Post by a_haouchar »

i got it to compile but in irrlicht in 1.1

any file i try to compile with 1.2 fails:( unless its from in the irrlicht folders)

ok i get this error! whats with the line of code?
Image

Image
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Since the app is running you also succeeded in compiling with Irrlicht 1.2. However, your path is .../meida/... which should probably be .../media/...
Maybe invest some time to go through your code first.
a_haouchar
Posts: 97
Joined: Sat Oct 14, 2006 10:51 am
Location: Australia,melbourne

Post by a_haouchar »

and i said it doesnt work with 1.2
it works with 1.1

and i did go through my code,just missed that bit,i had to retype abit,sorry

edit:it still wont work?????? that yellow arrow is just pointing to that line,it just wont open quake:(

can someonme please quide me through it at msn becuase i hate visual c++ i like dev c++ its much eaiser.
trooper
Posts: 85
Joined: Fri Nov 03, 2006 7:34 pm
Location: Maryland, USA
Contact:

Post by trooper »

Hi,

I would agree with Hybrid on this one.

Check your folder paths and spelling.

looking at the code, all your media assets have no path:
"faerie.md2"
"faerie2.bmp"
"map-20kdm2.pk3"

Yet your debug output windows says you are looking for "map-20kdm2.pk3" in a "media" folder

Are these 2 screen shots from the same application ???

Regards :wink:
You scratch my back, I'll scratch yours.
Post Reply