Sign in to follow this  
stonerose2

A simple ray tracer

Recommended Posts

Im trying to learn about Ray Tracing and so far Im having no luck writing a simple ray tracer of my own. I learn best by tracing source code of other progrms but all the examples I find online are way too advanced for me to wrap my head around right now. I just need something really, really simple. Does anyone have c/c++ source code for a really simple ray tracer?

Share this post


Link to post
Share on other sites
Maybe you can try Jacco Biker's articles on flipcode. They are pretty simple, with no optimizations during first few articles. Later he adds more advanced stuff.
You can look here

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
http://www.icarusindie.com/DoItYourSelf/rtsr/realtime3d/lessons23-30.php

That's even more basic than the FlipCode tutorials. I also recommend checking out the later lessons which cover raycasting and making a simple Wolf3D clone.

It may be a better place to start before diving into raytracing.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this