Final Project Gallery

Linas Beresna | Ray Tracer | 27.03.2018

Torus

Torus Primitive

cylinder

Cylinder Primitive

cone

Cone Primitive

reflection

Reflection

Reflection implmented. The amount of light reflected can be controlled, here 100% is being reflected.

glossy_reflection

Glossy Reflection

Glossy reflection added, image used a coefficient of 500. Use with set_glossy({x,y}) where x is the glossy reflection exponent.

soft_shadows

Soft Shadows

Added spherical lights and then shot shadow rays to random points on that light and divided by the total number of rays shot.

refrac

Refraction

Refraction added. When creating the material the refraction index is also put in, a refraction index of 0 means that refraction is turned off.

glossy_refrac

Glossy Transmission

Glossy transmission added. Use with set_glossy({x,y}) where y is the glossy transmission exponent.

glossy_refrac

Texture Mapping

Implmented texture mapping so that one can add images to shapes. Use with set_picture(...) where the file path is placed in between the parentheses.

depth1

Depth of Field

Implemented depth of field using... . Focal distance of 8 and aperature of 0.4.

depth2

Depth of Field

Now the focal distance is set to 13 so that the middle balls are now visible.

depth3

Depth of Field

This is with the same distance of 13, but with the aperature set to 0.8, which causes the balls not in vision to be more blurry.

batman

Colour Scheme

Shoutout to the colour scheme I have been using: Gotham by whatyouhide.

Acceleration

Acceleration (Grid)

Abandoned due to lack of time.

Flags

More Texture Mapping

Texture mapping on a cone, flags are from Lithuania and the UK.

Final Scene

Final Scene

Final scene of an office. Here one can see glossy transmission in the cup, glossy reflection in the computer screen and reflection in the mirror.

Final Scene

Final Scene Depth

Same scene but with depth.