An open API service indexing awesome lists of open source software.

https://github.com/shendrew/cuda-renderer

A simple real-time 3D renderer built from scratch and accelerated with CUDA
https://github.com/shendrew/cuda-renderer

3d-graphics cuda-kernels

Last synced: 3 months ago
JSON representation

A simple real-time 3D renderer built from scratch and accelerated with CUDA

Awesome Lists containing this project

README

          

# CUDA Renderer

A simple 3D renderer accelerated with CUDA.

![Render Demo](render-demo.png)

## Controls
- `UP/DOWN`
- zoom camera in/out
- `LEFT/RIGHT`
- horizontally pan camera

## To Run
1. download the repo and prepare directories
```bash
git clone https://github.com/shendrew/cuda-renderer
mkdir build && cd build
```
2. build and compile
```bash
cmake -DENABLE_CUDA= .. && cmake --build .
```
3. render `.OJB` file
```bash
./cuda_renderer
```

## Dependencies
```
- CUDAToolkit (offical instructions)
- GLEW
- SDL2
```

To install the dependencies for `Debian/Ubuntu`, run:

```bash
sudo apt install nvidia-cuda-toolkit libglew-dev libsdl2-dev
```