Jump to content
  • 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

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!