Imagination PowerVR SDK Blog

CPVRTPrint3D


#1

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


#2

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


#3

Is it possible to use TrueType Fonts with CPVRTPrint3D?

Regards,
JQ


#4

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.