1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-18 13:12:50 +00:00

Turning off hardware skinning2

This commit is contained in:
Jason Hooks 2012-01-04 20:30:06 -05:00
parent 1d2e77d947
commit 45c57721ff
3 changed files with 5 additions and 4 deletions

View File

@ -412,8 +412,8 @@ namespace MWRender{
bone->setOrientation(r);
if(iter == transformations->begin()){
trans = bone->_getDerivedPosition();
rotate = bone->_getDerivedOrientation();
trans = bone->getPosition();
rotate = bone->getOrientation();
}
skel->getManualBonesDirty();
skel->_updateTransforms();

View File

@ -266,7 +266,7 @@ void NpcAnimation::runAnimation(float timepassed){
Ogre::Quaternion boneQuat = rotate;
Ogre::Vector3 boneTrans = trans;
mEnvironment.mWorld->setObjectPhysicsPosition(insert->getName(), boneTrans + insert->getPosition());
mEnvironment.mWorld->setObjectPhysicsRotation(insert->getName(), boneQuat * insert->getOrientation());
//mEnvironment.mWorld->setObjectPhysicsRotation(insert->getName(), boneQuat * insert->getOrientation());
}*/
// handleAnimationTransforms(base);

View File

@ -217,6 +217,7 @@ void NIFLoader::createMaterial(const String &name,
// will automatically be loaded when needed. If not (such as for
// internal NIF textures that we might support later), we should
// already have inserted a manual loader for the texture.
/*
if(!mSkel.isNull()){
material->removeAllTechniques();
@ -224,7 +225,7 @@ void NIFLoader::createMaterial(const String &name,
//tech->setSchemeName("blahblah");
Pass* pass = tech->createPass();
pass->setVertexProgram("Ogre/HardwareSkinningFourWeights");
}
}*/
if (!texName.empty())
{
Pass *pass = material->getTechnique(0)->getPass(0);