Article View: net.graphics
Article #1348ray tracing source posted.
From: Friedrich Knauss
Date: Fri, 25 Jul 1986 21:59
Date: Fri, 25 Jul 1986 21:59
23 lines
1676 bytes
1676 bytes
Hi- I just posted a (working) ray tracing program to net.sources. It may have some oddities about it, one factor being that I did it from scratch, and never studied it before hand. It runs as fast or faster than any others I've seen around here. another factor influencing it's appearence is that I've never really done graphics work in the unix environment before, so I was unaware of any protocols as far as data file structure. Anyway- It is capable of doing any number of balls with various reflective and refractive properties. the data for these balls is stored in a file called bdata.i (sample included). there is also a gridded floor that can be played with by actually changing the code in places. (It's done at the end of shade()) It's output is in grayscale form- characters with values from 0-255. the file holds the data in columns, bottom to top, left to right. it shouldn't be to difficult to modify main() to get it to follow any protocals you might have. please send mail if you have questions or constructive comments. flames will be fed to my pet dragon. f (fritzz@net1 || .../sdcsvax/net1/fritzz)
Technical Details
Message-ID:
<198@net1.UCSD.EDU>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!seismo!caip!sri-spam!nike!ucbcad!ucbvax!sdcsvax!net1!fritzzShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!caip!sri-spam!nike!ucbcad!ucbvax!sdcsvax!net1!fritzz From: fritzz@net1.UCSD.EDU (Friedrich Knauss) Newsgroups: net.graphics Subject: ray tracing source posted. Message-ID: <198@net1.UCSD.EDU> Date: Fri, 25-Jul-86 17:59:01 EDT Article-I.D.: net1.198 Posted: Fri Jul 25 17:59:01 1986 Date-Received: Sat, 26-Jul-86 22:29:33 EDT Reply-To: fritzz@net1.UUCP (Friedrich Knauss) Organization: University of California, San Diego Lines: 23