Game Development Community

rotating skybox

by yong1pop · in Torque 3D Beginner · 03/10/2010 (7:02 pm) · 4 replies

hi,erveryone
I want know how to rotate skybox in T3D, I only know that there is a function(_renderObject). What should do in this function. my code like follows:
EulerF rot;
	   rot.x = 0;
	   rot.y = 0;
	   rot.z = mRotatingAng;
	   mRotatingAng += 0.5f;

	   if (mRotatingAng > TWOPI)
	   {
		   mRotatingAng = 0;
	   }

	   QuatF rotQ(rot);
	   AngAxisF aa;
	   aa.set(rotQ);

	   aa.setMatrix(&mat);
	   mat.setColumn(3,pos);

	   sgData.objTrans = mat;

	   mMatrixSet->restoreSceneViewProjection();
	   mMatrixSet->setWorld( mat );
but it dose not work right. so I want know where is wrong in my code? Thanx in advance.

#1
03/11/2010 (10:19 pm)
anyone don't know
#2
03/12/2010 (2:47 am)
I think your team already posted the question on the private forum; and might get answer here as your profile does not list T3D.
#3
03/12/2010 (9:37 am)
you shouldn't even have access to the source code without a proper license
#4
03/14/2010 (6:38 pm)
yes, my company have this license. but I want know how to do this.