I got my Raytracer going today and got the rays casting correctly and then wrote code for Sphere intersections and Cube intersections. Pretty sweet eh!! So after lots more work I will have something that has specular surfaces, with shadows and a much more 3D look. But this is pretty exciting already... man this rocks!!
Matt and Matt said I might need to fix my Camera coordinates, I think I was doing something wrong there so Matt explained it and I think I get it now so when I am done some more Fine Arts I'll get back to this and try to fix it. Awesome!!
![](http://photos1.blogger.com/hello/26/5380/200/a4firsttry.jpg)
Tracing the light rays from the wrong origin
![](http://photos1.blogger.com/hello/26/5380/200/a4zoomin.jpg)
Again, totally wrong!!
![](http://photos1.blogger.com/hello/26/5380/200/gettingCloser.jpg)
Wahoo!! Spheres!!!!
![](http://photos1.blogger.com/hello/26/5380/200/gettingCloser2.jpg)
More zoomed in
![](http://photos1.blogger.com/hello/26/5380/200/sphereintersection.jpg)
This is sortof right, I still need to sort out the camera position
![](http://photos1.blogger.com/hello/26/5380/200/boxintersection.jpg)
Wahoo!! Cubes!!!
No comments:
Post a Comment