while(device->run())
{
driver->beginScene(true, true, SColor(255,100,101,140));
smgr->drawAll();
guienv->drawAll();
SMaterial mat;
mat.Thickness = 100;
mat.AntiAliasing=true;
mat.Lighting = false;
driver->setMaterial(mat);
driver->draw3DLine(core::vector3df(2.0,3.0,4.0),core::vector3df(2.0,3.0,8.0),video::SColor(255,0,0,255));
driver->endScene();
}
device->drop();
}
why the line cannot display(solved)
why the line cannot display(solved)
Last edited by liusa80 on Thu Jul 29, 2010 5:21 am, edited 1 time in total.
this will work as long as there are no other elements in the scene !!!
if you draw manually you'll have to set the tranformation matrix first:
if you draw manually you'll have to set the tranformation matrix first:
Code: Select all
matrix4 tmat;
driver->setTransform(ETS_WORLD, tmat);
driver->draw3DLine( ... );
while(!asleep) sheep++;
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java