Skip to content

Latest commit

 

History

History
81 lines (72 loc) · 3.77 KB

README.md

File metadata and controls

81 lines (72 loc) · 3.77 KB

Ray Tracing in C

This is my C implementation of "ray traiced" image rendering on the basis of a book "Ray Tracing in One Weekend".

The output of images is a PPM(P3) file.

# Clone this project
$ https://github.com/smkatash/ray-tracing-in-one-weekend

# Run the program
$ make

# Render an image
$ make image

Output of the final image:

image

Changing views and colors.

Output of images in each chapter:

image      image

A sphere colored according to its normal vectors.

image

Resulting render of normals-colored sphere with ground.

image

First render of a diffuse sphere.

image

Diffuse sphere, with gamma correction.

image

Correct rendering of Lambertian spheres.

image      image

Rendering of diffuse spheres with hemispherical scattering.

image

Implementation of different materials. Fuzzed metal.

image      image

Glass sphere that sometimes refracts.

image

Shiny metal.

image      image

A distand view.

image

Zooming in.