print3d class drawing text with rotation encountered problems

This topic contains 1 reply, has 2 voices, and was last updated by  martontamas 6 months, 3 weeks ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #55541

    lin
    Member

    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.

    #55543

    Hi,

    you need to flush between the two Print3D calls.

    bests,
    Marton

Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.