From mboxrd@z Thu Jan 1 00:00:00 1970 Mime-Version: 1.0 (Apple Message framework v752.3) Content-Transfer-Encoding: 7bit Message-Id: <217E2E30-ED7F-40A8-9C11-7D0689255996@mac.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> From: Pietro Gagliardi Date: Fri, 23 Nov 2007 22:43:50 -0500 Subject: [9fans] Attempt at making 3D graphics library Topicbox-Message-UUID: 09b185ac-ead3-11e9-9d60-3106f5b1d025 Hello. I realized that that last /usr/glenda/bin/rc/pull focused on a rewrite to the system libraries. 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). The test program doesn't seem to work right. It looks like the 2D coordinates are way off the charts - the x coordinates are between 500 and 600 for xyz=(5,5,5)! I wonder... This makes the line a stub in the center of a 1024x768 screen. Plus, the threadmain crashes on threadexitsall. What's going on?