Skip to content

This program visualizes a basic raytracing algorithm.This can be helpful for understanding how raytracing works. For the algorithm, I follow chapter-4 of this book: https://www.cs.cornell.edu/~srm/fcg4/.

Notifications You must be signed in to change notification settings

imruljubair/RayVis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RayVis: A Simple Ray Tracing Simulator

This program visualizes a basic raytracing algorithm.This can be helpful for understanding how raytracing works. For the algorithm, I follow chapter-4 of this book: https://www.cs.cornell.edu/~srm/fcg4/. All the parameters are kept similar to the book. The program is written in Matlab.

How to:

Run rayvis.m

Instructions:

The program starts with some example inputs.
Press 'Go' to see the simulated ray for current inputs.
You can change values and press 'Go' to see how the ray works.
However, you can press 'Dafault' to reload the initial setup.
Check/ uncheck "show grid" before pressing "Go" to toggle between grid/ gridless visualization of the image plane.

Alt text Alt text

Feel free to notify me any bug! :)

About

This program visualizes a basic raytracing algorithm.This can be helpful for understanding how raytracing works. For the algorithm, I follow chapter-4 of this book: https://www.cs.cornell.edu/~srm/fcg4/.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages