Kevin Vance - A drop in the 10GB bucket

Entries | Archive | Friends | Friends' Friends | User Info

04:14 am

A drop in the 10GB bucket

Friday, December 16th, 2005
Previous Entry Share Next Entry
It's ballsSo LiveJournal is now like the GMail of photo hosting space? I'd like to see videos on but I wouldn't want to see the bandwidth bill :P

I spent a lot of time today scrubbing, spackling, and painting different walls in my newly repaired room. Can't wait to get that thing done.

But I spent the rest of the day boning up on my geometry, and finally taking care of the fact that I have a B.S. in computer science and have never written a raytracer. Shameful, I know! Anyway, I did the entire thing in python using the standard math library. Wikipedia was my textbook :) So I'm now confident that I actually know all the 3D math I should know. Also, it's the slowest thing you've ever seen. It took like ten minutes to render this 512x512 image on one 1600MHz AMD CPU. I probably should have used numpy or something.

But look, shiny! It does Lambertian shading, reflection, and shadows for planes and spheres. Oh, and some quick antialiasing because I hate jaggies so much that I'll happily shoot five times the rays to reduce them.

I'm actually kind of glad it's so slow, because it's killing my desire to keep adding stuff to it. Still, I doubt I'll get through tomorrow without specular highlights and refraction.

Current Mood accomplished
Link )Reply )

[User Picture]From: brad
2005-12-16 09:20 am (UTC) (same thing) both accept video uploads, and serve them back. No transcoding or streaming or anything fancy.

We do have video thumbnailing, but it's currently disabled until we sandbox it in its own firewalled-off Xen VM. (who knows what's in all those binary-only 32-bit x86 codec DLLs... and how easy it might be to make corrupt video files to own our network.....)
(Reply) (Thread)
[User Picture]From: kvance
2005-12-16 09:33 am (UTC)
Oh, sweet! No fancy is good.. videos are for a downloadin, not for a streamin.
(Reply) (Parent) (Thread)
[User Picture]From: wikle
2005-12-16 07:04 pm (UTC)
Hey those balls are not sized correctly to what % the human eye can detect! What a rip off...

(Reply) (Thread)
(Deleted comment)
[User Picture]From: kvance
2005-12-18 02:25 am (UTC)
The nuts and bolts operations I already knew from my university math classes. But for a simple raytracer, the only operations you have to know are the dot product and the cross product. This page has a great overview of those and it has derivations for the intersection of a line with a sphere and a plane (convenient for raytracing!) On Wikipedia, I found the Optics section and the 3D Computer Graphics section to be of help. There are articles on phong shading, diffuse reflection, etc.
(Reply) (Parent) (Thread)