
What sort of polycount is this engine capable of handling for main characters in games of a 1st person shooter type? Or perhaps even better, what is the functional range (from lowest to highest)?
Code: Select all
// disable mouse cursor
device->getCursorControl()->setVisible(false);
// add billboard
scene::IBillboardSceneNode * bill = smgr->addBillboardSceneNode();
bill->setMaterialType(video::EMT_TRANSPARENT_ADD_COLOR );
bill->setMaterialTexture(0, driver->getTexture("media/textures/particle.bmp"));
bill->setMaterialFlag(video::EMF_LIGHTING, false);
bill->setSize(core::dimension2d<f32>(20.0f, 20.0f));
Code: Select all
core::vector3df intersection;
core::triangle3df tri;
//!get a ray from the current mouse position
ray = smgr->getSceneCollisionManager()->getRayFromScreenCoordinates(device->getCursorControl()->getPosition());
if (smgr->getSceneCollisionManager()->getCollisionPoint(ray, selector, intersection, tri)){
bill->setPosition(intersection);
lastCursorPosition = core::vector3df(intersection.X,0,intersection.Z);//ignore the y coord
}