old forum, 3rd person & tertain

Discuss about anything related to the Irrlicht Engine, or read announcements about any significant features or usage changes.
Post Reply
devdesk
Posts: 1
Joined: Sat Sep 06, 2003 10:12 am

old forum, 3rd person & tertain

Post by devdesk »

Hi all, :D

I'm new to this engine, sorry to bug you guys with this newbie question:

1. where can i read the old forum message? this could be help full for
finding solution for the followings: (might have solved from the old forum)

2. Is there any 3rd person view tutorial or samples on howto do it ?

3. how to or tutorial to do landscape/tertain with this engine?

Thanks for the future help.
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

Hi,

The old forum can be found at http://sourceforge.net/forum/?group_id=74339.
There is no 3rd person or terrain tutorial for the irrlicht engine available as far as I know, but maybe you'll find a more general at the www. If you want to do terrain, you also could load or create your terrain mesh and display it using e.g. the octtrescenenode. Or implement your own terrain renderer. (Like in the CustomSceneNode tutorial.)
knightoflight
Posts: 199
Joined: Sun Aug 24, 2003 5:47 pm
Location: Germany

Post by knightoflight »

to question 3 for terrain:
im still a beginner and trying to find a good looking AND performant way to a nice terrain with irrlicht, the best information in web for building terrain, i found is here:
http://www.vterrain.org/

Maybe someone of the cyberspace-community of this forum or Mr devdesk wants to build a free open irrlichtcode for terrain together ?
cyberbobjr2

Post by cyberbobjr2 »

Hi,
2. Is there any 3rd person view tutorial or samples on howto do it ?
I don't know if this is what you want, but i have found a trick for moving MeshNode "à la" 3rd view, this is the code (not optimized, sorry), i was inspired by the source code of CameraFPS :) :

Code: Select all

case KEY_KEY_W:
case KEY_KEY_S:
	{
// node contain the mesh animated scene node.
	vector3df v = node->getPosition();
	if (event.KeyInput.Key==KEY_KEY_W)
		{
		vector3df Target(1,0,0);
		vector3df nodeRotation = node->getRotation();
		matrix4 mat;
		mat.setRotationDegrees(nodeRotation);
		mat.transformVect(Target);
		Target.normalize();
		v+=Target;
		node->setPosition(v);
		}
	} break;

Hope that help you ...

Last word :
This engine is really one of the best engine i have found on the net ! :D

cyb
Descend
Posts: 10
Joined: Tue Sep 09, 2003 8:37 pm

Post by Descend »

Heres the basics of a third person camera routine I've been playing with that I think is fairly easy to understand:

vector3df fpos = faerieNode->getPosition();
vector3df frot = faerieNode->getRotation();

vector3df opos = fpos;
Camera->setTarget(fpos);
fpos.X -= 50;
fpos.Y += 10;
fpos.rotateXZBy(frot.Y*-1.0f,opos);
Camera->setPosition(fpos);


Assuming that faerieNode is the node that you want to chase, this routine places the camera to the left and slightly above. Hope it helps!
WingedWarrior
Posts: 8
Joined: Mon Nov 10, 2003 2:34 pm

Post by WingedWarrior »

Hi All

Descend, cyberbobjr2, nice code snippets :D .

I have been working on a 3rd person camera also but are having problems rotating up and down. :cry: (Try to copy the player movement in the new Enclave game).

Any suggestion helpful, thanks
Post Reply