Skip to content

This is my C implementation of "ray traced" image rendering on the basis of a book "Ray Tracing in One Weekend" The output of images is a PPM(P3) file.

License

Notifications You must be signed in to change notification settings

smkatash/ray-tracing-in-one-weekend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

91 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

This is my C implementation of "ray traced" image rendering on the basis of a book "Ray Tracing in One Weekend" The output of images is a PPM(P3) file.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published