revelation wrote:Just a minor update. Texture format should work for ps3 version now.
Is this the Last noeisis plugin update for red dead redemption?
Code: Select all
RichVec3 position;
RichVec3 scale;
RichQuat rotation;
//dummy itself
RichVec3 min;
RichVec3 max;
Code: Select all
RichVec3 position, scale;
bs->ReadBytes(&position, sizeof(RichVec3));
bs->ReadBytes(&scale, sizeof(RichVec3));
quat_wxyz_t rotation;
bs->ReadBytes(&rotation, sizeof(quat_wxyz_t));
RichMat43 pos = RichMat43(RichVec3(1,0,0), RichVec3(0,1,0), RichVec3(0,0,1), position);
RichMat43 scal = RichMat43(RichVec3(scale.v[0],0,0), RichVec3(0,scale.v[1],0), RichVec3(0,0,scale.v[2]), RichVec3(0,0,0));
RichMat43 rot = rotation.ToQuat().ToMat43();
RichMat43 trans = pos*rot*scal;
rapi->rpgSetTransform(&trans.m);
Code: Select all
//4DS uses flipped X axis, we have to flip it back
RichMat43 flipX = RichMat43(RichVec3(-1,0,0), RichVec3(0,1,0), RichVec3(0,0,1), RichVec3(0,0,0));
//some code in between
RichMat43 trans = pos*rot*scal*flipX;
rapi->rpgSetTransform(&trans.m);
Code: Select all
rapi->rpgSetOption(RPGOPT_TRIWINDBACKWARD, true);