Jump to content
  • Advertisement
Sign in to follow this  
stonerose2

A simple ray tracer

This topic is 4941 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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
Recent Flipcode Raytracer Tute

Thats pretty much the simplest raytracer you can get - and it builds as the series continues. I suggest reading that although if you have and its still too much then maybe you should do something simpler first. If you haven't then enjoy because I really liked it :D

Edit: Beaten!

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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!