S-E-D-A / SEDA-AR-TextAnnotation

We leverage an open-source algorithm, PTAM, to generate markerless augmented reality graphics that appears to be part of the user's environment. The graphics aid the user in understanding his/her environment.
Other
4 stars 1 forks source link

Put text on text surfaces #16

Closed ddetone closed 10 years ago

ddetone commented 10 years ago

Need to generate a glTexture to assign to the opengl square

ddetone commented 10 years ago

The plan:

First put a generic texture on the square, then use libpangocairo to generate a text raster to serve as input the texture.

ddetone commented 10 years ago

From what I gathered on forums and from my intuition, adding text to a texture would work, but the final graphic would be very sensitive to scaling and other transformations.

ddetone commented 10 years ago

I spent some time writing my own function to use the library freetype, when I stumbled across the libcvd documentation which has a drawText function!

ddetone commented 10 years ago

Added a text here: 80d84b67c6ecf8b88d5c204657421b1cc762ef7b And an optimization for it here: 06568c83b5681fa8736ac7ca4590eaa6598b1699