Sign in to follow this  
  • entries
    94
  • comments
    127
  • views
    83175

raytracer part 2

Sign in to follow this  

118 views

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:

v0
v2 v1

*prettay!*

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  


0 Comments


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