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.
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.
- Node.js
To get started with the project, follow these steps:
- Clone this repository to your local machine:
git clone https://github.com/arabelagaje/ray-tracing-in-weekend-typescript.git
- Navigate to the project directory:
cd ray-tracing-in-weekend-typescript
- Install the dependencies:
npm install
- Run the project:
npm start
- 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)
If you want to learn more about ray tracing or enhance the capabilities of this project, consider exploring the following resources:
- Ray Tracing in One Weekend by Peter Shirley
- Ray Tracing: The Next Week by Peter Shirley
- Ray Tracing: The Rest of Your Life by Peter Shirley
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