Can Any Buddy Help me out

A forum to store posts deemed exceptionally wise and useful
Post Reply
OpenSource

Can Any Buddy Help me out

Post by OpenSource »

can any Buddy tell me how to implement door closing/Opening in Irrlicht(by door means Quake 2 map door)

and also i want to attach a gun with the Active Camera But failed can any buddy help me out...


Thanx
area51
Posts: 338
Joined: Thu Mar 18, 2004 10:20 pm
Location: UK
Contact:

Post by area51 »

You cant use Quake map doors. The easiest way is to add an IAnimatedMeshSceneNode and use it's animation frames, ie

Code: Select all

  node->setFrameLoop(0, 800);
  node->setAnimationSpeed(200);

Adding a weapon is done by the following code, added after the creation of a camera:

Code: Select all

   // load FPS weapon to Camera 
   irr::scene::IAnimatedMesh* m_pWeaponMesh = smgr->getMesh("gun.3ds"); 
   irr::scene::IAnimatedMeshSceneNode* m_pWeaponNode;  
   m_pWeaponNode = smgr->addAnimatedMeshSceneNode( m_pWeaponMesh, smgr->getActiveCamera(), -1); 
   m_pWeaponNode->setMaterialFlag(video::EMF_LIGHTING, false); 
   m_pWeaponNode->setMaterialTexture(0, driver->getTexture("gun.bmp")); 
   m_pWeaponNode->setScale(core::vector3df(1,1,1)); 
   m_pWeaponNode->setPosition(core::vector3df(10,-20, 0)); 
   m_pWeaponNode->setRotation(core::vector3df(10,180,-65));
________
Com?te
Last edited by area51 on Tue Feb 22, 2011 1:07 pm, edited 1 time in total.
OpenSource

RE:

Post by OpenSource »

Weapon thing worked thanx for that..

actually what i want to do with the doors that i want to open and close the doors present inside the quake map(which can be open) i don't know how to do this if u can understand what m sayin than do help me out...

1 problem solved 1 remaining

Thanx for ur reply
Rat
Posts: 51
Joined: Wed Mar 10, 2004 7:05 am

Post by Rat »

As far as I know with working with the engine, it doesnt support the Quake door entity. Since you can use collision detection with the engine, you should rip out the door, recreate it with a modeling program, and texture it the same way using the same image as was on it in the quake map, then rig it with a skeletal system, animated it with closed, opened, opening, and closing animations, then export it as .X put your code in and have the animations triggered when you collide with it.

I have done it back in version .06 this way. In fact I have stopped using quake maps just because of possiably infringing on the Quake EULA if I want to go commercial, and started using .X models with applied collision detection.
OpenSource

Post by OpenSource »

can u help me out in door stuff coz i don't know how to do it...
Guest

Post by Guest »

maybe ask him to write a whole game for you ? lol .... how about learning at least the basics of programming _before_ thinking about making a game?

otherwise you should name it : "copy&paste&ask_for_a_game" and not "make a game" actually :/
OpenSource

Post by OpenSource »

so u think m here just to copy paste the code of other people. don't u take help from books. Don't u copy the Hello World code for the first time. tell me... isn't that so. i didn't find this thing in books so i asked for help thats it and keep that in mind m not making any game...
OpenSource

Post by OpenSource »

Rat Can u send me a door animation model along with texture
Guest

Post by Guest »

LOL, like i said, ask him to make a whole game for you ...
OpenSource

Post by OpenSource »

but bro i want only a animated door model not the whole game
JPulham

got it, search the forums more

Post by JPulham »

the answers here:
http://irrlicht.sourceforge.net/phpBB2/ ... c&start=15
its a door and AI in one
Guest

Post by Guest »

stupid morron!!! this thread is already a zillion years old!!

ps: ahhh guest account!! i hate it! they do it on purpose! spammers!!!
Post Reply