[comp.sys.mac.programmer] Graf3D

mlab2@kuhub.cc.ukans.edu (11/26/90)

I found the said documentation of Graf3D from the MPW manual (don't recall
which one).  It was better than nothing, but only briefly discussed it.  I too
had the Boxes source from Turbo Pascal.  This helped to a degree as well, but
the boxes (actually it was called BoxSphere I believe - Boxes was a simpler
program on the disk) dealt with only a limited aspect of Graf3D.
Anyway, I was going to write the game 'Elite' (or a game similar to it) for the
Mac and so I spent many months delving into Graf3D and experimenting with it. 
It worked.  It had it's limitations and was slow (by fast-paced game standards)
and so I abandoned it.  Nonetheless, I have ammassed (sp?) some amount of
knowledge of the unit.  If anyone likes, I could post a sort of tutorial of
what I'VE found out about Graf3D (if I can recall it all).

Briefly, it's fairly straightforward.  New variable types like Point3D and
GrafPort3D are defined.  The procedures allow for simple point-to-point
wireframe drawing (MoveTo3D, LineTo3D).  My biggest hurdle was becoming
familiar with the Fixed type variables it uses for angles and distance.

john calhoun
:======:****************************************************************
: ==== :*                  **  And watching the stars go on at night, **
:  === :*   Soft Dorothy   **  I'd like to see just one of them die.. **
:  ==  :*                  *****************************************jc**
:.=....:****************************************************************

kleinow@caen.engin.umich.edu (leonard kleinow) (01/07/91)

Could someone please tell me about Graf3D?  The Graf3D.h file included with
MPW looks like it has just what I need for my current project.  Is Graf3D
documented anywhere?  Is it "supported" by Apple, or did it, like Macintalk 
and the Sound Driver, just "fade away"?  Will it support color at all?
 
Thanks,
 Leonard Kleinow
 root@warhol.art.umich.edu

rhutchin@BONNIE.ICS.UCI.EDU (01/07/91)

I think Graf3D was a real hot item maybe 5 years ago.  I found that the
best documentation on it is in Borland's Turbo Pascal.  There's even a
couple of samples in it too.  I personally have no connection with
Borland and even think they're wimps for abandoning the Mac.  Their
mediocre development tools work fine on PC systems, but just don't
cut it with the Mac.  As you can see, they should feel lucky to get
any plug from me.  But, they do have the best examples I've seen of
Graf3D.

I don't know if you can still buy Turbo Pascal for the Mac.  I do know
that Borland has stated that they aren't gonna update it ever again.
I'm sure you could at least find the manual if not the disks from any
veteran Mac programmer.

Richard B. Hutchings

jsorenso@thesis1.med.uth.tmc.edu (JEFFREY MARIUS SORENSON) (06/17/91)

    I've got the new MPW compatible headers for ThinkC now.  Included
is a header file called "Graf3D.h" and the corresponding library.  At
first I thought "This must be an extra that Symantec included just for fun
because there is no mention whatsoever of any 3D graphPorts in IM VI".
But then I read "Copyright Apple Computer" at the top of the header.
So it would appear that 3D GrafPorts (Port3D's) are indeed part of the
current version of QD.  Most of the functions are pretty self-explanatory
(such as LineTo3D(Fixed dx, Fixed dy, Fixed dz), and Pitch(Fixed xAngle))
but I can't seem to figure out how the Port3D environments should be
properly set up (not documented in IM VI).  There is no mention of 3D
windows in the new windows.h file (I was hoping for something along the
lines of New3DWindow since the last time the GrafPtr was "extented"
(introduction of the CGrafPtr) there were corresponding functions for
creating windows for such ports (NewCWindow)).  Has anyone out there
used any of these new data types and toolbox (?) calls?  I would
appreciate any pointers to existing documentations (Tech Notes, etc -
I might even be willing to buy something from APDA, but that shouldn't
be necessary).

jsorenso@thesis1.med.uth.tmc.edu
-- 
-------------------------------------------------------------------------------
jsorenso@thesis1.med.uth.tmc.edu | "No matter where you go, there you are"
				 |				-BB
-------------------------------------------------------------------------------

ml27192@uxa.cso.uiuc.edu (Mark Lanett) (06/17/91)

jsorenso@thesis1.med.uth.tmc.edu (JEFFREY MARIUS SORENSON) writes:


>    I've got the new MPW compatible headers for ThinkC now.  Included
>is a header file called "Graf3D.h" and the corresponding library.  At

This seems to be an MPW bonus, not part of the Toolbox. The docs are in the
MPW documentation. I also believe it involves a separate library (i.e. it's
not part of Runtime.o or such).

--
//-----------------------------------------------------------------------------
Mark Lanett						mlanett@uiuc.edu
Software Tools Group, NCSA

gbrown@nntp-server.caltech.edu (Glenn Christopher Brown) (06/18/91)

jsorenso@thesis1.med.uth.tmc.edu (JEFFREY MARIUS SORENSON) writes:


>    I've got the new MPW compatible headers for ThinkC now.  Included
>is a header file called "Graf3D.h" and the corresponding library.  At

That header is ancient, dating back at least to the time of the mac plus.

--Glenn