[comp.sys.mac] Graf3D and Color???

riley@beowulf.ucsd.edu (Chris Riley) (04/05/89)

Does anyone know if the graf3d library supports color on color machines?
I am trying to write a program that uses the routines to display a 3d
view of a room (OK so far), and was thinking it would be nice to have
the walls etc be in other colors (I don't have to worry about this yet
on my Mac+, but I want to plan ahead).

I've checked in the MPW docs and Inside Mac, but haven't found any mention
of whether or not cgrafports and the like can be used with the graf3d lib.
Does anyone know anything about this? (and is it even a problem?)

Thanks for any help or pointers

Chris
riley@cs.ucsd.edu
-------------------------------------------------------------------
"A government which robs Peter to pay Paul can always depend on the
support of Paul." --George Bernard Shaw
-------------------------------------------------------------------
Chris Riley
riley@cs.ucsd.edu

oster@dewey.soe.berkeley.edu (David Phillip Oster) (04/06/89)

In article <6207@sdcsvax.UCSD.Edu> riley@beowulf.UCSD.EDU (Chris Riley) writes:
>Does anyone know if the graf3d library supports color on color machines?
The Graf3d library just does the math to support LineTo3() and MoveTo3():
it runs 3-d points through a viewing transform and generates appropriate
LineTo() and MoveTo() commands.  If you've made thePort be a color port,
and set the forecolor and backcolor appropriately, it will draw in color.

I submitted source for drawing "the teapot" on the mac, (3d B-splines!) to
Mactutor over a year ago. If my pixmap CopyBits()ing code posting goes
through, I'll post that program also.