Page 1 of 1

Raytracer

Posted: Sun Feb 21, 2010 5:11 am
by Hyppo
One of the posts about the raycaster reminded me about the basic raytracer I once made. The difference between a raycaster and a raytracer is that a raytracer uses a recursive function so It can easily make effects like relfections. The downside however is that this has a huge impact on the performance and is therefor not useable in realtime.

Here is an image of the spheres with one blue light, reflectivity and Anti-aliasing.
Image

Note that I haven't used any 3D rendering library and it only uses SDL for drawing.

ps.

For more of my work visit my channel: http://www.youtube.com/hyppostudios

Re: Raytracer

Posted: Sun Feb 21, 2010 8:30 am
by dandymcgee
That's pretty cool, thanks for posting.

Re: Raytracer

Posted: Sun Feb 21, 2010 7:42 pm
by RyanPridgeon
Hey, that's awesome!

So how powerful is it? Got any pics of it with more objects / materials on screen?

Re: Raytracer

Posted: Mon Feb 22, 2010 10:28 am
by Hyppo
Not really that powerful, but It's a start. I'm thinking of rewriting it because it can only display spheres, it's a fixed camera and I can't show textures. The only thing holding me back is the ray-object collision math. Do you happen to know any good sources?