Simple Ray Tracer using openGL

Posted on 2006-04-06
Last Modified: 2013-12-26
I am looking for code to a simple ray tracer.  I am not worried about shadow and reflections, I just want to draw a simple sphere.  From there I will research how to add the shadows and reflections.  Just needing a start.
Question by:Jaziar
    LVL 2

    Assisted Solution

    Haven't looked into this in depth but it looks like it might help you out:

    LVL 17

    Accepted Solution

    At what level do you want to do raytracing?  I ask since you specify OpenGL, and normally raytracing wouldn't interact with hardware rendering...

    Here's some possible links, depending on your desires/needs: series on raytracing:

    Raytracing on Ge6-class cards using shaders:
    The research paper for the above project:

    An old friend of mine was a contributor to one of the first raytracing approaches using off-the-shelf GPUs.  A good read if you are looking in that direction:


    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    As game developers, we quickly learn that Artificial Intelligence (AI) doesn’t need to be so tough.  To reference Space Ghost: “Moltar, I have a giant brain that is able to reduce any complex machine into a simple yes or no answer. (http://www.youtu…
    Recently, in one of the tech-blogs I usually read, I saw a post about the best-selling video games through history. The first place in the list is for the classic, extremely addictive Tetris. Well, a long time ago, in a galaxy far far away, I was…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now