Viewing entries in
ray tracer

Advanced Ray Tracer: Speedy Bunnie

Comment

Advanced Ray Tracer: Speedy Bunnie

My ray tracer can now load .ply models and uses kd-trees (TA-B traversal) for acceleration. I used the high res model of the Standford Bunny which has around 69,000 triangles. Without any form of acceleration, the render times are over 1 hour for the basic ray tracer.

Comment

Comment

Ray Tracer: Reflection

The next step in the ray tracer was to add reflection. The following scene was rendered using these rules:* Make the "back" sphere reflective (kr ≠ 0.0)

Comment

1 Comment

Ray Tracer: Procedural Shading

The goal for the next step of my ray tracer was to recreate the checkered floor procedurally.

Below is the same image with super sampling of n=3:

As a bonus, I created a second procedural texture by using a combination of sqrt and modulus to created curved purple and blue stripes.

Below is the same image with super sampling of n=3:

1 Comment

Comment

Ray Tracer: Basic Shading

Below are the results of my ray tracer with phong shading implemented. There is a white point light located at (0.1, 4.7, 0.0). PhongNoSS

The same image with super sampling n=3 phong

As an extra, I added multiple lights. Below is the image rendered with the original white light, a red light at (2, 5, -2), and a blue light at (-3, 2, 0).

multipleLightsNoSS

The same image with super sampling n=3 multipleLights

Comment

1 Comment

Ray Tracer: Camera modeling

Below is the result of the basic casting. I adjusted some of the values of my previous assignment, but otherwise they are very similar. raytracer2

As an extra, below is an image rendered with super sampling:

raytracer2ss

1 Comment

Comment

Ray Tracer: Setting the Scene

The final goal of the ray tracer will be to reproduce the image below.  In this first step, the object parameters are estimated. sturner-small

Original Turner Whitted Image

settingthescene

Object Positions done in C++ and OpenGL

Initial Values:

Back Sphere Position: ( 1.0, 0.05, 3.65 ) Size: 1.0

Front Sphere Position: ( -0.15, .9, 0.8 ) Size: 1.0

Floor Position: ( -1.25, 0.0, 20.0 ) ( 4.6, 0.0, 20.0 ) ( 4.6, 0.0, 0.0 ) ( -1.25, 0.0, 0.0 )

Light Position: ( 1.0, 5.0, -1.0 )

Camera Position: ( 0.0, 1.0, -1.0 ) Camera Lookat: ( 0.0, 0.0, 20.0 ) Camera Orientation: ( 0.0, 1.0, 0.0 )

Comment