[comp.sys.amiga.graphics] 3-D Objects calculated

zane@ddsw1.MCS.COM (Sameer Parekh) (02/24/91)

	I don't own an Amiga, but I use one at school, so pardon
my ignorance.

	I am writing a program which will evaluate a mathematical
expression of the form: Z = AX + BY + C. (It doesn't have to be
only 1st order, it can be Z = AX^2 + BY^2 + C or it can even be
Z = X^Y. . .)
	Anyway, what this program would end up doing is creating
an array that is X x Y and each element in the array would be
a real number from A - B.
	What I would like to do is save this surface as a 3-D
object that can be loaded into a 3-D object rendering system.
Is this at all possible?  Thanks.

-- 
zane@ddsw1.MCS.COM

alex@bilver.uucp (Alex Matulich) (02/25/91)

In article <1991Feb24.020419.15694@ddsw1.MCS.COM> zane@ddsw1.MCS.COM (Sameer Parekh) writes:
>	I am writing a program which will evaluate a mathematical
>expression of the form: Z = AX + BY + C. (It doesn't have to be
>[...]
>	What I would like to do is save this surface as a 3-D
>object that can be loaded into a 3-D object rendering system.
>Is this at all possible?  Thanks.

Sure.  All you have to know is the 3-d object file format specification
for your choice of 3-d renedering software.  It may be more involved than
just saving x,y,z coordinates -- you will probably have to have some
extra line definitions to describe how the points are connected, and
also surface definitions to describe the surfaces bounded by the lines.

-- 
 _ |__  Alex Matulich   (alex@bilver.UUCP)
 /(+__>  Unicorn Research Corp, 4621 N Landmark Dr, Orlando, FL 32817
//| \     UUCP:  ...uunet!tarpit!bilver!alex
///__)     bitnet:  IN%"bilver!alex@uunet.uu.net"