bart@amiga.UUCP (02/27/86)
< eat this line... please! > to: amiga programmers with lattice3.03 and kickstart1.1 i have released c language source code to the amiga3d demonstration program (which has been tested to compile, link, load, and run using amiga v1.1 software and the lattice 3.03 "c" development disk) to net.sources ... this program is a real-time hidden-surface object-oriented three-dimensional polygon rendering routine with moveable camera viewpoint. it was developed by me in my "free time" and does not currently include object-to-object sorting. one modified version has already been produced which displays stereoscopic images in red-green format on a standard amiga display. THIS CODE CAN BE FOUND UNDER: net.sources THERE ARE FOUR (4) FILES, TOTALLING ~105657 BYTES OF SOURCE CODE THIS SOURCE IS FOR NON-COMMERCIAL USE ONLY. NO WARRANTIES EITHER EXPRESS OR IMPLIED ARE MADE FOR THIS CODE EITHER BY MYSELF OR BY COMMODORE-AMIGA. the following are the makefiles i used on the amiga to compile and link amiga3d. /***************************************************************/ makeamiga3d /***************************************************************/ stack 20000 execute make 3dsubrs execute make amiga execute make amigaprocedures execute make camera execute make deallocate execute make debug execute make displayuniverse execute make init execute make joystick execute make objectallocate execute make startgfxdos execute make subdisplay execute make threed execute link amiga3d echo "make3d: DONE..." /***************************************************************/ make /***************************************************************/ .Key file ; Compile a C program Version 1.02 failat 65535 if not exists df1:examples/<file$t1>.c echo "File examples/<file$t1>.c does not exist. Try again." skip END endif copy df1:examples/<file$t1>.c ram:<file$t1>.c if not exists ram:<file$t1>.c echo "File <file$t1>.c not copied to ram: Error..." skip END endif echo "-- compiling <file$t1>..." df1:c/lc1 -oram: -idf1:include/ -idf1:include/lattice/ ram:<file$t1> df1:c/lc2 -oram: ram:<file$t1> delete ram:<file$t1>.c if not exists ram:<file$t1>.o echo "File ram:<file$t1>.o does not exist. Error..." skip END endif copy ram:<file$t1>.o df1:examples/<file$t1>.o if not exists df1:examples/<file$t1>.o echo "File ram:<file$t1>.o not copied to df1:examples/ skip END endif delete ram:<file$t1>.o LAB END /***************************************************************/ link /***************************************************************/ .Key file ; Compile a C program Version 1.02 failat 65535 echo "-- Linking <file$t1>..." df1:c/alink with <file$t1>.with to ram:<file$t1> if not exists ram:<file$t1> echo "Link failed: ERROR..." skip END endif if exists df1:<file$t1> delete df1:<file$t1> endif copy ram:<file$t1> df1:<file$t1> if not exists df1:<file$t1> echo "Could not copy ram:<file$t1> to df1:<files$t1>..." skip END endif echo "-- done linking '<file$t1>'. --" LAB END /***************************************************************/ have fun! yours, bart (Barry A. Whitebook)