c++ - FTGL 3D Text issues -


i working on engine involves creating 3d objects such boxes , spheres. next task create 3d text inside object. using visual studio 2012, opengl, qt, freetype2, , ftgl in c++ on windows 7 computer.

i have been able import fine , things render, not way like. if create box, text jumps box created. if create one, jumps that. if move camera, jumps center of scene. on top of that, letters in string appear right on top of each other , cannot position them.

what want text @ whatever 3d location tell , stay on screen (so have multiple strings rendering) , letters able make words. have tried using glrasterpos3f move still stays latched onto whatever object is. have tried lot decent result keep running same thing. please give me idea of problem be. here sample of how rendering give example:

glpushmatrix(); ftextrudefont* font = new ftextrudefont("arial.ttf"); font->depth(.5); font->facesize(10); glrasterpos3f(10,10,10); font->render("text"); glpopmatrix(); 


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -