Skip to content

Yonaim/miniRT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

537 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

miniRT

miniRT is a small ray tracing program that renders simple 3D scenes using analytic geometry. The project focuses on implementing the core concepts of ray tracing, including intersections, lighting, and shading, without relying on external graphics libraries.

Gallary

Features

  • Ray-sphere, ray-plane, and ray-cylinder intersections
  • Phong reflection model (diffuse and specular shading)
  • Point light source support
  • Simple camera and viewport configuration
  • BMP image export
  • Minimal, dependency-free C implementation
  • Command-line scene description file parsing

Usage

make
./miniRT <scene_file.rt>
  • The program expects a .rt file describing the scene.

  • Example:

    ./miniRT scenes/example.rt

Project Structure

Analytic-miniRT/
│
├── src/           # Source code files
├── include/       # Header files
├── scenes/        # Sample scene description files
├── Makefile
└── README.md

Requirements

  • C99 compiler (tested on gcc and clang)
  • MiniLibX (for window and image display)

Development Period

February 1, 2023 – March 15, 2023

Authors

About

A minimal ray tracing renderer written in C, implementing analytic intersections, Phong lighting, and BMP export for simple 3D scenes.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors