Skip to content

Docas95/Raycaster-OpenGL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

Raycaster-OpenGL

A Raycaster written with C++ and OpenGL using Visual Studio.

What is a raycaster?

Raycasting is used to efficiently render a 3D world from a 2D playing field using a simple one-dimensional scan over the horizontal width of the screen. Early first-person shooters used 2D ray casting as a technique to create a 3D effect from a 2D world. While the world appears 3D, the player cannot look up or down or only in limited angles with shearing distortion. Read more here.

Showcase

SHOWCASE VIDEO

How to build

Prerequisites

  • Visual Studio: This project requires Visual Studio to be installed with the Desktop development with C++ workload. Download Visual Studio here.

Steps to build

  • Clone the Repository:

    git clone https://github.com/Docas95/Raycaster-OpenGL
  • Open the project in Visual Studio

    Open the .sln file using Visual Studio.

  • Configure project settings

    Got to Projects -> Properties -> VC++ Directories and add the 'libs' and 'include' project file paths to 'Library Directories' and 'Include Directories', respectively.

    Got to Projects -> Properties -> Linker -> Input and add 'glfw3.lib' to 'Additional Dependencies'.

  • Build and Run the project

    You should be able to build the project in Visual Studio using 'Ctrl + Shift + B' and run it using 'F5'.

About

A Raycaster written with C++ and OpenGL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages