From mboxrd@z Thu Jan 1 00:00:00 1970 Mime-Version: 1.0 (Apple Message framework v752.3) In-Reply-To: References: Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <1DE3417C-9EB6-4128-8654-7664C14D5A4E@mac.com> Content-Transfer-Encoding: 7bit From: Pietro Gagliardi Subject: Re: [9fans] Attempt at making 3D graphics library Date: Sat, 24 Nov 2007 11:42:02 -0500 To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> Topicbox-Message-UUID: 0a3dee7a-ead3-11e9-9d60-3106f5b1d025 On Nov 24, 2007, at 2:11 AM, anyrhine@gmail.com wrote: >> I decided to start writing a library >> to convert 3D coordinates to 2D coordinates based on the data at >> http://www.shade.ca/getarticle.asp?i=11. You can find it at /n/ >> sources/contrib/pietro/3d.bundle. It contains: 3d.h (the header), >> 3d.c (the library itself), and 3dtest.c (a test program). > > did't check the bugs nor the article, so i hope i'm not entirely > off here. there is already libgeometry, described in matrix(2), > will do the job for you. it does what 3d engines do, except > clipping and rendering. This library has Point3, which is Point3D with an object w that is the denominator to (x,y,z) in the final point. I didn't need this, so I made it 1 in my local copy and changed all Point3Ds to Point3s. The 3D library now uses libgeometry and will have a box drawing facility the next update.