Commit 2ea75542 authored by cutealien's avatar cutealien

Fix time for animated model in anti-aliasing test (we should kick out...

Fix time for animated model in anti-aliasing test (we should kick out animations from such tests completely!). Results still not as in reference image, but model is anti-aliased. Lines not anti-aliased at value 2 (starts around 10 here). I suspect that's too much driver dependent. Increased requiredMatch to 99.4 as animation might have been reason for low test-value - decrease again if it still fails on other system and is really OK.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4182 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 8c14eebb
......@@ -51,13 +51,14 @@ static bool testLineRendering(video::E_DRIVER_TYPE type)
smgr->addCameraSceneNode(0, core::vector3df(0,30,-40), core::vector3df(0,5,0));
device->getTimer()->setTime(0); // scene has animations and current scene seems to be saved at that time
driver->beginScene(true, true, video::SColor(255,100,101,140));
smgr->drawAll();
driver->draw3DBox(node->getBoundingBox(), video::SColor(0,255,0,0));
driver->draw2DLine(core::position2di(10,10), core::position2di(100,100), video::SColor(255,0,0,0));
driver->endScene();
bool result = takeScreenshotAndCompareAgainstReference(driver, "-lineAntiAliasing.png", 99.17f );
bool result = takeScreenshotAndCompareAgainstReference(driver, "-lineAntiAliasing.png", 99.4f );
device->closeDevice();
device->run();
......
Tests finished. 1 test of 1 passed.
Compiled as DEBUG
Test suite pass at GMT Tue Jun 5 15:22:10 2012
Tests finished. 1 test of 1 passed.
Compiled as DEBUG
Test suite pass at GMT Tue Jun 05 19:06:55 2012
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment