PDA

View Full Version : Labelling Objects Visually



McWare
07-20-2004, 06:55 AM
Hi,
I'm building a network modelling application. It's basically a 3D graph with anywhere from 50 to 5000 edges and vertices.

I need to figure out a way to give each vertex and edge a named label, and each label must be 2d flat and legible no matter what angle the model is at, since the model can be rotated and viewed at different angles.

I have no idea where to start, any suggestions would be welcome.

Also, please let me know if more clarification is needed.
Thanks

mikael_aronsson
07-20-2004, 12:35 PM
Hi !

Any bitmap font should do fine.

Mikael

gumby
07-20-2004, 12:52 PM
Project your vertices to screen-space, then draw the labels at these 2d locations.

Relic
07-21-2004, 02:35 AM
Originally posted by gumby:
Project your vertices to screen-space, then draw the labels at these 2d locations.That's what glRasterPos and bitmap fonts do.

McWare
07-21-2004, 04:21 AM
Thanks all,
I'll give it a try. Hopefully things won't get too cluttered.

Thanks again for the replies.