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

raytracer part 8

Sign in to follow this  


Had a test in the compiler course today. We're gonna pretend it never happen and just finish the raytracer! ;)

Except for the weird lighting, I now have weird refraction! It's like it's refracting too much :/ and I also got some pixel artifacts, which is odd for something that's calculated for each pixel X(

No pseudo code untill the stuff actually works! hehe gotta have to edit all my posts when this is done. Spiff it up a bit!


EDIT: I changed the way the background color is applied. Instead of starting with it, I only apply it to rays that don't intersect something. This is more correct sinc rays that endlessly (until max_depth is reached) reflect and/or refract never "touch" the background and shouldn't get the background color.
Sign in to follow this  


Recommended Comments

There are no comments to display.

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, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!