Hicks, Matt
unread,Oct 11, 2010, 8:29:48 PM10/11/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sgin...@googlegroups.com
Hey guys,
This is perhaps more a question for Lex, but figured others might have an opinion to, so I thought I'd share. :)
I've got nearly everything done with text support now and the only glaringly missing feature right now is text selection via mouse. It looks like everything is ready for me to use except I've run into a little snag. Text support horizontal and vertical alignment that causes the positioning to be shifted post matrix. What this means is that updating the bounding box makes mouse selection work fine as long as it's centered both vertically and horizontally, but if it's alignment any other way it is not properly detecting hits. You can test this by uncommenting line 16 in TestText to do right alignment and then clicking. The component registers clicks to the right of it and misses clicks that are on the left side of it.
My question is, how is the right way to support this? These values are set into VBO data when the text and wrapping information is generated so they are explicitly defined to positions locally after the matrix is loaded. Do we add an offset positioning in the bounding volume or is there a better way to go about it?
Any suggestions are welcome.