RTT Layers

NoodlesOnMyBack

31-03-2011 07:54:51

Im trying to create a plane entity wich i can move/rotate/scale and apply an RTT layer on in.
I need to do this on the fly (simple quads), without pre-generated meshes.
I've tried the code below on the UnitTest_Layers project, and the texture shows OK, but i have no response from the mouse over the plane.

Ogre::Plane windowPlane(Ogre::Vector3::UNIT_Z, 0);
Ogre::MeshManager::getSingleton().createPlane("windowPlane",
Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME, windowPlane,
128,64,1,1,true,1,1,1,Ogre::Vector3::UNIT_Y);

Ogre::Entity* entity = getSceneManager()->createEntity("ControlPanel", "windowPlane");
entity->setMaterialName("PanelKeyboard");


For what i've seen, since my mesh has no submeshes maybe this is why it doesnt work?
Im a little confused how should i build my mesh.
Also, once i have this running, is it possible to scale the mesh on the fly and still have this working?