RayTracing Tutorial Full (Simple)

Hi! there,

After reading through this (quite a while ago):
http://forum.unity3d.com/threads/14980-Raytracing-tutorial-part-1

And, having created my own Raytracer in Unity:
https://github.com/Benproductions1/Unity-Raytracer

I decided I just wanted to make my own Tutorial on how to create a Raytraced renderer in Unity.
It’s quite simple and quite short, but I hope you enjoy it non the less:

Hope you enjoy it!
Benproductions1 :smile:

Thanks for the Tutorial. I had try but after I attached the RTRenderer.js to the camera, then click play, then unity editor just freezed up.
I’m using 4.1.2f1 pro on my macbook. am I missing something?

Do you have any webplayer demo?

@Luckymouse
I can only help you if you give me some more information. What part of the tutorial are you at? Does your code match that at the end of each chapter?
Does Unity freeze and die, or does it just take a really long time to render (if so just lower the resolution and/or make the game tab smaller)

I do not have a webplayer, but since all it is is just some code, I find no need for it.

Hope this helps,
Benproductions1

Does it run in a shader or is it all scripting?

@imaginaryhuman
It’s all scripting, the idea is to make it easy to understand for people who aren’t exactly the best at scripting,
so doing it in shaders would just confuse the majority of people anyway :stuck_out_tongue:

If you want to take a look at the more advanced ray-tracer I made, it’s in the same repository.

Feel free to take what you want :slight_smile:
Benproductions1