Skip to content

A TypeScript implementation of "Ray Tracing in a Weekend" project.

Notifications You must be signed in to change notification settings

arabelagaje/ray-tracing-in-weekend-typescript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ray Tracing in a Weekend With TypeScript

This repository contains a TypeScript implementation of the "Ray Tracing in a Weekend". This is based on the book "Ray Tracing in One Weekend" by Peter Shirley, which provides a comprehensive introduction to the fundamentals of ray tracing.

Overview

Ray tracing is a rendering technique that simulates the behavior of light to create realistic images. This project aims to guide you through the process of building a simple ray tracer from scratch using TypeScript. By following the book, you'll learn about concepts such as ray-sphere intersection, reflection, diffuse and specular lighting, and more.

Prerequisites

  • Node.js

Getting Started

To get started with the project, follow these steps:

  1. Clone this repository to your local machine:
git clone https://github.com/arabelagaje/ray-tracing-in-weekend-typescript.git
  1. Navigate to the project directory:
cd ray-tracing-in-weekend-typescript
  1. Install the dependencies:
npm install
  1. Run the project:
npm start
  1. Wait for a long time to get the out put image (It took about 20 mins in my i7 12th gen laptop to get below image) Image Output

Additional Resources

If you want to learn more about ray tracing or enhance the capabilities of this project, consider exploring the following resources:

License

This project is licensed under the MIT License. Feel free to use and modify the code for your own purposes.

Note: This project is intended for educational purposes and to serve as a starting point for learning about ray tracing. It does not provide the most optimized or advanced implementations.

Thanks ChatGPT for helping me create this README.md

About

A TypeScript implementation of "Ray Tracing in a Weekend" project.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published