Skip to content

A basic Raytracer with no external dependencies, implemented in C/C++ as part of my 3D Computer Simulations learning process.

Notifications You must be signed in to change notification settings

AliMoghimii/LumenForge-CPP-Raytracer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lumen Forge - C++ (W.I.P)

A basic Raytracer with no external dependencies, implemented in C/C++ as part of my 3D graphics and computer simulations learning process. feel free to fork, comment suggestions, tips or add pull requests.

Note

This project is a work in progress.

Step-by-Step Results

Manual compile examples

To compile and create an .o file (Compiler)

  • g++ -c Raytracer.cpp

To create a output.exe file from the .o files (Linker)

  • g++ Raytracer.o Image.o (etc...) -o output

To run the output.exe file

  • ./output

Compile using CMake file

Prerequisites

  1. Make sure "g++" and "make" are present in your enviroment variables, test with, g++ --version and make --version if missing add the following to "Path" in "User variables for YOURNAME" (VSCode MSYS2)

    • Base compiler files : C:\msys64\ucrt64\bin
    • CMake : C:\msys64\usr\bin
  2. Install the Makefile extension by Microsoft and add the "C:\msys64\usr\bin" path to the Make Path extension settings field.

To run the make file

  • make

To clear the compiled files

  • make clear

To make the files and run the program

  • make run

References and resources

Some books and references that helped me learn the basics :

About

A basic Raytracer with no external dependencies, implemented in C/C++ as part of my 3D Computer Simulations learning process.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published