How Raytracing Works

Categories: Articles, Featured
Written By: Chris

Chances are you have seen the cool effects of ray tracing. You may have even had your computer crash due to overuse of this advanced technique. But what exactly is going on when a ray trace solution is occurring? There is no doubt that ray tracing is a rendering technique used in 3d software that creates photorealistic images. The reason ray tracing creates such realistic images is because it literally calculates every ray of light and follows each and every one of them until they hit the camera. That means for each pixel, there is a calculation going on, tracing, the ray, hence the name, ray trace.

raytrace_teapot

What is a ray?

In 3d terms, a ray is a line that travels through 3 dimensions and collects data to be rendered. As this ray travels though space, it bounces off various objects, collecting more data as it reaches its end goal, the camera. It mimics how real light behaves as it hits our eyes. You can think of our eyes as the camera, and light as the rays. Because the amount of rays in any given scene is quite numerous, the ray tracing calculation is reversed to that of real light. Only light that hits the camera is calculated backwards to the light source.

Three Controls

Ray tracing has three main controls, depth, pixel count, and number of light sources. Essentially, the more you have of these, the longer the render time will be.

Ray tracing depth refers to the amount of times a ray is allowed to come in contact with various objects in the scene. Most programs have slightly different ways of calculating depth. Reflection rays bounce off objects in a manner that will reflect the environment. A shadow ray is calculated once a ray hits a target. A refraction ray is generated anytime an object is defined as transparent.

Since ray tracing works in a backwards manner, the amount of lights will directly effect the amount of times a ray must be trace. Therefore, if you have 10 lights in your scene, the amount of render time is going to much greater than if you had 2 or 3 lights in your scene.

In the same regards, the more objects you have in your scene, the higher the amount of pixels to be rendered will be. Since rays must traced through every pixel, you can see how having more objects would naturally take more time to render.

Like this post? Share it!
  • del.icio.us
  • Digg
  • Mixx
  • StumbleUpon
  • Technorati
  • TwitThis

