mirror of
https://github.com/simtactics/niotso.git
synced 2025-10-14 14:11:28 -04:00
Mirrored rendering by libvitaboy Renderer
The next task is to add functionality to the far library to make it suitable for use directly by libvitaboy Renderer.# Please enter the commit message for your changes. Lines starting
This commit is contained in:
parent
6393955683
commit
bb904c4698
14 changed files with 116 additions and 75 deletions
|
@ -80,7 +80,7 @@ void ReadMotion(Animation_t& Animation, Motion_t& Motion){
|
|||
unsigned pos = VBFile.getpos();
|
||||
VBFile.seekto(Animation.TranslationsOffset + 12*Motion.FirstTranslation);
|
||||
for(unsigned i=0; i<Motion.FrameCount; i++){
|
||||
Motion.Translations[i].x = VBFile.readfloat();
|
||||
Motion.Translations[i].x = -VBFile.readfloat();
|
||||
Motion.Translations[i].y = VBFile.readfloat();
|
||||
Motion.Translations[i].z = VBFile.readfloat();
|
||||
}
|
||||
|
@ -94,8 +94,8 @@ void ReadMotion(Animation_t& Animation, Motion_t& Motion){
|
|||
VBFile.seekto(Animation.RotationsOffset + 16*Motion.FirstRotation);
|
||||
for(unsigned i=0; i<Motion.FrameCount; i++){
|
||||
Motion.Rotations[i].x = VBFile.readfloat();
|
||||
Motion.Rotations[i].y = VBFile.readfloat();
|
||||
Motion.Rotations[i].z = VBFile.readfloat();
|
||||
Motion.Rotations[i].y = -VBFile.readfloat();
|
||||
Motion.Rotations[i].z = -VBFile.readfloat();
|
||||
Motion.Rotations[i].w = VBFile.readfloat();
|
||||
}
|
||||
VBFile.seekto(pos);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue