Questions whit a single node and several meshes [SOLVED]
Posted: Sun Apr 18, 2010 3:09 pm
Hi, all.
I have a node with two meshes:
I no understand good about the addAnimatedMeshSceneNode in the parameters 2 and 3, then mi question: is possible to refer to this parameters for example, for to set to the mesh "mesh_b.x" a setMaterialFlag(video::EMF_BACK_FACE_CULLING, false), and no affect to "mesh_a.x"??... or then how i could to do this?
I have read in other posts that for optimizations for render, the better option is set several meshes in a single node, but y need set some features in some meshes and not in other, in the same node.
Excuseme for this noob question and my noob english.
Thanks.
I have a node with two meshes:
Code: Select all
IAnimatedMeshSceneNode* stuff;
...
...
stuff = MyScene->addAnimatedMeshSceneNode("mesh_a.x", 0, 0, vector3df(-500, 0, 50), vector3df(500, 80, 20));
stuff = MyScene->addAnimatedMeshSceneNode("mesh_b.x", 0, 1, vector3df(-500, 0, 50), vector3df(1200, 80, 20));
...
I have read in other posts that for optimizations for render, the better option is set several meshes in a single node, but y need set some features in some meshes and not in other, in the same node.
Excuseme for this noob question and my noob english.
Thanks.