raytracer part 2

Published June 15, 2005
Advertisement
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*
0 likes 0 comments

Comments

Nobody has left a comment. You can be the first!
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Profile
Author
Advertisement
Advertisement