Hi Eric, I don't have an ideas off the top of my head, I'd need to be able to reproduce the problem at my end and then dig through the code (its a few years since I wrote it..)
It could be that the tex coords arn't being computed correctly for the margin size. Robert. On 4/26/07, E. Wing <[EMAIL PROTECTED]> wrote:
Okay, another followup question/problem. I put the setGlyphImageMargin() calls into my real app, and now I'm seeing really messed up stuff. The letter sizes are coming out inconsistently and the artifacting isn't going away. The amount of mess-up seems to have some variation between the margin values I set (I tried between 3 and 20), when I make the calls in my code (and maybe how frequently), and maybe the font resolution I pick. In all cases, things look messed up, but the degree of the mess-up varied. Setting a value of 2 didn't seem to mess anything up which I guess is expected. I haven't been able to reproduce this in the osgtext example program. Attached is a screenshot of one of the worst cases. Notice that the '0' is smaller than the other numbers. And the characters in 'Label' are coming out in all different sizes. Furthermore, there are additional letters that are supposed to be in front of 'Label' which aren't showing up. And of course, the artifacting is still quite present. (I think I used a margin of 20 in this case.) I believe the numbers reuse the same Font pointer, but the Label text has their own font unique pointer. However, they all use arial.ttf so maybe the osgDB caching system makes them use the same thing. Any ideas on what's causing this? Are there additional rules I need to be aware of about calling setGlyphImageMargin() such as when it should be called, such as in relation to other methods such as setFont and setFontResolution, safety in recalling the method, and safety with shared fonts and font pointers. Thanks, Eric _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
