Soundbomber's picture

Is TextPrinter inherently slow?

A couple of questions:
1 - I recently added some text to my 3D views resulting in slower rendering. I only added a couple of words, but at high magnifications, the render speed was noticably slower. Is TextPrinter inherently slow?
2 - Can antilaliasing be used with TextPrinter?

[Edit] Is TextPrinter the only way to go for 2D text in a 3D environment?


Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
objarni's picture

Soundbomber: do you have any screenshots from your project?

Soundbomber's picture

Yes, what would you like to see?

objarni's picture

I typical screenshot with text as you want to use it.

Soundbomber's picture

Attached are screenshots of my 2D model (done in GDI+), this is how I want my text to look.
I may actually be on the cusp of something - I think I have managed to get my transparent overlay control to work without flicker.
I am now testing the position and scale of the text.

AttachmentSize
2D.PNG43.77 KB
2Dsmall.PNG8.29 KB
Soundbomber's picture

Spoke too soon.
Just happened to be flickering in sync so looked like it wasnt! GREAT!

Soundbomber's picture

To resolve my problem (which was never solved), I gave up altogether on trying to use text printer because the results where unsatisfactory. I would urge anyone attempting to use scalable high quality text in OpenGL to try and use another method rather than TextPrinter. I ended up using the "Hershey" vector font and while the quality isn't as high as I would have liked, it was in a different league to the TextPrinter.

the Fiddler's picture

The TextPrinter does not support scalable or 3d text. If you need either, you will have to use another method.

objarni's picture

@Soundbomber

Do you have any screenshots of the Hershey font in action?

Soundbomber's picture

Sure.

AttachmentSize
scrnsht1.PNG198.12 KB
scrnsht.PNG310.87 KB
objarni's picture

It's quite readable/clear! Great for you "engineering" app I guess :)