home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sgi
- Path: sparky!uunet!darwin.sura.net!mips!odin!blythe
- From: blythe@sgi.com (David Blythe)
- Subject: Re: Advice sought on displaying character strings.
- Message-ID: <1992Jul28.101207.1230@odin.corp.sgi.com>
- Keywords: font(), cmov(), and charstr()
- Sender: news@odin.corp.sgi.com (Net News)
- Nntp-Posting-Host: banshee.asd.sgi.com
- Organization: Silicon Graphics, Inc., Mountain View, CA
- References: <Bs1xGM.AB@ecf.toronto.edu>
- Date: Tue, 28 Jul 1992 10:12:07 GMT
- Lines: 33
-
- In article <Bs1xGM.AB@ecf.toronto.edu> xiaoy@ecf.toronto.edu (XIAO Yan) writes:
- >Advice sought for
- > Attaching character string labels to networks in GL.
- >
- >Right now we are using the triad:
- > font()
- > cmov()
- > charstr()
- >which has the advantage of maintaining good viewing angle and size
- >during translation and rotation, but has these problem:
- > 1). zbuffering does NOT work so front labels may be occluded by
- > back labels.
-
- Characters are properly zbuffered in the GL.
-
-
- > 2). sizes are constant.
- > 3). lables always orient left-right horizontally.
- >
- >We have not tried the so-called stroke fonts by actually drawing polygons,
- >and it is assumed the maintaining good viewing angle will be very hard.
-
- You can implment stroke fonts which essentially fix the above problems and
- then just make sure they are always drawn parallel to the viewing plane.
- To reduce clutter, you may want to back them with black rectangles so other
- characters won't interfere but it would probably look ugly. Try playing with
- the curve demo (accessible through the buttongly GL demo) which also uses
- depth cueing to dim the fonts further in the distance ...
-
- >
- >Anyone has a better solution, or knows good packages around?
-
- -db
-