fritzz@net1.UCSD.EDU (Friedrich Knauss) (07/26/86)
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)