1) Change
Code: Select all
device = createDevice(EDT_OPENGL, dimension2d<s32>(1024, 768), 16, false, true, this);
to
device = createDevice(EDT_OPENGL, dimension2d<s32>(1024, 768), 16, false, true, false, this);
Code: Select all
NewtonBodySetFreezeTreshold(tmp->body, 1.0, 1.0, 1.0, 1.0);
to
NewtonBodySetFreezeTreshold(tmp->body, 1, 1, 1);
Code: Select all
tmp->node->setMaterialFlag(EMF_LIGHTING, false);
after
tmp->node->setMaterialTexture(0, driver->getTexture("data/crate.jpg"));