Skip to content

A simple demo for a raycasting renderer using digital differential analysis

License

Notifications You must be signed in to change notification settings

leon-zanker/raycast_renderer_demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

raycast_renderer_demo

This is a simple demo for a raycasting renderer using digital differential analysis to cast the rays and a combination of software rendering for the x-axis and hardware rendering for the y-axis.

It was made for my own learning purposes, however, I'm happy if someone else can use it as a resource to better understand raycasting renderers.

Install

The following dependencies are needed to compile and run the program:

  • a Unix-like OS, e.g. Linux or macOS (it should be possible to also build the project on Windows, though this is neither supported nor tested)
  • a C compiler (the default is clang, though you can specify another compiler of your choice, such as gcc, via the compiler variable in the build.sh script)
  • git
  • pkg-config
  • raylib

These are available via package managers or their respective official websites.

  1. Clone the repository to a location of your choice.
git clone https://github.com/leon-zanker/raycast_renderer_demo.git
  1. Move into the cloned directory.
cd raycast_renderer_demo
  1. Run the build script (if this step fails, you may have to run chmod +x build.sh first to make the script executable).
./build.sh

If you don't get any errors in the output, the build was successful and the directory will now contain an executable called raycast_renderer_demo.

If this is not the case, check if you have installed all the dependencies listed above and if pkg-config knows about raylib.

Usage

Run the executable after you've built it successfully.

./raycast_demo

Uninstall

Delete the raycast_renderer_demo directory from its parent directory and uninstall any of the unwanted dependencies you installed to build the project.

# From inside the raycast_renderer_demo directory:
cd ..
rm -rf raycast_renderer_demo

To remove the dependencies you would typically use the package manager that you used to install them. If you downloaded them from the official websites, there should be instructions on how to uninstall them there.

Copyright

Copyright (c) 2024 Leon Zanker

About

A simple demo for a raycasting renderer using digital differential analysis

Topics

Resources

License

Stars

Watchers

Forks