Imagination PowerVR SDK Blog

print3d class drawing text with rotation encountered problems


#1

Hi:
I want to use print3d class to draw text with rotation, but I encountered some problems, my pieces of code like as follow:

m_Print3D.Print3D(fPosX,fPosY,fScale,Colour,"123");
PVRTMat4 mModelView  = PVRTMat4::RotationZ(30*PVRT_PI/2);
 m_Print3D.SetModelView(mModelView);
 m_Print3D.Print3D(fPosX,fPosY,fScale,Colour,"456");

 In above code, I want to draw "123" without rotation, next draw "456" rotating 30 degrees with z coordinate, but the result is the text "123" also rotate. How can I achive my goal.

 thanks a lot.

#2

Hi,

you need to flush between the two Print3D calls.

bests,
Marton