PlaceNode Question:how to align text while put it at the center of a image

classic Classic list List threaded Threaded
2 messages Options
S.W S.W
Reply | Threaded
Open this post in threaded view
|

PlaceNode Question:how to align text while put it at the center of a image

i use PlaceNode to show some information of my models. and i use the line style.getOrCreate<TextSymbol>()->alignment() = TextSymbol::ALIGN_CETER_CENTER to apply text in the center of the image. And it works fine.

however, i really want to make the text be aligned from left center [usually i use osgText::Text::LEFT_CENTER to add single text on my earth]  , while still at the center of the image of PlaceNode.

is there any method? i've tried pixelOffset,but it doesn't work well.
S.W S.W
Reply | Threaded
Open this post in threaded view
|

Re: PlaceNode Question:how to align text while put it at the center of a image

anyway, now i'm modifying the source code.