Fixes the mesh mirroring - not sure if it's right now, but looks better
This commit is contained in:
parent
f84ad0539d
commit
0bea841dd1
@ -211,7 +211,7 @@ if(M2Vertices.size()>0)
|
||||
|
||||
for(u32 i=0;i<M2MVertices.size();i++)
|
||||
{
|
||||
M2Vertices.push_back(video::S3DVertex(M2MVertices[i].pos,M2MVertices[i].normal, video::SColor(255,100,100,100),M2MVertices[i].texcoords));
|
||||
M2Vertices.push_back(video::S3DVertex(core::vector3df(M2MVertices[i].pos.X,-M2MVertices[i].pos.Y,M2MVertices[i].pos.Z),core::vector3df(M2MVertices[i].normal.X,-M2MVertices[i].normal.Y,M2MVertices[i].normal.Z), video::SColor(255,100,100,100),M2MVertices[i].texcoords));
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -72,7 +72,7 @@ void DrawObject::_Init(void)
|
||||
//cube->getMaterial(0).setFlag(video::EMF_FOG_ENABLE, true);
|
||||
|
||||
text=_smgr->addTextSceneNode(_guienv->getBuiltInFont(), L"TestText" , irr::video::SColor(255,255,255,255),cube, irr::core::vector3df(0,5,0));
|
||||
if(_obj->IsPlayer())
|
||||
if(_obj->IsPlayer())
|
||||
{
|
||||
text->setTextColor(irr::video::SColor(255,255,0,0));
|
||||
}
|
||||
@ -80,7 +80,7 @@ void DrawObject::_Init(void)
|
||||
{
|
||||
text->setTextColor(irr::video::SColor(255,0,0,255));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
DEBUG(logdebug("initialize DrawObject 0x%X obj: 0x%X "I64FMT,this,_obj,_obj->GetGUID()))
|
||||
|
||||
|
||||
@ -303,7 +303,7 @@ void SceneWorld::UpdateTerrain(void)
|
||||
if(doodad)
|
||||
{
|
||||
doodad->setPosition(core::vector3df(-d->x, d->z, -d->y));
|
||||
doodad->setRotation(core::vector3df(270+d->ox, -d->oy-90, -d->oz)); // +270 solves M2 models lying on the side
|
||||
doodad->setRotation(core::vector3df(270-d->ox, -d->oy-90, -d->oz)); // +270 solves M2 models lying on the side
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user