CPVRTPrint3D

This topic contains 3 replies, has 2 voices, and was last updated by  Xmas 9 years, 5 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #29517

    jqweezy
    Member

    Hello,

    I am trying to rotate the text produced by Print3D(…) however I am unsuccessful. This is what I’m doing:

    glPushMatrix();
    glRotatef(90.0f, 0.0f, 0.0f, 1.0f);  //rotate 90 degrees about z-axis
    DrawQuad(0.0f, 0.0f, 1.0f, 1.0f, myTexture);  //draw square with texture
    m_Print3D.Print3D(0.0f, 0.0f, 1.0f, 0xff0000ff, “Hello World”);  //print “Hello World” in red text
    glPopMatrix();

    Now the square I draw with the texture rotates, however, the text (“Hello World”) does not. Any ideas?

    Regards,
    JQ

    #32076

    Xmas
    Member

    Hi,

    CPVRTPrint3D sets up its own transformation matrices, it therefore won’t be affected by matrix manipulations in your code. If you want to render rotated text you’ll have to change CPVRTPrint3D::APIRenderStates in ToolsOGLESPVRTPrint3DAPI.cpp.Xmas2008-04-24 11:26:48

    #32077

    jqweezy
    Member

    Is it possible to use TrueType Fonts with CPVRTPrint3D?

    Regards,
    JQ

    #32078

    Xmas
    Member

    Not directly. What you could do is replace the texture that Print3D uses with another one that contains a set of glyphs rendered with a different font.

    We are always looking at improving our SDK though and will take these suggestions into account.

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