third person camera & 3ds support

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.
Post Reply
wiznitch
Posts: 15
Joined: Mon Apr 02, 2007 11:11 pm

third person camera & 3ds support

Post by wiznitch »

i need help because my friend made a 3d terrain in 3ds max but i cant figure out how to make it show up in irrlicht.
also, i want to know how to make a third person camera, ive tried but it wont follow the player evenly when the player is walking on a terrain
zeno60
Posts: 342
Joined: Sun May 21, 2006 2:48 am
Location: NC, USA
Contact:

Post by zeno60 »

Simple question, simple answer. Export the terrain to your desired format (.x, .my3d, .3ds, etc.) then check the tutorials on how to import said terrain using the getMesh() method. Coming straight from Tutorial 1:

Code: Select all

scene::IAnimatedMesh* mesh = smgr->getMesh("20kdm2.bsp");
scene::ISceneNode* node = 0;

if (mesh)
    node = smgr->addOctTreeSceneNode(mesh->getMesh(0));
For the 3d person camera, search (click "search" on the top menu) and put in "3rd AND person AND camera" in the text box then hit search. The top results will lead you in the right direction.
Post Reply