editing a mesh

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
Melssj5
Posts: 27
Joined: Mon Sep 05, 2005 6:05 am

editing a mesh

Post by Melssj5 »

Hi, Its posible to edit the mesh of a custom node?

I want to do a plane and the make it act like a paper. a 3d model doesnt work because It need to be adaptable for diferent sizes and resolutions.
xtheagonyscenex
Posts: 131
Joined: Fri Jun 03, 2005 7:26 pm

Post by xtheagonyscenex »

yes you use smgr->getmeshmanipulator look in the doc folder of the irrlicht folder and seach it in the help
and you can also use
yourmeshnamehere->setmaterialflag->setposition(0.0f,0.0f,0.0f);
and Setmaterialflag->setScale(0.0f,0.0f,0.0f);
you should assign it to a user event like when they press a key it changes size for that you need to use a event reciever look in the tutorials not the first couple but after that the event reciever code in them you can just copy it. :D hope it helps
"Held in Your arms but too far from my heart." "These thoughts will carry me through the darkest nights...while your eyes rest in mine."
"How quickly I forget that this is meaningless."
Post Reply