55 Responses to “How Raytracing Works”

  1. mantas Says:

    very nice article u wrote here. the basicks of raytracing. i had some ideas on advanced raytracing, mightbe u would be interested to read, or drop your opinion, if u whish to do so.
    here u describe how the rays are being casted, and i have an alternative idea, on the matter. non raytracer has been writen to my knowelage which does what i whant it to do. i think u have lots of understanding in this so i would value your opinin.
    here is a link to my indea in wordpress:
    http://3dideas.wordpress.com
    well, good luck, and i keap an eye on your blog.

  2. Chris Says:

    I will definitely check it out. Thanks for stopping by! I will be doing a wiring parameters tutorial for animating a car. The y position value of a car will determine the rotation the tire.

  3. sai Says:

    hey it very good

  4. Jaclyn Marchell Says:

    I don’t agree with everything in this blog, but you do make some very good points. Im very interested in this subject matter and I myself do alot of research as well. Either way it was a well thoughtout and nice read so I figured I would leave you a comment. Feel free to check out my website sometime and let me know what you think.

  5. Raisa Mahung Says:

    This is a good summary, I was wondering if I could use this write-up on my website, I will link it back to your website though. If this is a problem please let me know and I will take it down right away.

  6. Hipolito M. Wiseman Says:

    EMF & Cell Radiation Is Damaging Your Brain and Skin.

  7. Antonina Spagnola Says:

    Very good site, where did you come up with the knowledge in this posting? Im glad I found it though, ill be checking back soon to see what other articles you have.

  8. ***Networking Magic for C-Level Relationship Selling « I Can Find You Says:

    [...] business work from home entrepreneurship This entry was posted on October 18th, 2010 at 11:00 am and is filed under Tips and Tricks. You [...]

  9. Team Official Says:

    Fantastic article! I’ll subscribe right now wth my feedreader software!…

  10. top christmas gifts for women 2010 Says:

    Hmm well, very interesting, thanks for the info.

  11. Templates Says:

    Howdy! I’m at work surfing around your blog from my new apple iphone! Just wanted to say I love reading through your blog and look forward to all your posts! Carry on the great work!

  12. Oklahoma Mortgages Says:

    Throughout the great pattern of things you’ll get an A+ for effort and hard work. Where you actually misplaced everybody was in the facts. You know, they say, details make or break the argument.. And it couldn’t be much more true right here. Having said that, let me inform you what did give good results. The text is very engaging and that is probably why I am making the effort to opine. I do not really make it a regular habit of doing that. Next, although I can certainly notice a jumps in logic you come up with, I am not really confident of how you appear to unite your details which inturn make the actual final result. For right now I will, no doubt yield to your point but hope in the foreseeable future you actually connect the facts better.

  13. Netbooks Review Says:

    some times its a pain in the ass to read what people wrote but this website is very user pleasant! .

  14. Christmas Gifts Says:

    Great article helps with my decision process saves me more time to actually get other things done. I finally know what I want to do.

  15. gps navigation Says:

    When I originally commented I clicked the “Notify me when new comments are added” checkbox and now each time a comment is added I get four emails with the same comment. Is there any way you can remove me from that service? Thanks a lot!

  16. retete culinare Says:

    Hi there this is somewhat of off topic but I was wanting to know if blogs use WYSIWYG editors or if you have to manually code with HTML. I’m starting a blog soon but have no coding skills so I wanted to get guidance from someone with experience. Any help would be enormously appreciated!

  17. embark tents Says:

    Hey there just wanted to give you a quick heads up and let you know a few of the pictures aren’t loading correctly. I’m not sure why but I think its a linking issue. I’ve tried it in two different browsers and both show the same outcome.

  18. Lance Deacon Says:

    I know this if off topic but I’m looking into starting my own weblog and was wondering what all is needed to get set up? I’m assuming having a blog like yours would cost a pretty penny? I’m not very web savvy so I’m not 100% certain. Any tips or advice would be greatly appreciated. Thank you

  19. Buy propofol Says:

    Hi there just wanted to give you a quick heads up. The words in your post seem to be running off the screen in Internet explorer. I’m not sure if this is a format issue or something to do with web browser compatibility but I thought I’d post to let you know. The design look great though! Hope you get the issue solved soon. Thanks

  20. colothin Says:

    Good day! I know this is kinda off topic nevertheless I’d figured I’d ask. Would you be interested in exchanging links or maybe guest writing a blog article or vice-versa? My website covers a lot of the same topics as yours and I believe we could greatly benefit from each other. If you might be interested feel free to send me an e-mail. I look forward to hearing from you! Wonderful blog by the way!

  21. farmville cheat codes farmville secrets Says:

    Hello just wanted to give you a quick heads up and let you know a few of the pictures aren’t loading correctly. I’m not sure why but I think its a linking issue. I’ve tried it in two different web browsers and both show the same outcome.

  22. Elmer Haustein Says:

    Via my examination, shopping for electronic products online can for sure be expensive, yet there are some principles that you can use to acquire the best offers. There are constantly ways to find discount promotions that could help make one to come across the best electronics products at the cheapest prices. Good blog post.

  23. paleo Says:

    Hi there are using Wordpress for your site platform? I’m new to the blog world but I’m trying to get started and set up my own. Do you require any coding knowledge to make your own blog? Any help would be really appreciated!

  24. Seoserve Live Backlink Says:

    Hello! I’ve been following your website for a long time now and finally got the bravery to go ahead and give you a shout out from Humble Texas! Just wanted to mention keep up the fantastic work!

  25. semanax Says:

    Hello my family member! I want to say that this post is awesome, great written and include approximately all important infos. I’d like to look more posts like this .

  26. Poker Bonus Instantly Says:

    There is no professional body overseeing competence in the industry. Too many people have borrowed money against their father’s retirement account to fund a terrible implementation of a good idea.

  27. bad credit debt consolidation loans Says:

    Hey, you used to write wonderful, but the last few posts have been kinda boring… I miss your super writings. Past several posts are just a little out of track! come on!

  28. mac games Says:

    Greetings! I’ve been following your site for a long time now and finally got the courage to go ahead and give you a shout out from New Caney Tx! Just wanted to say keep up the excellent job!

  29. womens watches Says:

    http://www.addwatches.net Rolex Replica watches

  30. snowboard size chart Says:

    Heya i am for the first time here. I found this board and I to find It truly useful & it helped me out a lot. I hope to present one thing again and aid others like you aided me.

  31. guru chans Says:

    I have some trouble to subscribe the rss feed, anyway Ive bookmarked this site, is very useful and full of informations.

  32. creed only Says:

    finally i found your post,i saw it yesterday but didn’t remember the addressthanks google

  33. bestroulette00 Says:

    Hello! I just wanted to ask if you ever have any trouble with hackers? My last blog (wordpress) was hacked and I ended up losing months of hard work due to no data backup. Do you have any methods to protect against hackers?

  34. deadndra day Says:

    There is perceptibly a bunch to know about this. I feel you made some good points in features also.

  35. Tyler Worcester Says:

    first time I read this website.. very interactive content .. thank you very much dude..!

  36. national honor society Says:

    I want to express some appreciation to this writer for bailing me out of this particular instance. Just after exploring through the world wide web and getting recommendations that were not productive, I assumed my life was over. Being alive without the presence of strategies to the problems you have resolved all through the report is a critical case, and ones which might have negatively damaged my entire career if I hadn’t come across the website. Your actual knowledge and kindness in playing with all the pieces was excellent. I am not sure what I would’ve done if I had not encountered such a thing like this. I can at this point relish my future. Thanks for your time so much for your high quality and amazing help. I won’t think twice to recommend your web page to anyone who should receive guidance on this issue.

  37. Kittie Mull Says:

    Very interesting post. Bookmarked.

  38. Liana Crumly Says:

    I do love the manner in which you have framed this concern plus it does give me personally some fodder for consideration. Nonetheless, through just what I have observed, I simply trust when the comments pack on that people remain on point and not start on a tirade involving some other news du jour. Yet, thank you for this exceptional point and whilst I do not necessarily agree with this in totality, I value your point of view.

  39. Nenita Zarzuela Says:

    My coder is trying to persuade me to move to .net from PHP. I have always disliked the idea because of the costs. But he’s tryiong none the less. I’ve been using Movable-type on various websites for about a year and am concerned about switching to another platform. I have heard great things about blogengine.net. Is there a way I can import all my wordpress posts into it? Any kind of help would be greatly appreciated!

  40. Bernardina Rexroad Says:

    I am curious to find out what blog platform you have been utilizing? I’m experiencing some small security issues with my latest website and I would like to find something more secure. Do you have any suggestions?

  41. Normand Szulimowski Says:

    Have you ever thought about including a little bit more than just your articles? I mean, what you say is important and all. However just imagine if you added some great visuals or videos to give your posts more, “pop”! Your content is excellent but with pics and video clips, this website could undeniably be one of the best in its field. Excellent blog!

  42. miu miu shoes Says:

    Pretty excellent blog post. I just stumbled upon your blog and wanted to say that I have genuinely savored reading your blog site posts. Any way I’ll be subscribing to your feed and I hope you article again soon.

  43. covert cash supremacy Says:

    You made some first rate factors there. I appeared on the web for the difficulty and located most individuals will associate with with your website.

  44. acneblemum Says:

    , , , ,

  45. Omar Yasseen Says:

    I’m not sure if it’s me but it looks like the page layout is a slightly skewed to the right. it might be my computer though. anyway awesome website. thank you Omar Yasseen

  46. attractions in panama Says:

    I loved up to you will receive carried out right here. The caricature is attractive, your authored material stylish. nonetheless, you command get got an impatience over that you would like be handing over the following. unwell surely come further previously again since exactly the similar just about very ceaselessly inside of case you defend this increase.

  47. langlang33 Says:

    This truly is an extremely amazing powerful resource that you’re offering and you simply provide it away cost-free!! I that can match discovering websites which often understand the particular valuation on supplying you having a superb learning resource for zero cost. We truly dearly loved examining this blog. Adore!

  48. tax relief Says:

    Great paintings! That is the type of information that should be shared across the internet. Disgrace on the seek engines for now not positioning this put up upper! Come on over and talk over with my web site . Thank you =)

  49. Curtis Gysin Says:

    I would like to thank for the efforts you may have place in producing this website. I’m hoping the same high-grade weblog publish from you in the upcoming as well. In fact your creative writing abilities has inspired me to obtain my own blog page now. Seriously the blogging is spreading its wings quickly. Your write up is often a excellent example of it.

  50. Uroda Says:

    I was looking through some of your articles on this website and I believe this web site is very informative ! Keep on posting .

  51. Black Classic Talls UGG Says:

    Gardinen on the web

  52. distressed military cap Says:

    That may be some inspirational stuff. Didn’t know that opinions may be this varied. Many thanks each of the enthusiasm to present such helpful tips here.

  53. earn money online tips Says:

    Simply desire to say your article is as surprising. The clearness on your publish is just nice and i could think you’re an expert on this subject. Well with your permission let me to clutch your feed to stay updated with drawing close post. Thanks 1,000,000 and please keep up the enjoyable work.

  54. Caralluma Actives Says:

    Making your very own Caralluma Burn weight loss plan isn’t that difficult by any means, all you need to do is to investigate the web and you should absolutely receive the information which you will want. There are plenty of websites that would mention healthy and natural approaches to slim down. Reading articles on these websites will really help you big time. Here’s an example of things to include in an all natural weight loss plan; first of all you have to make sure you are receiving enough minerals and vitamins in your diet from nutrient-dense foods like fruits, vegetables, lean meats, oily fish, oats, beans, nuts and seeds, and get away from wasting your daily calorie allowance on “empty-calorie-foods” which contain calories but no nutrition, like regular sodas, alcohol, sweets and candy.

  55. Android Applications Says:

    Wonderful goods from you, man. How Raytracing Works | 3D Rockstar I have understand your stuff previous to and you’re just extremely magnificent. I actually like what you’ve acquired here, certainly like what you are saying and the way in which you say it. You make it entertaining and you still care for to keep it smart. I can’t wait to read much more from you. This is really a great How Raytracing Works | 3D Rockstar informations.

Leave a Reply

Featured & Popular Articles