Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

RayTracing Tutorial Full (Simple)

Discussion in 'Made With Unity' started by Benproductions1, Apr 19, 2013.

  1. Benproductions1

    Benproductions1

    Joined:
    May 11, 2011
    Posts:
    63
    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:
    https://github.com/Benproductions1/Unity-Raytracer/blob/master/Tutorial (Simple).md

    Hope you enjoy it!
    Benproductions1 :D
     
  2. Luckymouse

    Luckymouse

    Joined:
    Jan 31, 2010
    Posts:
    484
    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?
     
  3. Benproductions1

    Benproductions1

    Joined:
    May 11, 2011
    Posts:
    63
    @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
     
  4. imaginaryhuman

    imaginaryhuman

    Joined:
    Mar 21, 2010
    Posts:
    5,834
    Does it run in a shader or is it all scripting?
     
  5. Benproductions1

    Benproductions1

    Joined:
    May 11, 2011
    Posts:
    63
    @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 :p

    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 :)
    Benproductions1