Re: Keeping an object's label on the screen
"Tom Plunket" <[email protected]>
| Newsgroups | gmane.games.devel.algorithms |
|---|---|
| Message-ID | <[email protected]> |
> I have to draw some billboard text over some shapes we've "painted" onto > our terrain via multitexturing. Normally this is easy enough - just > plop the label in an auto-rotated billboard and float it above the > center of the geometry. But I need to keep the label on screen at all > times if any part of the painted geometry is visible. I.e. if I have a > square painted on the terrain, but I can only see a small corner of it, > I still need to show the whole label. Draw the text if the object isn't culled. You know where you want the text drawn (if you were to draw onto the center of the object), and if you've got the text rect you can just move it so it's within the screen area you want to allow it to live in. -tom! -- ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ GDAlgorithms-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/gdalgorithms-list Archives: http://sourceforge.net/mailarchive/forum.php?forum_name=gdalgorithms-list