376 | 377 | ||
---|---|---|---|
3997 | float Source[3]; | 3997 | float Source[3]; |
3998 | float Dest[3]; | 3998 | float Dest[3]; |
3999 | 3999 | ||
4000 | float p = 1.0f; | ||
4001 | float o = 1.0f; | ||
4002 | |||
4000 | extern void TranslationSetup(void) | 4003 | extern void TranslationSetup(void) |
4001 | { | 4004 | { |
4002 | char buf[100]; | 4005 | char buf[100]; |
4003 | VECTORCH v = Global_VDB_Ptr->VDB_World; | 4006 | VECTORCH v = Global_VDB_Ptr->VDB_World; |
4004 | extern int PredatorVisionChangeCounter; | 4007 | extern int PredatorVisionChangeCounter; |
4005 | float p = PredatorVisionChangeCounter / 65536.0f; | 4008 | /*float*/ p = PredatorVisionChangeCounter / 65536.0f; |
4006 | float o = 1.0f; | 4009 | /*float*/ o = 1.0f; |
4007 | p = 1.0f+p; | 4010 | p = 1.0f+p; |
4008 | 4011 | ||
4009 | if (NAUSEA_CHEATMODE) | 4012 | if (NAUSEA_CHEATMODE) |
... | ... | ||
4016 | } | 4019 | } |
4017 | 4020 | ||
4018 | // right vector | 4021 | // right vector |
4019 | ViewMatrix[0] = (float)(Global_VDB_Ptr->VDB_Mat.mat11)/65536.0f*o; | 4022 | ViewMatrix[0] = (float)(Global_VDB_Ptr->VDB_Mat.mat11)/65536.0f;//*o; |
4020 | ViewMatrix[1] = (float)(Global_VDB_Ptr->VDB_Mat.mat21)/65536.0f*o; | 4023 | ViewMatrix[1] = (float)(Global_VDB_Ptr->VDB_Mat.mat21)/65536.0f;//*o; |
4021 | ViewMatrix[2] = (float)(Global_VDB_Ptr->VDB_Mat.mat31)/65536.0f*o; | 4024 | ViewMatrix[2] = (float)(Global_VDB_Ptr->VDB_Mat.mat31)/65536.0f;//*o; |
4022 | 4025 | ||
4023 | // up vector | 4026 | // up vector |
4024 | ViewMatrix[4] = (float)(Global_VDB_Ptr->VDB_Mat.mat12)/65536.0f*p; | 4027 | ViewMatrix[4] = (float)(Global_VDB_Ptr->VDB_Mat.mat12)/65536.0f;//*p; |
4025 | ViewMatrix[5] = (float)(Global_VDB_Ptr->VDB_Mat.mat22)/65536.0f*p; | 4028 | ViewMatrix[5] = (float)(Global_VDB_Ptr->VDB_Mat.mat22)/65536.0f;//*p; |
4026 | ViewMatrix[6] = (float)(Global_VDB_Ptr->VDB_Mat.mat32)/65536.0f*p; | 4029 | ViewMatrix[6] = (float)(Global_VDB_Ptr->VDB_Mat.mat32)/65536.0f;//*p; |
4027 | 4030 | ||
4028 | // lookat vector | 4031 | // lookat vector |
4029 | ViewMatrix[8] = (float)(Global_VDB_Ptr->VDB_Mat.mat13)/65536.0f; | 4032 | ViewMatrix[8] = (float)(Global_VDB_Ptr->VDB_Mat.mat13)/65536.0f; |
... | ... | ||
4040 | ViewMatrix[7] = ((float)-v.vy)*p; | 4043 | ViewMatrix[7] = ((float)-v.vy)*p; |
4041 | ViewMatrix[11] = ((float)-v.vz)*CameraZoomScale; | 4044 | ViewMatrix[11] = ((float)-v.vz)*CameraZoomScale; |
4042 | #else | 4045 | #else |
4043 | ViewMatrix[3] = ((float)v.vx)*o; | 4046 | ViewMatrix[3] = ((float)v.vx);//*o; |
4044 | ViewMatrix[7] = ((float)v.vy)*p; | 4047 | ViewMatrix[7] = ((float)v.vy);//*p; |
4045 | ViewMatrix[11] = ((float)v.vz);; | 4048 | ViewMatrix[11] = ((float)v.vz); |
4046 | #endif | 4049 | #endif |
4047 | /* | 4050 | /* |
4048 | sprintf(buf, | 4051 | sprintf(buf, |
... | ... | ||
6178 | particle.ParticleID = PARTICLE_STAR; | 6181 | particle.ParticleID = PARTICLE_STAR; |
6179 | particle.Colour = StarArray[i].Colour; | 6182 | particle.Colour = StarArray[i].Colour; |
6180 | 6183 | ||
6181 | position.vx += Global_VDB_Ptr->VDB_World.vx; | 6184 | // position.vx += Global_VDB_Ptr->VDB_World.vx; |
6182 | position.vy += Global_VDB_Ptr->VDB_World.vy; | 6185 | // position.vy += Global_VDB_Ptr->VDB_World.vy; |
6183 | position.vz += Global_VDB_Ptr->VDB_World.vz; | 6186 | // position.vz += Global_VDB_Ptr->VDB_World.vz; |
6184 | 6187 | ||
6185 | TranslatePointIntoViewspace(&position); | 6188 | TranslatePointIntoViewspace(&position); |
6186 | 6189 |