GithubHelp home page GithubHelp logo

alimoghimii / lumenforge-cpp-raytracer Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 653 KB

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

C++ 95.35% Makefile 4.65%

lumenforge-cpp-raytracer's Introduction

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 :

lumenforge-cpp-raytracer's People

Contributors

alimoghimii avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.