Thread: Raytracing and C

  1. #1
    Registered User
    Join Date
    Jan 2013
    Posts
    6

    Raytracing and C

    Hey guys! So I'm in my second semester in college learning C (Computer Science 102), and we're doing a raytracer. I'm having some difficulty understanding it all. I'm getting by, but it just seems like a huge step from 101. Should I be able to get raytracing easily, and is raytracing normally an easy thing? I feel like I'm behind because I don't understand it that well, at least right now. We're still in the beginning, but it's pretty confusing.

    Thanks guys!

  2. #2
    Programming Wraith GReaper's Avatar
    Join Date
    Apr 2009
    Location
    Greece
    Posts
    2,738
    Building a ray-tracer isn't that difficult. Building one that's fast, well that is!
    My implementation takes 10 minutes to render 100 polygons with 800x600 resolution...
    ( haven't added reflections yet )
    Devoted my life to programming...

  3. #3
    Algorithm Dissector iMalc's Avatar
    Join Date
    Dec 2005
    Location
    New Zealand
    Posts
    6,318
    I don't know what you find hard, the concept of how it works, the geometry and vector mathematics involved, or just how to turn the knowledge into a program.
    Really, if you approach the necessary things one at a time and learn them, then putting it all together is not too bad. In fact writing a raytracer is probably the most personally rewarding programming project that you can do. You can create some fantastic looking images with barely a few lines of code.

    Anyway, there is always something you can make a start on, and something that you can mention which you believe you know the least about. Give us something to go on and we'll happily help you. Right now about the most we can do is ask that you turn to your favourite search engine.
    My homepage
    Advice: Take only as directed - If symptoms persist, please see your debugger

    Linus Torvalds: "But it clearly is the only right way. The fact that everybody else does it some other way only means that they are wrong"

  4. #4
    Registered User
    Join Date
    Jan 2011
    Posts
    144
    Hi,
    I found this via google. I Just skimmed through it but it looks like a good tutorial
    A Ray Tracer - Part 1 | PurpleAlienPlanet

  5. #5
    Registered User
    Join Date
    Sep 2013
    Posts
    1
    Hi.

    Quote Originally Posted by bos1234 View Post
    Hi,
    I found this via google. I Just skimmed through it but it looks like a good tutorial
    A Ray Tracer - Part 1 | PurpleAlienPlanet
    Cool, you found my blog! Don't forget the second part of that tutorial: A Ray Tracer - Part 2 | PurpleAlienPlanet

    Ask if you have any questions!


    Johan.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Impressive raytracing demos
    By Magos in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 03-05-2004, 04:53 PM

Tags for this Thread