Jump to content
  • Advertisement
Sign in to follow this  
  • entries
    49
  • comments
    80
  • views
    39271

Raytracing

Sign in to follow this  
Rixter

373 views

So I've been working a bit on my ray tracer, so far it only works with spheres, but I did get diffuse lighting and shadows working:



And then just today:



I have everything being loaded from a file, that is the spheres, lights, render resolution, camera position, fov, and also the level of recursion for the reflection. Not only is most of this required for the assignment, but it makes testing (playing) much easier than recompiling everytime :).

So next steps are transparency, refraction, and triangles.
Sign in to follow this  


3 Comments


Recommended Comments

Thanks, right now since all it does is spheres the rendering time isn't very long, just a second or two on a pretty slow computer when I have lots of reflection bounces. I suspect that will go up a bunch once triangles are working. There's a few places I can optimize a bit more, but that may have to come later since I have a deadline :(.

Share this comment


Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!