home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sgi
- Path: sparky!uunet!ukma!darwin.sura.net!sgiblab!sgigate!odin!koosh.asd.sgi.com!howardl
- From: howardl@koosh.asd.sgi.com (Howard Look)
- Subject: Re: GL hacks - Rotating text
- Message-ID: <1992Nov11.185314.11479@odin.corp.sgi.com>
- Sender: news@odin.corp.sgi.com (Net News)
- Nntp-Posting-Host: koosh.asd.sgi.com
- Reply-To: howardl@koosh.asd.sgi.com (Howard Look)
- Cc: howardl
- Organization: Silicon Graphics, Inc., Mountain View, CA, USA
- References: <BxIqvu.B17@usenet.ucs.indiana.edu> <s78h2fo@zola.esd.sgi.com>
- Date: Wed, 11 Nov 1992 18:53:14 GMT
- Lines: 64
-
- In article <s78h2fo@zola.esd.sgi.com>, cmarrin@fred.esd.sgi.com (Chris
- Marrin) writes:
- |>
- |> In article <BxIqvu.B17@usenet.ucs.indiana.edu>, "Mark E. Johnson"
- <maejohns@bronze.ucs.indiana.edu> writes:
- |> >
- |> > Suppose I wish to draw labeled cubes (similar to wooden blocks
- |> > with letters on their sides) and have them rotate all over the place.
- |> >
- |> > I know how to rotate things around, but am having a hard time
- |> > with the letters. I could figure out the coordinates of the
- |> > vertices of these letters and draw them each time - but this
- |> > leads to ugly results.
- |> >
- |> > Has anyone written code to do someting similar, say with the
- |> > fm calls? Is it as tedious as I think it will be? Any sample
- |> > code out there?
- |> >
- |>
- |> Use Inventor...
- |>
-
- (Oh, bless your heart, Chris.)
-
- Inventor can take any Adobe type-1 font and extrude it into three
- dimensions. The Text3 object behaves just like any other 3D object; it
- can be rotated, scaled, texture mapped, whatever.
-
- To address your specific example, here is a simple scene graph that
- looks like a wooden block. If you have loaded the inventor_eoe subsystem
- (which comes with 4.0.5) you can save this snippet to a file, then read
- it into /usr/sbin/SceneViewer.
-
- #Inventor V1.0 ascii
-
- Separator {
- Separator {
- Material {
- diffuseColor .6 .2 .1
- }
- Cube {
- }
- }
- Separator {
- Material {
- diffuseColor .2 .3 .5
- }
- Transform {
- translation 0 -.7 1.2
- scaleFactor .2 .2 .2
- }
- Text3 {
- string "A"
- justification CENTER
- }
- }
- }
-
- Writing an equivalent program using Inventor is very straightforward.
-
- Hope that gives you some ideas.
-
- Howard Look Silicon Graphics howardl@sgi.com (415) 390-1780
- ..__ One of these :) after being run over by one of these O-O
-