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

raytracer part 2

Sign in to follow this  


so I've been working on the raytracer.. slowly! :/

I implemented triangles. The professor doesn't specify which side is the "front" so I just default to CW (clock wise) front, normal = (v1-v0) x (v2-v0 ). I.e. it's facing you if each point is clockwise oriented from the next one. Let's try a ASCII example:

v2 v1


Except for the triangle I now configure the scene from file! But I noticed a "bug" in my viewing. Guess I have to implement a proper camera. That's next!

Here's two screenies though.

Now to fix the camera! and after that .. hmm should I implement pigments or phong lighting after that? then reflections! *excited*
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